Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Website: Add images to pricing tier cards #26425

Merged
merged 4 commits into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
121 changes: 102 additions & 19 deletions website/assets/styles/pages/pricing.less
Original file line number Diff line number Diff line change
Expand Up @@ -76,33 +76,65 @@
width: 220px;
}
}
[purpose='pricing-tiers'] {
margin-bottom: 24px;
}
[purpose='pricing-card-body'] {
padding: 24px 32px;
flex: 1 0 0;
display: flex;
flex-direction: column;
justify-content: space-between;
}
[purpose='pricing-card'] {
width: 33%;
[purpose='pricing-tier-image'] {
height: 149px;
width: 100%;
border-radius: 12px 12px 0px 0px;
// background-size: 100% auto;
background-size: auto 100%;
background-position: bottom;
background-repeat: no-repeat;
}

}
[purpose='free-tier-card'] {
text-align: left;
padding: 40px;
border-radius: 15px;
padding: 0px;
border-radius: 16px;
border: 1px solid #E2E4EA;
width: 100%;
box-shadow: none;
background: #fff;
}
[purpose='pricing-card'] {
width: 33%;

[purpose='pricing-tier-image'] {
background-image: url('/images/pricing-page-card-free-543x233@2x.png');
}
}
[purpose='premium-tier-card'] {
padding: 40px;
border-radius: 15px;
padding: 0px;
border-radius: 16px;
border: 1px solid #E2E4EA;
text-align: left;
box-shadow: none;
margin-left: 16px;
background: #fff;
[purpose='pricing-tier-image'] {
background-image: url('/images/pricing-page-card-premium-543x233@2x.png');
}
}
[purpose='custom-tier-card'] {
padding: 40px;
border-radius: 15px;
padding: 0px;
border-radius: 16px;
border: 1px solid #E2E4EA;
text-align: left;
box-shadow: none;
margin-left: 16px;
background: #fff;
[purpose='pricing-tier-image'] {
background-image: url('/images/pricing-page-card-custom-543x233@2x.png');
}
[purpose='pricing-tier-title'] {
h2 {
margin-bottom: 17px;
Expand Down Expand Up @@ -535,6 +567,16 @@
padding-left: 0px;
padding-right: 0px;
}
[purpose='pricing-card'] {
width: 33%;
[purpose='pricing-tier-image'] {
height: 149px;
width: 100%;
border-radius: 12px 12px 0px 0px;
background-size: 100% auto;
background-position: center 0px;
}
}
}
@media (max-width: 991px) {
// >992 width:
Expand All @@ -544,21 +586,32 @@
padding-left: 24px;
padding-right: 24px;
}
[purpose='free-tier-card'] {
margin-bottom: 12px;
padding: 40px;
}
[purpose='pricing-card'] {
width: 100%;
[purpose='pricing-tier-image'] {
height: 240px;
min-height: 100%;
width: 337px;
border-radius: 12px 0px 0px 12px;
background-position: center;
background-repeat: no-repeat;
}
}
[purpose='pricing-card-body'] {
padding: 24px 64px;
}
[purpose='free-tier-card'] {
margin-bottom: 16px;
}
[purpose='premium-tier-card'] {
margin-left: 0px;
margin-bottom: 12px;
padding: 40px;
margin-bottom: 16px;
[purpose='card-button'] {
width: 100%;
}
}
[purpose='custom-tier-card'] {
margin-left: 0px;
padding: 40px;
}
}

Expand All @@ -585,6 +638,23 @@
width: 100%;
}
}
[purpose='pricing-card'] {
width: 100%;
[purpose='pricing-tier-image'] {
height: auto;
min-height: 100%;
// width: 100%;
width: 257px;
border-radius: 12px 0px 0px 12px;
// background-size: 100% auto;
background-position: center;
background-repeat: no-repeat;
}
}
[purpose='pricing-card-body'] {
padding: 24px 32px;
flex: 1 0 0;
}
[purpose='features-table'] {
.truncated {
max-height: 1480px;
Expand Down Expand Up @@ -663,16 +733,29 @@
padding-left: 24px;
padding-right: 24px;
}
[purpose='pricing-card'] {
width: 100%;
[purpose='pricing-tier-image'] {
height: 233px;
min-height: 100%;
width: 100%;
// width: 337px;
aspect-ratio: 543.00/232.71;
border-radius: 12px 12px 0px 0px;
background-position: center;
background-repeat: no-repeat;
}
}
[purpose='free-tier-card'] {
padding: 24px;
// padding: 24px;
justify-content: center;
}
[purpose='premium-tier-card'] {
padding: 24px;
// padding: 24px;
justify-content: center;
}
[purpose='custom-tier-card'] {
padding: 24px;
// padding: 24px;
justify-content: center;
}
[purpose='pricing-categories-table'] {
Expand Down
79 changes: 46 additions & 33 deletions website/views/pages/pricing.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -9,57 +9,70 @@
<div purpose="pricing-tiers" class="d-flex flex-column flex-lg-row justify-content-center">
<%// Fleet Free tier card %>
<div purpose="pricing-card">
<div purpose="free-tier-card" class="card d-flex flex-column h-100 justify-content-between">
<div purpose="pricing-tier-title">
<div class="d-flex flex-row justify-content-start">
<div class="d-flex flex-column justify-content-between">
<h2>Free</h2>
<h3>Unlimited hosts</h3>
<div purpose="tier-price" class="d-flex flex-row align-items-center">
<h1><span purpose="price-dollar-sign">$</span>0</h1><strong>/ host <br purpose="premium-price-linebreak">/ month</strong>
<div purpose="free-tier-card" class="card d-flex flex-lg-column flex-sm-row flex-column h-100">
<div purpose="pricing-tier-image">
</div>
<div purpose="pricing-card-body">
<div purpose="pricing-tier-title">
<div class="d-flex flex-row justify-content-start">
<div class="d-flex flex-column justify-content-between">
<h2>Free</h2>
<h3>Unlimited hosts</h3>
<div purpose="tier-price" class="d-flex flex-row align-items-center">
<h1><span purpose="price-dollar-sign">$</span>0</h1><strong>/ host <br purpose="premium-price-linebreak">/ month</strong>
</div>
</div>
</div>
</div>
<div purpose="button-container" class="d-flex flex-row align-items-center">
<animated-arrow-button href="/docs">
Read the docs
</animated-arrow-button>
</div>
</div>
</div>
<div purpose="button-container" class="d-flex flex-row align-items-center">
<animated-arrow-button href="/docs">
Read the docs
</animated-arrow-button>
</div>
</div>
</div>
<%// Fleet Premium tier card %>
<div purpose="pricing-card" class="d-flex flex-column justify-content-center">
<div purpose="premium-tier-card" class="card d-flex h-100 flex-column justify-content-between">
<div purpose="pricing-tier-title">
<div class="d-flex flex-column justify-content-between">
<div class="d-flex flex-column justify-content-start">
<h2>Premium</h2>
<h3>Unlimited baselines</h3>
<div purpose="tier-price" class="d-flex flex-row align-items-center justify-content-start">
<h1><span purpose="price-dollar-sign">$</span>7.00</h1><strong>/ host <br purpose="premium-price-linebreak">/ month</strong>
<div purpose="premium-tier-card" class="card d-flex h-100 flex-lg-column flex-sm-row flex-column">
<div purpose="pricing-tier-image">
</div>
<div purpose="pricing-card-body">
<div purpose="pricing-tier-title">
<div class="d-flex flex-column justify-content-between">
<div class="d-flex flex-column justify-content-start">
<h2>Premium</h2>
<h3>Unlimited baselines</h3>
<div purpose="tier-price" class="d-flex flex-row align-items-center justify-content-start">
<h1><span purpose="price-dollar-sign">$</span>7.00</h1><strong>/ host <br purpose="premium-price-linebreak">/ month</strong>
</div>
</div>
</div>
</div>
</div>
<div>
<a purpose="card-button" class="btn btn-block btn-lg btn-primary mx-auto mb-0" href="/register">Get started</a>
<!-- <div>
</div> -->
</div>
</div>
</div>
<%// Custom tier card %>
<div purpose="pricing-card" class="d-flex flex-column justify-content-center">
<div purpose="custom-tier-card" class="card d-flex h-100 flex-column justify-content-between">
<div purpose="pricing-tier-title">
<div class="d-flex flex-column justify-content-between">
<div class="d-flex flex-column justify-content-center">
<h2>Custom</h2>
<h3>For teams who can move quickly with extremely large deployments.</h3>
<div purpose="custom-tier-card" class="card d-flex h-100 flex-lg-column flex-sm-row flex-column">
<div purpose="pricing-tier-image">

</div>
<div purpose="pricing-card-body">
<div purpose="pricing-tier-title">
<div class="d-flex flex-column justify-content-between">
<div class="d-flex flex-column justify-content-center">
<h2>Custom</h2>
<h3>For teams who can move quickly with extremely large deployments.</h3>
</div>
</div>
</div>
</div>
<div>
<a purpose="card-button" class="btn btn-block btn-lg btn-primary mx-auto mb-0" href="/contact">Talk to an engineer</a>
<div>
<a purpose="card-button" class="btn btn-block btn-lg btn-primary mx-auto mb-0" href="/contact">Talk to an engineer</a>
</div>
</div>
</div>
</div>
Expand Down
Loading