Skip to content

Commit

Permalink
added expandable pricing page
Browse files Browse the repository at this point in the history
  • Loading branch information
mertlsarac committed Sep 12, 2021
1 parent 436293f commit 2081de1
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/component/common/card/card1/card1.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div [class.background-color]="isBackgroundColor" [class.card1-scrollable-content]="isScrollable"
[class.card1-small]="isSmall"
[class.card1-small]="isSmall" [class.center-margin]="centerToParent"
[class.no-margin]="!margin" [class.no-shadow]="!shadow" [style.height]="height ? height : ''"
[style.width]="width ? width : ''" class="card1" [class.testimonial-size]="testimonialSizeActive">
<div *ngIf="topWrapper" [class.card1-top-wrapper-in-theme-color]="topWrapperInThemeColor"
Expand Down
5 changes: 5 additions & 0 deletions src/app/component/common/card/card1/card1.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,9 @@
.card1.card1-scrollable-content .card1-content {
overflow: auto;
}

.card1.center-margin {
margin-left: auto;
margin-right: auto;
}
}
1 change: 1 addition & 0 deletions src/app/component/common/card/card1/card1.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class Card1Component {
@Input() bottomLayerBackgroundColor = '';
@Input() testimonialSizeActive = false;
@Input() headerType = 'top-right-bottom-left-rounded-box';
@Input() centerToParent = false;

loading = false;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div>
<app-card1 [enableHeaderFullImg]="false" [height]="option.styles.height"
[paddingContent]="false"
[paddingContent]="false" [centerToParent]="true"
[ribbon]="option.ribbon ? option.ribbon : DEFAULT_RIBBON"
[width]="option.styles.width" [maxHeight]="false"
[enableHeader]="false" [style.font-size]="option.styles.fontSize">
Expand Down
46 changes: 46 additions & 0 deletions src/app/data/product/product.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,52 @@ export const PRODUCT_LINES: ProductLine[] = [
}
],
pricingOptions: [
{
title: 'STARTER',
price: {
currency: '$',
value: '9',
subscriptionTime: 'mo.'
},
features: [ 'Up to 5 users', 'Maximum 100 photos/mo.', '50 queries' ],
styles: {
width: '300px',
height: '400px',
fontSize: '1em',
featureHeight: '10em'
}
},
{
title: 'BASIC',
ribbon: { theme: 'blue', text: 'DEAL' },
price: {
currency: '$',
value: '49',
subscriptionTime: 'mo.'
},
features: [ 'Up to 10 users', 'Maximum 100 photos/mo.', '500 queries' ],
styles: {
width: '370px',
height: '520px',
fontSize: '1.2em',
featureHeight: '13em'
}
},
{
title: 'PRO',
price: {
currency: '$',
value: '99',
subscriptionTime: 'mo.'
},
features: [ 'Unlimited users', 'Unlimited photos/mo.', '5000 queries' ],
styles: {
width: '300px',
height: '400px',
fontSize: '1em',
featureHeight: '10em'
}
},
{
title: 'STARTER',
price: {
Expand Down
4 changes: 4 additions & 0 deletions src/app/page/landing-layout/pricing/pricing.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
flex-wrap: wrap;
}

app-pricing-card {
width: 33%;
}

@media only screen and (min-width: 1000px) {
.pricing-page {
display: block;
Expand Down
2 changes: 1 addition & 1 deletion src/environments/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '2.6.1';
export const version = '2.6.2';
8 changes: 4 additions & 4 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
<link href="https://fonts.googleapis.com/css2?family=Ramabhadra&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">

<link href="assets/favicons/apple-touch-icon.png?v=2_6_1" rel="apple-touch-icon">
<link href="assets/favicons/favicon.png?v=2_6_1" rel="shortcut icon" type="image/png">
<link href="assets/favicons/site.webmanifest?v=2_6_1" rel="manifest">
<link href="assets/favicons/safari-pinned-tab.svg?v=2_6_1" rel="mask-icon" color="#43b043">
<link href="assets/favicons/apple-touch-icon.png?v=2_6_2" rel="apple-touch-icon">
<link href="assets/favicons/favicon.png?v=2_6_2" rel="shortcut icon" type="image/png">
<link href="assets/favicons/site.webmanifest?v=2_6_2" rel="manifest">
<link href="assets/favicons/safari-pinned-tab.svg?v=2_6_2" rel="mask-icon" color="#43b043">

<meta content="assets/favicons/browserconfig.xml" name="msapplication-config">
<meta content="#43b043" name="msapplication-TileColor">
Expand Down

0 comments on commit 2081de1

Please sign in to comment.