Skip to content

Commit ab4cf71

Browse files
bloveclaude
andauthored
fix(website): add mobile responsive padding and sizing to home page sections (#126)
- PilotSolution: reduce padding to 60px 20px on mobile - TheStack: reduce section and card padding on mobile - PilotFooterCTA: responsive heading size with clamp(), reduced vertical padding - WhitePaperSection: reduce outer section padding on mobile All breakpoints use existing 767px convention. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8a406b5 commit ab4cf71

4 files changed

Lines changed: 25 additions & 4 deletions

File tree

apps/website/src/components/landing/PilotFooterCTA.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,15 @@ export function PilotFooterCTA() {
2121
padding: '0 2rem',
2222
}}
2323
>
24-
<style>{`.pilot-footer-secondary-btn:hover { border-color: rgba(255,255,255,0.6) !important; }`}</style>
24+
<style>{`
25+
.pilot-footer-secondary-btn:hover { border-color: rgba(255,255,255,0.6) !important; }
26+
@media (max-width: 767px) {
27+
.pilot-footer-inner { padding-top: 4rem !important; padding-bottom: 4rem !important; }
28+
.pilot-footer-heading { font-size: clamp(28px, 6vw, 42px) !important; }
29+
}
30+
`}</style>
2531
<motion.div
32+
className="pilot-footer-inner"
2633
initial={{ opacity: 0, y: 20 }}
2734
whileInView={{ opacity: 1, y: 0 }}
2835
viewport={{ once: true }}
@@ -53,6 +60,7 @@ export function PilotFooterCTA() {
5360
{/* Heading */}
5461
<h2
5562
id="pilot-footer-cta-heading"
63+
className="pilot-footer-heading"
5664
style={{
5765
fontFamily: 'var(--font-garamond, "EB Garamond", Georgia, serif)',
5866
fontSize: '42px',

apps/website/src/components/landing/PilotSolution.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ const STEPS = [
2323

2424
export function PilotSolution() {
2525
return (
26-
<section style={{ padding: '80px 32px' }}>
26+
<section className="pilot-solution" style={{ padding: '80px 32px' }}>
27+
<style>{`
28+
@media (max-width: 767px) {
29+
.pilot-solution { padding: 60px 20px !important; }
30+
}
31+
`}</style>
2732
<motion.div
2833
initial={{ opacity: 0, y: 16 }}
2934
whileInView={{ opacity: 1, y: 0 }}

apps/website/src/components/landing/TheStack.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,13 @@ function Connector({ fromRgb, toRgb }: { fromRgb: string; toRgb: string }) {
5757

5858
export function TheStack() {
5959
return (
60-
<section style={{ padding: '80px 32px' }}>
60+
<section className="the-stack" style={{ padding: '80px 32px' }}>
61+
<style>{`
62+
@media (max-width: 767px) {
63+
.the-stack { padding: 60px 20px !important; }
64+
.the-stack-card { padding: 24px 20px 20px !important; }
65+
}
66+
`}</style>
6167
<motion.div
6268
initial={{ opacity: 0, y: 16 }}
6369
whileInView={{ opacity: 1, y: 0 }}
@@ -109,6 +115,7 @@ export function TheStack() {
109115
/>
110116
)}
111117
<motion.div
118+
className="the-stack-card"
112119
initial={{ opacity: 0, y: 24 }}
113120
whileInView={{ opacity: 1, y: 0 }}
114121
viewport={{ once: true }}

apps/website/src/components/landing/WhitePaperSection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function WhitePaperSection() {
4242
};
4343

4444
return (
45-
<section style={{ padding: '80px 32px' }}>
45+
<section className="wp-section" style={{ padding: '80px 32px' }}>
4646
<style>{`
4747
.wp-grid {
4848
display: grid;
@@ -52,6 +52,7 @@ export function WhitePaperSection() {
5252
padding: 48px 56px;
5353
}
5454
@media (max-width: 767px) {
55+
.wp-section { padding: 60px 20px !important; }
5556
.wp-grid {
5657
grid-template-columns: 1fr;
5758
gap: 32px;

0 commit comments

Comments
 (0)