From 9d3180287a12fee77e4e2dbcf2b1ea215f826b61 Mon Sep 17 00:00:00 2001 From: hasicicsalih Date: Thu, 23 Apr 2026 12:29:12 +0200 Subject: [PATCH] fix: tighten CTA footer spacing and product detail scaling --- parfum-shop/src/App.jsx | 8 +- parfum-shop/src/components/Footer.css | 6 +- parfum-shop/src/components/Footer.jsx | 6 +- .../src/components/ProductDetailPage.css | 136 ++++++++++++------ parfum-shop/src/pages/LandingPage.css | 4 +- 5 files changed, 112 insertions(+), 48 deletions(-) diff --git a/parfum-shop/src/App.jsx b/parfum-shop/src/App.jsx index 5b49eb7..82ea10d 100644 --- a/parfum-shop/src/App.jsx +++ b/parfum-shop/src/App.jsx @@ -1,4 +1,4 @@ -import { Routes, Route } from "react-router"; +import { Routes, Route, useLocation } from "react-router"; import LandingPage from "./pages/LandingPage"; import ProductDetailPage from "./components/ProductDetailPage"; import AboutPage from "./pages/AboutPage"; @@ -14,6 +14,10 @@ import ShopDrawer from "./components/ShopDrawer"; import CartToast from "./components/CartToast"; function App() { + const location = useLocation(); + const shouldFlushFooter = + location.pathname === "/" || location.pathname.startsWith("/duft/"); + return ( <> @@ -31,7 +35,7 @@ function App() { -