Skip to content

🎥 Make videos programmatically with React

Fix pricing page layout

Jonny Burgeraae7ef5a7505
diff --git a/packages/docs/components/LandingPage/CompanyPricing.tsx b/packages/docs/components/LandingPage/CompanyPricing.tsx
index 71fd302073..5beb858acd 100644
--- a/packages/docs/components/LandingPage/CompanyPricing.tsx
+++ b/packages/docs/components/LandingPage/CompanyPricing.tsx
@@ -44,7 +44,7 @@ export const CompanyPricing: React.FC = () => {
return (
<div className={styles.pricingcontainer}>
- <div className={styles.text}>For companies of 4+ people</div>
+ <div className={styles.audience}>For companies of 4+ people</div>
<h2 className={styles.pricingtitle}>Company license</h2>
<PricingBulletPoint text="Everything in free" checked />
<PricingBulletPoint text="Prioritized Support" checked />
diff --git a/packages/docs/components/LandingPage/Counter.tsx b/packages/docs/components/LandingPage/Counter.tsx
index 892b7a3072..cf4ce9e7a4 100644
--- a/packages/docs/components/LandingPage/Counter.tsx
+++ b/packages/docs/components/LandingPage/Counter.tsx
@@ -28,9 +28,9 @@ const container: React.CSSProperties = {
alignItems: "center",
border: "1px solid #EAEAEA",
borderRadius: 4,
- width: 110,
height: 42,
overflow: "hidden",
+ flexShrink: 0,
};
const buttonContainer: React.CSSProperties = {
@@ -62,7 +62,7 @@ export const Counter: React.FC<{
[setCount],
);
return (
- <div style={container}>
+ <div style={container} className={styles.countercontainer}>
<input
className={styles.counterinput}
type="number"
diff --git a/packages/docs/components/LandingPage/EnterpriseLicense.tsx b/packages/docs/components/LandingPage/EnterpriseLicense.tsx
index 251eb2b58b..8e872bca8d 100644
--- a/packages/docs/components/LandingPage/EnterpriseLicense.tsx
+++ b/packages/docs/components/LandingPage/EnterpriseLicense.tsx
@@ -10,7 +10,7 @@ const textUnitWrapper: React.CSSProperties = {
export const EnterpriseLicense: React.FC = () => {
return (
<div className={styles.pricingcontainer}>
- <div className={styles.text}>For advanced needs</div>
+ <div className={styles.audience}>For advanced needs</div>
<h2 className={styles.pricingtitle}>Enterprise license</h2>
<PricingBulletPoint text="Custom terms and pricing" checked />
<PricingBulletPoint text="Prioritized feature requests" checked />
diff --git a/packages/docs/components/LandingPage/FreePricing.tsx b/packages/docs/components/LandingPage/FreePricing.tsx
index e7b5df24a4..61f013d5ba 100644
--- a/packages/docs/components/LandingPage/FreePricing.tsx
+++ b/packages/docs/components/LandingPage/FreePricing.tsx
@@ -5,7 +5,7 @@ import { PricingBulletPoint } from "./PricingBulletPoint";
export const FreePricing: React.FC = () => {
return (
<div className={styles.pricingcontainer}>
- <div className={styles.text}>
+ <div className={styles.audience}>
For individuals and companies of up to 3
</div>
<h2 className={styles.pricingtitle}>Free forever</h2>
diff --git a/packages/docs/components/LandingPage/PricingBulletPoint.tsx b/packages/docs/components/LandingPage/PricingBulletPoint.tsx
index ef223a0d6d..b8ef7a734d 100644
--- a/packages/docs/components/LandingPage/PricingBulletPoint.tsx
+++ b/packages/docs/components/LandingPage/PricingBulletPoint.tsx
@@ -41,7 +41,7 @@ export const PricingBulletPoint: React.FC<{
return (
<div style={container}>
{checked ? checkmarkSVG : <div style={greyCircle} />}
- <div className={styles.text}>{text} </div>
+ <div className={styles.text}>{text}</div>
</div>
);
};
diff --git a/packages/docs/components/LandingPage/pricing.module.css b/packages/docs/components/LandingPage/pricing.module.css
index 0d91f9a73b..e9103e2aec 100644
--- a/packages/docs/components/LandingPage/pricing.module.css
+++ b/packages/docs/components/LandingPage/pricing.module.css
@@ -9,6 +9,10 @@
color: var(--ifm-color-primary);
}
+.countercontainer {
+ width: 110px;
+}
+
.counterinput {
font-family: "GTPlanar", sans-serif;
font-size: 24px;
@@ -37,6 +41,11 @@ input[type="number"]::-webkit-outer-spin-button {
.text {
font-family: "GTPlanar", sans-serif;
font-size: 19px;
+}
+
+.audience {
+ font-family: "GTPlanar", sans-serif;
+ font-size: 19px;
line-height: 1.2;
}
@@ -136,12 +145,12 @@ input[type="number"]::-webkit-outer-spin-button {
.rowcontainer {
display: flex;
flex-direction: row;
- margin-bottom: 12;
}
@media screen and (max-width: 900px) {
.description {
- min-width: 200px;
+ flex-shrink: 1;
+ min-width: auto;
}
.pricingcontainer {
text-align: left;
@@ -150,8 +159,10 @@ input[type="number"]::-webkit-outer-spin-button {
max-width: 500px;
width: 100%;
}
-
.description {
font-size: 0.85em;
}
+ .countercontainer {
+ width: 70px;
+ }
}