chore: Styling catalog
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
import './App.css'
|
import './App.css'
|
||||||
import Catalog from './pages/catalog/Catalog'
|
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'
|
import Login from './pages/login/Login'
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
<NavBar/>
|
||||||
<Login/>
|
<Login/>
|
||||||
<Catalog/>
|
<Catalog/>
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -1,26 +1,32 @@
|
|||||||
|
|
||||||
.layout {
|
.layout {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
padding: 2rem;
|
padding: 2rem;
|
||||||
max-width: 1400px;
|
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.catalog {
|
.catalog {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
flex: 2 1 0; /* ocupa ~2/3 del ancho disponible */
|
flex: 2 1 0; /* ocupa ~2/3 del ancho disponible */
|
||||||
min-width: 0; /* evita desbordamientos horizontales */
|
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 {
|
.order {
|
||||||
flex: 1 1 0; /* ocupa ~1/3 del ancho disponible */
|
flex: 1 1 0; /* ocupa ~1/3 del ancho disponible */
|
||||||
position: sticky;
|
position: sticky;
|
||||||
top: 2rem; /* se queda pegada al hacer scroll */
|
top: 2rem; /* se queda pegada al hacer scroll */
|
||||||
height: fit-content; /* sólo el alto que necesite su contenido */
|
height: fit-content; /* sólo el alto que necesite su contenido */
|
||||||
background: #fff;
|
background: rgba(255, 255, 255, 0.9);
|
||||||
border: 1px solid violet;
|
border: 1px solid violet;
|
||||||
border-radius: 8px;
|
border-radius: 24px;
|
||||||
padding: 1.5rem;
|
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
|
||||||
|
padding: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.order:hover {
|
.order:hover {
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
border: 2px solid blueviolet;
|
border: 2px solid blueviolet;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
border-radius: 32px;
|
||||||
|
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user