diff --git a/src/App.tsx b/src/App.tsx index f9f2dd9..544007e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,11 +1,12 @@ import './App.css' import Catalog from './pages/catalog/Catalog' -// import NavBar from './components/nav_bar/NavBar' +import NavBar from './components/nav_bar/NavBar' import Login from './pages/login/Login' function App() { return ( <> + diff --git a/src/pages/catalog/Catalog.module.css b/src/pages/catalog/Catalog.module.css index 8fd83f6..d8548a2 100644 --- a/src/pages/catalog/Catalog.module.css +++ b/src/pages/catalog/Catalog.module.css @@ -1,26 +1,32 @@ .layout { display: flex; + flex-direction: row; gap: 2rem; padding: 2rem; - max-width: 1400px; margin: 0 auto; } .catalog { + display: flex; + flex-direction: column; flex: 2 1 0; /* ocupa ~2/3 del ancho disponible */ min-width: 0; /* evita desbordamientos horizontales */ + background: rgba(255, 255, 255, 0.9); + border-radius: 24px; + box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1); } .order { - flex: 1 1 0; /* ocupa ~1/3 del ancho disponible */ - position: sticky; - top: 2rem; /* se queda pegada al hacer scroll */ - height: fit-content; /* sólo el alto que necesite su contenido */ - background: #fff; - border: 1px solid violet; - border-radius: 8px; - padding: 1.5rem; + flex: 1 1 0; /* ocupa ~1/3 del ancho disponible */ + position: sticky; + top: 2rem; /* se queda pegada al hacer scroll */ + height: fit-content; /* sólo el alto que necesite su contenido */ + background: rgba(255, 255, 255, 0.9); + border: 1px solid violet; + border-radius: 24px; + box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1); + padding: 1.5rem; } .order:hover { diff --git a/src/pages/catalog/components/product_cards/ProductCards.module.css b/src/pages/catalog/components/product_cards/ProductCards.module.css index 0c6e1b8..3fc7f70 100644 --- a/src/pages/catalog/components/product_cards/ProductCards.module.css +++ b/src/pages/catalog/components/product_cards/ProductCards.module.css @@ -1,6 +1,10 @@ .container { + display: flex; + justify-content: center; border: 2px solid blueviolet; display: flex; flex-wrap: wrap; + border-radius: 32px; + box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1); }