From 5380f477cadb31908285c038838d38a384908b81 Mon Sep 17 00:00:00 2001 From: Austin Bennett Date: Thu, 23 Jul 2026 06:09:38 -0500 Subject: [PATCH] Platform 0.1.6 (contact security) + fidelity fixes from the port review - .container back in @layer components so Tailwind's px-4 still wins; unlayered it had quietly widened the gutter on every page - shadow-sm -> shadow-xs: Tailwind v4 renamed the scale, so the ported markup was giving every white card a heavier shadow than the live site - route changes jump to the top again instead of smooth-scrolling - preload the wordmark font and the hero image --- frontend/index.html | 3 +++ frontend/src/App.tsx | 4 +++- frontend/src/index.css | 19 +++++++------------ frontend/src/pages/Contact.tsx | 2 +- frontend/src/pages/Home.tsx | 2 +- frontend/src/pages/Products.tsx | 2 +- pom.xml | 4 ++-- 7 files changed, 18 insertions(+), 18 deletions(-) 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 */}
-
+

Get in touch

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) => (

{ initial={{ opacity: 0 }} animate={{ opacity: 1 }} exit={{ opacity: 0 }} - className="group bg-white rounded-3xl overflow-hidden shadow-sm hover:shadow-lg hover:-translate-y-1 transition duration-300" + className="group bg-white rounded-3xl overflow-hidden shadow-xs hover:shadow-lg hover:-translate-y-1 transition duration-300" > {/* Image Container */}
diff --git a/pom.xml b/pom.xml index 77455e5..c512f33 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ net.thebennett.platform platform-parent - 0.1.5 + 0.1.6 @@ -22,7 +22,7 @@ net.thebennett.platform platform-bom - 0.1.5 + 0.1.6 pom import