From 19c48e160c20861e0e8994c7e78f971c5e47f4d4 Mon Sep 17 00:00:00 2001 From: Matheo Guilbert Date: Fri, 17 Apr 2026 11:29:15 +0200 Subject: [PATCH] fixed some responsive design details --- components/sections/HeroSection.tsx | 11 ++++++----- components/sections/ProjectHero.tsx | 11 +++++++---- components/ui/LanguageSwitcher.tsx | 2 +- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/components/sections/HeroSection.tsx b/components/sections/HeroSection.tsx index b8805ac..8eec660 100644 --- a/components/sections/HeroSection.tsx +++ b/components/sections/HeroSection.tsx @@ -25,8 +25,12 @@ export default function HeroSection() { ref={sectionRef} className="w-full min-h-[calc(100vh-(2*11px))] rounded-[10px] bg-brand-brown text-brand-beige flex flex-col overflow-hidden relative" > + {/* Spacer: clears the fixed header (~91px) + mirrors the bottom bar height (~52px) + so justify-center lands on the visual centre of the viewport below the header */} +
+ {/* Main content */} -
+
{/* Left — editorial text */}
@@ -91,10 +95,7 @@ export default function HeroSection() { className="hero-reveal relative flex items-center justify-center lg:w-[45%]" style={{ opacity: 0, transform: 'translateY(28px)', transition: 'opacity 900ms cubic-bezier(0.22,1,0.36,1), transform 900ms cubic-bezier(0.22,1,0.36,1)' }} > - {/* Decorative accent ring */} -
- -
+
Mathéo Guilbert, développeur Full Stack )} - {/* Back link */} -
+ {/* Top zone: clears the fixed header (~91px) + anchors the back link */} +
- {/* Main content — vertically centred */} -
+ {/* Main content — centred in the remaining visible area */} +
{/* Category pill */}
{locales.map((language, index) => ( -
+