From fa26092ea41d49558b0a32692eb134d90423d0f0 Mon Sep 17 00:00:00 2001 From: "diana.dolgolyova" Date: Fri, 3 Apr 2026 00:14:42 +0300 Subject: [PATCH] fix: mobile horizontal overflow and hero responsiveness - Remove scrollbar-gutter: stable, add overflow-x: hidden on html - Cap section-glow pseudo-element width to viewport on mobile - Scale down hero logo, text, spacing, and button for small screens (iPhone SE) --- package.json | 2 +- src/app/globals.css | 2 +- src/app/styles/theme.css | 2 +- src/components/sections/Hero.tsx | 14 +++++++------- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index cae5446..916e608 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "dev": "next dev", + "dev": "next dev -H 0.0.0.0", "build": "next build", "start": "next start", "lint": "next lint", diff --git a/src/app/globals.css b/src/app/globals.css index c178819..d321cfe 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -19,7 +19,7 @@ html { scroll-behavior: smooth; - scrollbar-gutter: stable; + overflow-x: hidden; } body { diff --git a/src/app/styles/theme.css b/src/app/styles/theme.css index 07a723d..a61fdc5 100644 --- a/src/app/styles/theme.css +++ b/src/app/styles/theme.css @@ -71,7 +71,7 @@ top: 0; left: 50%; transform: translateX(-50%); - width: 600px; + width: min(600px, 100%); height: 400px; background: radial-gradient(ellipse, rgba(201, 169, 110, 0.05), transparent 70%); pointer-events: none; diff --git a/src/components/sections/Hero.tsx b/src/components/sections/Hero.tsx index 162e8f9..796cab5 100644 --- a/src/components/sections/Hero.tsx +++ b/src/components/sections/Hero.tsx @@ -164,28 +164,28 @@ export function Hero({ data: hero }: HeroProps) { {/* Content */}
-
+
-

+

{hero.headline}

-

+

{hero.subheadline}

-
+