diff --git a/frontend/index.html b/frontend/index.html index 80ea908..56edbf0 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -7,6 +7,9 @@ + + + diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index ca04a01..1c6a5a6 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -15,7 +15,9 @@ import NotFoundPage from '@/pages/NotFound'; const ScrollToTop = () => { const { pathname, hash } = useLocation(); useEffect(() => { - if (!hash) window.scrollTo(0, 0); + // 'instant' overrides the page's scroll-behavior:smooth, which is meant for the #visit + // anchor, not for landing on a new page. + if (!hash) window.scrollTo({ top: 0, behavior: 'instant' }); }, [pathname, hash]); return null; }; diff --git a/frontend/src/index.css b/frontend/src/index.css index 18ab1e7..8994160 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -70,18 +70,13 @@ body { } } -/* Deliberately unlayered so it overrides Tailwind's own `container` utility — the site's gutters are - part of the layout, not the breakpoint default. */ -.container { - max-width: 80rem; - margin-inline: auto; - padding-inline: 1rem; -} -@media (min-width: 40rem) { - .container { padding-inline: 1.5rem; } -} -@media (min-width: 64rem) { - .container { padding-inline: 2rem; } +/* In @layer components, matching the old site. That ordering matters: a utility like `px-4` — which + the markup applies alongside `container` on nearly every section — has to win over this, or every + gutter on the site silently widens. */ +@layer components { + .container { + @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8; + } } ::selection { diff --git a/frontend/src/pages/Contact.tsx b/frontend/src/pages/Contact.tsx index 21bc4be..a6089e9 100644 --- a/frontend/src/pages/Contact.tsx +++ b/frontend/src/pages/Contact.tsx @@ -50,7 +50,7 @@ const ContactPage = () => { {/* Contact Form Section */}
Or call us: (309) 701-0660 diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx index a4f8d68..00c59db 100644 --- a/frontend/src/pages/Home.tsx +++ b/frontend/src/pages/Home.tsx @@ -54,7 +54,7 @@ const HomePage = () => { {['Cinnamon Rolls', 'Sugar Cookies', 'Cakes'].map((item) => (