Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Frontend
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
842
Issues
842
List
Boards
Labels
Service Desk
Milestones
Merge Requests
43
Merge Requests
43
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Compare Revisions
f611744ca2fa79953c4ea4b5139499292cea0696...ed8141103205e86497e27f625a345d59d4f4a281
Source
ed8141103205e86497e27f625a345d59d4f4a281
Select Git revision
...
Target
f611744ca2fa79953c4ea4b5139499292cea0696
Select Git revision
Compare
Commits (2)
update to meet feedback
· eb8c3456
Ben Hayward
authored
32 minutes ago
eb8c3456
Merge branch 'feat/plus-tiers-578' of gitlab.com:minds/front into feat/plus-tiers-578
· ed814110
Ben Hayward
authored
31 minutes ago
ed814110
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
459 additions
and
116 deletions
+459
-116
payment-plan.component.html
src/app/modules/plus/plan/payment-plan.component.html
+40
-40
payment-plan.component.scss
src/app/modules/plus/plan/payment-plan.component.scss
+86
-45
payment-plan.component.ts
src/app/modules/plus/plan/payment-plan.component.ts
+333
-31
No files found.
src/app/modules/plus/plan/payment-plan.component.html
View file @
ed814110
<div
class=
"m-plus-plan__container"
>
<section
class=
"m-plus-plan__row"
>
<!-- Header -->
<section
class=
"m-plus-plan__section"
>
<h1
i18n=
"@@PAYMENT_PLAN__TITLE"
style=
"font-size: 36px; text-transform: none;"
>
Minds Plus
</h1>
</section>
<section
class=
"m-plus-plan__row"
>
<!-- Header -->
<section
class=
"m-plus-plan__section"
>
<h1
i18n=
"@@PAYMENT_PLAN__TITLE"
style=
"font-size: 36px; text-transform: none;"
>
Minds Plus
</h1>
</section>
<!-- Plan Type -->
<section
class=
"m-plus-plan__row"
>
<section
class=
"m-plus-plan__section"
>
<div
class=
"m-plus-plan__subtitle"
>
<h5>
Subscription Plans
</h5>
<i
class=
"material-icons mdl-color-text--blue-grey-700 m-plus-plan__plus-logo"
>
add_circle_outline
</i>
</div>
<div
class=
"m-plus-plan__plans"
>
</section>
<!-- Plan Type -->
<section
class=
"m-plus-plan__row"
>
<section
class=
"m-plus-plan__section"
>
<div
class=
"m-plus-plan__subtitle"
>
<h5>
Subscription Plans
</h5>
<i
class=
"material-icons mdl-color-text--blue-grey-700 m-plus-plan__plus-logo"
>
add_circle_outline
</i>
</div>
<div
class=
"m-plus-plan__plans"
>
<form
class=
"m-plus-plan__paymentsForm"
name=
"form"
(
ngSubmit
)="
submit
()"
>
<div
class=
"m-plus-plan__period-container"
>
<h6
class=
"m-plus-plan__period-title"
>
Monthly
</h6>
<span
class=
"m-plus-plan__period-price"
>
20 MINDS /pm
</span>
<button
class=
"m-plus-plan__period-buy-button"
(
click
)="
onClick
('
month
')"
>
<ng-container
i18n=
"verb|@@M__ACTION__PURCHASE"
>
Purchase
</ng-container>
</button>
<span
class=
"m-plus-plan__period-price"
><strong>
20 OffChain Tokens
</strong><input
[(
ngModel
)]="
tier
"
type=
"radio"
name=
"offchainMonthly"
[
value
]="
tiers
.
OFFCHAIN_MONTHLY
"
></span>
<span
class=
"m-m-plus-plan__period-price"
><em>
OnChain not available
</em></span>
<span
class=
"m-m-plus-plan__period-price"
><strong>
5 USD
</strong></span>
</div>
<div
class=
"m-plus-plan__period-container"
>
<h6
class=
"m-plus-plan__period-title"
>
Yearly
</h6>
<span
class=
"m-plus-plan__period-price"
>
180 MINDS /pa
</span>
<button
class=
"m-plus-plan__period-buy-button"
(
click
)="
onClick
('
year
')"
>
<ng-container
i18n=
"verb|@@M__ACTION__PURCHASE"
>
Purchase
</ng-container>
</button>
<h6
class=
"m-plus-plan__period-title"
>
Annual
</h6>
<span
class=
"m-plus-plan__period-price"
><strong>
200 OffChain Tokens
</strong><input
[(
ngModel
)]="
tier
"
type=
"radio"
name=
"offchainYearly"
[
value
]="
tiers
.
OFFCHAIN_YEARLY
"
></span>
<span
class=
"m-plus-plan__period-price"
><strong>
40 OnChain Tokens
</strong><input
[(
ngModel
)]="
tier
"
type=
"radio"
name=
"onchainYearly"
[
value
]="
tiers
.
ONCHAIN_YEARLY
"
></span>
<span
class=
"m-plus-plan__period-price"
><strong>
50 USD
</strong></span>
</div>
<div
class=
"m-plus-plan__period-container"
>
<h6
class=
"m-plus-plan__period-title"
>
Lifetime
</h6>
<span
class=
"m-plus-plan__period-price"
>
500 MINDS
</span>
<button
class=
"m-plus-plan__period-buy-button__blue"
(
click
)="
onClick
('
lifetime
')"
>
<ng-container
i18n=
"verb|@@M__ACTION__PURCHASE"
>
Purchase
</ng-container>
</button>
<span
class=
"m-plus-plan__period-price"
><strong>
5,000 OffChain Tokens
</strong><input
[(
ngModel
)]="
tier
"
type=
"radio"
name=
"offchainLife"
[
value
]="
tiers
.
OFFCHAIN_LIFETIME
"
></span>
<span
class=
"m-plus-plan__period-price"
><strong>
400 OnChain Tokens
</strong><input
[(
ngModel
)]="
tier
"
type=
"radio"
name=
"onchainLife"
[
value
]="
tiers
.
ONCHAIN_LIFETIME
"
></span>
<span
class=
"m-plus-plan__period-price"
><strong>
500 USD
</strong></span>
</div>
</div>
</section>
</section>
</div>
</form>
</div>
</section>
</section>
<div
class=
"minds-error mdl-color--red mdl-color-text--white"
[
hidden
]="!
error
"
>
{{error}}
</div>
<!-- Confirm Button -->
<section
class=
"m-plus-tier__purchaseRow"
>
<button
class=
"m-plus-plan__period-buy-button__blue"
(
click
)="
submit
(
tier
);"
type=
"submit"
>
Purchase
</button>
</section>
</div>
This diff is collapsed.
Click to expand it.
src/app/modules/plus/plan/payment-plan.component.scss
View file @
ed814110
@import
"defaults"
;
@import
"themes"
;
.m-plus-plan__container
{
.m-plus-plan__container
{
overflow
:
hidden
;
.m-plus-plan__row
{
.m-plus-plan__section
{
h1
{
...
...
@@ -13,11 +15,13 @@
letter-spacing
:
1
.2px
;
align-items
:
center
;
margin
:
16px
0
8px
40px
;
@media
screen
and
(
max-width
:
$min-tablet
)
{
margin
:
16px
0
8px
0px
;
}
}
.m-plus-plan__subtitle
{
display
:
inline-flex
;
flex-direction
:
column
;
width
:
30%
;
align-items
:
center
;
font-size
:
14px
;
...
...
@@ -26,6 +30,13 @@
letter-spacing
:
1
.2px
;
align-items
:
center
;
margin
:
0
0
8px
0
;
flex-direction
:
column
;
@media
screen
and
(
max-width
:
$min-tablet
)
{
flex-direction
:
row
;
display
:
flex
;
justify-content
:
space-between
;
width
:
100%
}
i
,
.m-plus-plan__plus-logo
{
font-size
:
50pt
;
...
...
@@ -34,60 +45,90 @@
}
.m-plus-plan__plans
{
display
:
inline-flex
;
flex-direction
:
row
;
justify-content
:
space-evenly
;
width
:
70%
;
.m-plus-plan__period-container
{
border-style
:
solid
;
border-width
:
0
0
0
2px
;
padding
:
$minds-padding
*
2
;
@include
m-theme
(){
border-color
:
themed
(
$m-grey-50
);
}
.m-plus-plan__period-title
{
display
:
block
;
font-weight
:
bold
;
font-size
:
18px
;
-webkit-font-smoothing
:
antialiased
;
text-rendering
:
optimizeLegibility
;
@media
screen
and
(
max-width
:
$min-tablet
){
width
:
100%
;
}
.m-plus-plan__paymentsForm
{
display
:
inline-flex
;
flex-direction
:
row
;
justify-content
:
space-evenly
;
width
:
100%
;
@media
screen
and
(
max-width
:
$min-tablet
)
{
flex-direction
:
column
;
}
.m-plus-plan__period-price
{
display
:
block
;
}
.m-plus-plan__period-buy-button
{
display
:
block
;
margin-top
:
$minds-padding
*
4
;
font-size
:
14px
;
padding
:
8px
32px
;
background
:
none
;
border-radius
:
0
;
cursor
:
pointer
;
.m-plus-plan__period-container
{
padding
:
24px
;
display
:
flex
;
flex-direction
:
column
;
line-height
:
32px
;
border-style
:
solid
;
border-width
:
0
0
0
2px
;
@media
screen
and
(
max-width
:
$min-tablet
)
{
border-width
:
2px
0
0
0
;
padding
:
8px
;
}
@include
m-theme
(){
border
:
1px
solid
themed
(
$m-grey-700
);
color
:
themed
(
$m-grey-700
);
border-color
:
themed
(
$m-grey-50
);
}
}
.m-plus-plan__period-buy-button__blue
{
display
:
block
;
margin-top
:
$minds-padding
*
4
;
font-size
:
14px
;
padding
:
8px
32px
;
background
:
none
;
border-radius
:
0
;
cursor
:
pointer
;
@include
m-theme
(){
border
:
1px
solid
themed
(
$m-blue
);
color
:
themed
(
$m-blue
);
.m-plus-plan__period-title
{
display
:
block
;
font-weight
:
bold
;
font-size
:
18px
;
-webkit-font-smoothing
:
antialiased
;
text-rendering
:
optimizeLegibility
;
@media
screen
and
(
max-width
:
$min-tablet
)
{
margin-block-end
:
10px
;
margin-block-start
:
10px
;
}
}
.m-plus-plan__period-price
{
display
:
flex
;
width
:
100%
;
justify-content
:
space-between
;
input
{
align-self
:
center
;
margin-left
:
14px
;
width
:
16px
;
height
:
16px
;
@media
screen
and
(
max-width
:
$min-tablet
)
{
display
:
flex
;
width
:
24px
;
}
}
}
}
}
}
}
}
.m-plus-tier__purchaseRow
{
display
:
flex
;
justify-content
:
flex-end
;
.m-plus-plan__period-buy-button__blue
{
margin-top
:
$minds-padding
*
4
;
font-size
:
14px
;
padding
:
8px
32px
;
background
:
none
;
border-radius
:
0
;
cursor
:
pointer
;
margin-right
:
40px
;
@media
screen
and
(
max-width
:
$min-tablet
)
{
margin
:
0
0
16px
0
;
height
:
100%
;
width
:
100%
;
}
@include
m-theme
(){
border
:
1px
solid
themed
(
$m-blue
);
color
:
themed
(
$m-blue
);
}
}
}
}
This diff is collapsed.
Click to expand it.
src/app/modules/plus/plan/payment-plan.component.ts
View file @
ed814110
This diff is collapsed.
Click to expand it.