From d639415d8968cd4d579e88f64d8d729badc88d46 Mon Sep 17 00:00:00 2001 From: Aravind Date: Wed, 8 Jul 2026 19:13:36 +0530 Subject: [PATCH] fix mobile responsive --- src/app/globals.css | 15 +- src/components/sections/MileTruthHero.tsx | 2 +- src/components/sections/WingsFeatureGrid.tsx | 5 + src/components/sections/WingsFinalCTA.tsx | 22 +- .../sections/WingsFleetStrategy.tsx | 14 + .../sections/WingsHowItWorks.module.css | 28 + src/components/sections/WingsIndustries.tsx | 5 + .../sections/WingsInfrastructure.module.css | 30 + src/components/sections/WingsMileTruth.tsx | 5 + src/components/sections/WingsRoadmap.tsx | 10 + .../sections/WingsSpeedAdvantage.tsx | 12 +- src/components/sections/WingsWhyGrid.tsx | 674 +++++++++++++++++- 12 files changed, 801 insertions(+), 21 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 0bd857c..70a14df 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1215,12 +1215,18 @@ body { } } -/* Global Desktop Hero Formatting (Matches live site) */ +/* Global Desktop Hero Formatting (Matches live site) + .miletruth-hero-container is deliberately excluded: unlike the other + hero wrappers it IS the visual card itself (background-image + a + flat bottom edge that the stats bar overlaps by -25px), not a + wrapper around a separate inner card, so it carries its own + correctly-tuned margin-top/padding/border-radius in MileTruthHero.tsx. + Including it here clobbered that with the wrapper values, collapsing + its top gap to 8px and its internal padding to 20px. */ @media (min-width: 1025px) { /* Give every hero wrapper a consistent gap from the top and sides */ .elementor-element.elementor-element-741f56c, - .custom-standard-hero-container, - .miletruth-hero-container { + .custom-standard-hero-container { padding: 20px 24px !important; margin-top: 8px !important; } @@ -1229,8 +1235,7 @@ body { .elementor-element.elementor-element-741f56c .owl-carousel.owl-theme .content-item, .elementor-element.elementor-element-741f56c .content-item, .custom-standard-hero-card, - .miletruth-hero .slide-content, - .miletruth-hero .miletruth-hero-container { + .miletruth-hero .slide-content { border-radius: 24px !important; overflow: hidden !important; } diff --git a/src/components/sections/MileTruthHero.tsx b/src/components/sections/MileTruthHero.tsx index d568688..c951e75 100644 --- a/src/components/sections/MileTruthHero.tsx +++ b/src/components/sections/MileTruthHero.tsx @@ -68,7 +68,7 @@ export default function MileTruthHero() { flex-direction: column; justify-content: center; border-radius: 25px 25px 0 0; - margin-top: 20px; + margin-top: 28px; padding: 100px 0; } .miletruth-hero-container::before { diff --git a/src/components/sections/WingsFeatureGrid.tsx b/src/components/sections/WingsFeatureGrid.tsx index 2bbb972..8500116 100644 --- a/src/components/sections/WingsFeatureGrid.tsx +++ b/src/components/sections/WingsFeatureGrid.tsx @@ -142,6 +142,11 @@ export default function WingsFeatureGrid() { @media (max-width: 600px) { .wfg-grid { grid-template-columns: 1fr; } + /* var(--space-section-lg) floors at a fixed 52px on any phone + width (clamp() has no further breakpoint-based step-down), which + reads as noticeably heavier than the section rhythm near the + footer. Trimmed to a real mobile value here instead. */ + .wfg-section { padding-top: 44px; padding-bottom: 44px; } } `, }} diff --git a/src/components/sections/WingsFinalCTA.tsx b/src/components/sections/WingsFinalCTA.tsx index 6015982..2a66a21 100644 --- a/src/components/sections/WingsFinalCTA.tsx +++ b/src/components/sections/WingsFinalCTA.tsx @@ -55,12 +55,28 @@ export default function WingsFinalCTA() { @media (max-width: 768px) { .wfcta-container { - margin-top: 40px !important; - margin-bottom: 40px !important; + /* Raised to dominate the collapsed margin with the previous + section (Roadmap's own 24px bottom margin) so the gap above + the CTA card reads the same as the gap below it. */ + margin-top: 14px !important; + /* There's ~110px of unexplained extra space rendered between this + container and the Footer that follows on mobile (verified with + Playwright — no element/padding/margin in the DOM accounts for + it, so it isn't coming from either section's own box). Pulling + the CTA up with a negative bottom margin closes most of that + gap directly instead of chasing the underlying cause, without + touching the shared Footer component (used on every page) or + either card's internal padding. Tuned so the resulting visible + gap below the card matches the ~44px gap above it. */ + margin-bottom: -96px !important; padding: 0 10px !important; } .wfcta-box { - padding: 48px 20px !important; + /* Vertical padding cut ~25% (48px -> 36px) to close the excessive + gap above the heading and below the button on mobile — the + card felt loose relative to the rest of the Wings page. + Horizontal padding/border-radius/width untouched. */ + padding: 36px 20px !important; border-radius: 22px !important; } .wfcta-title { diff --git a/src/components/sections/WingsFleetStrategy.tsx b/src/components/sections/WingsFleetStrategy.tsx index 12e15d1..695a49a 100644 --- a/src/components/sections/WingsFleetStrategy.tsx +++ b/src/components/sections/WingsFleetStrategy.tsx @@ -49,6 +49,20 @@ const FEATURES: EVFeature[] = [ export default function WingsFleetStrategy() { return (
+ {/* EVSection is shared across other pages (Workflow1/Workflow2 etc.), + so its own .evnd-gap-bottom rule isn't touched — this override is + scoped to #wings-fleet only, and reduces just the blank margin + immediately before Infrastructure by ~42% (24px -> 14px) on + mobile, matching the site's tighter mobile rhythm elsewhere. */} +