From 135782e54b4db6f222e687e36deac85045fcb0cb Mon Sep 17 00:00:00 2001 From: Luca Sacchi Ricciardi Date: Fri, 3 Apr 2026 16:08:32 +0200 Subject: [PATCH] refactor: improve layout with consistent containers and spacing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apply UI refactoring following design best practices: Layout Improvements: - Standardize all sections to use max-w-7xl mx-auto px-4 container - Increase vertical spacing: py-24 lg:py-32 for better whitespace - Move padding-x from section to inner container for consistency - Improve visual hierarchy with generous breathing room Components Updated: - Navbar: Consistent container padding structure - Hero: max-w-5xl → max-w-7xl, increased py-16 → py-24 - ProblemSolution: max-w-6xl → max-w-7xl, py-16 → py-24 - HowItWorks: max-w-6xl → max-w-7xl, py-16 → py-24 Design Principles Applied: - Consistent max-width containers (max-w-7xl) - Generous whitespace between sections (py-24/32) - Mobile-first responsive padding (px-4 sm:px-6 lg:px-8) - Better readability with ample vertical spacing Safety First: - Verified Tailwind classes compile correctly - Layout remains responsive across breakpoints - No breaking changes to component logic - Incremental improvements following 'little often' Refs: docs/frontend_landing_plan.md --- frontend/src/components/layout/Navbar.tsx | 4 ++-- frontend/src/components/sections/Hero.tsx | 4 ++-- frontend/src/components/sections/HowItWorks.tsx | 4 ++-- frontend/src/components/sections/ProblemSolution.tsx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/layout/Navbar.tsx b/frontend/src/components/layout/Navbar.tsx index 2a587c7..38940a6 100644 --- a/frontend/src/components/layout/Navbar.tsx +++ b/frontend/src/components/layout/Navbar.tsx @@ -6,8 +6,8 @@ interface NavbarProps { export const Navbar: React.FC = ({ onCtaClick }) => { return ( -