-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(payment): create subscribe view to choose sub plan
- Loading branch information
1 parent
af8d05b
commit 96a1dae
Showing
10 changed files
with
350 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/components/specific/subscriptions/free-plan-card/FreePlanCard.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
.free-plan-card { | ||
&.bimdata-card:deep(.bimdata-card__content) { | ||
width: 400px; | ||
height: 460px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: calc(var(--spacing-unit) * 2); | ||
padding: calc(var(--spacing-unit) * 5 / 2); | ||
font-size: 1rem; | ||
background-color: var(--color-white); | ||
color: var(--color-primary); | ||
} | ||
|
||
&__title { | ||
text-transform: uppercase; | ||
font-size: 2rem; | ||
font-weight: bold; | ||
} | ||
|
||
&__price { | ||
font-size: 2.2rem; | ||
font-weight: bold; | ||
|
||
&::after { | ||
content: " *"; | ||
font-size: 1.1rem; | ||
vertical-align: super; | ||
} | ||
} | ||
|
||
&__separator { | ||
width: 260px; | ||
height: 1px; | ||
margin: var(--spacing-unit) 0; | ||
background-color: var(--color-tertiary); | ||
} | ||
|
||
&__bullets { | ||
margin: var(--spacing-unit) 0; | ||
display: flex; | ||
flex-direction: column; | ||
gap: calc(var(--spacing-unit) * 2 / 3); | ||
|
||
&__bullet { | ||
display: flex; | ||
align-items: center; | ||
gap: var(--spacing-unit); | ||
font-weight: bold; | ||
} | ||
} | ||
|
||
&__note { | ||
font-size: 12px; | ||
color: var(--color-tertiary-dark); | ||
|
||
&::before { | ||
content: "* "; | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
src/components/specific/subscriptions/free-plan-card/FreePlanCard.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<BIMDataCard class="free-plan-card"> | ||
<template #content> | ||
<div class="free-plan-card__title"> | ||
{{ $t("FreePlanCard.title") }} | ||
</div> | ||
<div class="free-plan-card__price"> | ||
{{ $t("FreePlanCard.price") }} | ||
</div> | ||
<div class="free-plan-card__separator"></div> | ||
<div class="free-plan-card__bullets"> | ||
<div class="free-plan-card__bullets__bullet"> | ||
<img src="/static/platform-sub-info-bullet-mark.svg" /> | ||
<span>{{ $t("FreePlanCard.bullet1") }}</span> | ||
</div> | ||
<div class="free-plan-card__bullets__bullet"> | ||
<img src="/static/platform-sub-info-bullet-mark.svg" /> | ||
<span>{{ $t("FreePlanCard.bullet2") }}</span> | ||
</div> | ||
<div class="free-plan-card__bullets__bullet"> | ||
<img src="/static/platform-sub-info-bullet-mark.svg" /> | ||
<span>{{ $t("FreePlanCard.bullet3") }}</span> | ||
</div> | ||
</div> | ||
<BIMDataButton width="240px" color="primary" fill radius> | ||
{{ $t("FreePlanCard.buttonText") }} | ||
</BIMDataButton> | ||
<div class="free-plan-card__note"> | ||
{{ $t("FreePlanCard.note") }} | ||
</div> | ||
</template> | ||
</BIMDataCard> | ||
</template> | ||
|
||
<script> | ||
import { useRouter } from "vue-router"; | ||
import { routeNames } from "@/router/index.js"; | ||
export default { | ||
setup() { | ||
const router = useRouter(); | ||
const goToSubscriptionFree = () => { | ||
router.push({ name: routeNames.subscriptionFree }); | ||
}; | ||
return { | ||
// Methods | ||
goToSubscriptionFree | ||
}; | ||
} | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss" src="./FreePlanCard.scss"></style> |
54 changes: 54 additions & 0 deletions
54
src/components/specific/subscriptions/pro-plan-card/ProPlanCard.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
.pro-plan-card { | ||
&.bimdata-card:deep(.bimdata-card__content) { | ||
width: 400px; | ||
height: 460px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: calc(var(--spacing-unit) * 2); | ||
padding: calc(var(--spacing-unit) * 5 / 2); | ||
font-size: 1rem; | ||
background-color: var(--color-primary); | ||
color: var(--color-white); | ||
} | ||
|
||
&__title { | ||
text-transform: uppercase; | ||
font-size: 2rem; | ||
font-weight: bold; | ||
} | ||
|
||
&__price { | ||
font-size: 2.2rem; | ||
font-weight: bold; | ||
} | ||
|
||
&__separator { | ||
width: 260px; | ||
height: 1px; | ||
margin: var(--spacing-unit) 0; | ||
background-color: var(--color-tertiary); | ||
} | ||
|
||
&__bullets { | ||
margin: var(--spacing-unit) 0; | ||
display: flex; | ||
flex-direction: column; | ||
gap: calc(var(--spacing-unit) * 2 / 3); | ||
|
||
&__bullet { | ||
display: flex; | ||
align-items: center; | ||
gap: var(--spacing-unit); | ||
font-weight: bold; | ||
} | ||
} | ||
|
||
&__note { | ||
font-size: 12px; | ||
|
||
&::before { | ||
content: "** "; | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
src/components/specific/subscriptions/pro-plan-card/ProPlanCard.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<BIMDataCard class="pro-plan-card"> | ||
<template #content> | ||
<div class="pro-plan-card__title"> | ||
{{ $t("ProPlanCard.title") }} | ||
</div> | ||
<div class="pro-plan-card__price"> | ||
{{ $t("ProPlanCard.price") }} | ||
</div> | ||
<div class="pro-plan-card__separator"></div> | ||
<div class="pro-plan-card__bullets"> | ||
<div class="pro-plan-card__bullets__bullet"> | ||
<img src="/static/platform-sub-info-bullet-mark.svg" /> | ||
<span>{{ $t("ProPlanCard.bullet1") }}</span> | ||
</div> | ||
<div class="pro-plan-card__bullets__bullet"> | ||
<img src="/static/platform-sub-info-bullet-mark.svg" /> | ||
<span>{{ $t("ProPlanCard.bullet2") }}</span> | ||
</div> | ||
<div class="pro-plan-card__bullets__bullet"> | ||
<img src="/static/platform-sub-info-bullet-mark.svg" /> | ||
<span>{{ $t("ProPlanCard.bullet3") }}</span> | ||
</div> | ||
</div> | ||
<BIMDataButton width="240px" color="secondary" fill radius> | ||
{{ $t("ProPlanCard.buttonText") }} | ||
</BIMDataButton> | ||
<div class="pro-plan-card__note"> | ||
{{ $t("ProPlanCard.note") }} | ||
</div> | ||
</template> | ||
</BIMDataCard> | ||
</template> | ||
|
||
<script> | ||
import { useRouter } from "vue-router"; | ||
import { routeNames } from "@/router/index.js"; | ||
export default { | ||
setup() { | ||
const router = useRouter(); | ||
const goToSubscriptionPlatform = () => { | ||
router.push({ name: routeNames.subscriptionPlatform }); | ||
}; | ||
return { | ||
// Methods | ||
goToSubscriptionPlatform | ||
}; | ||
} | ||
}; | ||
</script> | ||
|
||
<style scoped lang="scss" src="./ProPlanCard.scss"></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.subscribe { | ||
&__title { | ||
height: 32px; | ||
margin: 0; | ||
} | ||
|
||
&__body { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: calc(var(--spacing-unit) * 3); | ||
margin-top: calc(var(--spacing-unit) * 3); | ||
|
||
&__text { | ||
width: 560px; | ||
text-align: center; | ||
} | ||
|
||
&__content { | ||
display: flex; | ||
gap: calc(var(--spacing-unit) * 3); | ||
} | ||
} | ||
} |
Oops, something went wrong.