Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
18 changes: 16 additions & 2 deletions jsx-version.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ <h1 className="card-title">{title}</h1>
includesText: 'Includes:',
features: ['No credit card required', 'Limited Agent requests', 'Limited Tab completions'],
buttonText: 'Download',
buttonVariant: 'secondary',
buttonVariant: 'primary',
};
const proPlan = {
title: 'Pro',
Expand All @@ -72,7 +72,20 @@ <h1 className="card-title">{title}</h1>
'Maximum context windows',
],
buttonText: 'Get Pro',
buttonVariant: 'primary',
buttonVariant: 'secondary',
};
const enterprisePlan = {
title: 'Enterprise',
price: 'Custom',
includesText: 'Everything in Pro, plus:',
features: [
'SSO and SAML',
'Dedicated support',
'Admin controls and audit logs',
'Custom contracts and invoicing',
],
buttonText: 'Contact sales',
buttonVariant: 'tertiary',
};

return (
Expand All @@ -84,6 +97,7 @@ <h1 className="card-title">{title}</h1>
{/* This is the same as writing: title="Hobby" price="Free" includesText="Includes:" etc. */}
<PricingCard {...hobbyPlan} />
<PricingCard {...proPlan} />
<PricingCard {...enterprisePlan} />
</div>
</>
);
Expand Down
6 changes: 3 additions & 3 deletions src/components/Button/Button.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@

/* Primary variant — for "Get Pro" button */
.download-button.primary {
background-color: #111;
background-color: #00CC66;
color: #fff;
}

.download-button.primary:hover {
background-color: #333;
background-color: #00b35a;
}

.download-button.primary:active {
background-color: #333;
background-color: #00b35a;
}
35 changes: 33 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,47 @@ body {
}

.download-button.primary {
background-color: #111;
background-color: #00CC66;
color: #fff;
}

.download-button.primary:hover {
background-color: #333;
background-color: #00b35a;
}

.download-button.primary:active {
background-color: #00b35a;
}

.download-button.secondary {
background-color: transparent;
color: #26251e;
border: 1px solid rgba(38, 37, 30, 0.35);
}

.download-button.secondary:hover {
background-color: #26251e;
color: #fff;
border-color: #26251e;
}

.download-button.secondary:active {
background-color: #333;
color: #fff;
border-color: #333;
}

.download-button.tertiary {
background-color: #e6e5e0;
color: #333;
}

.download-button.tertiary:hover {
background-color: #D8D6CE;
}

.download-button.tertiary:active {
background-color: #D8D6CE;
}

.page-label {
Expand Down