feat: Applied basic styles

This commit is contained in:
2026-01-22 14:15:25 -05:00
parent c55e601d51
commit 3ba4ecba66
8 changed files with 57 additions and 26 deletions

View File

@@ -1,13 +1,12 @@
import './App.css'
import NavBar from './components/nav_bar/NavBar'
import Catalog from './pages/catalog/Catalog'
import Login from './pages/login/Login'
// import Login from './pages/login/Login'
function App() {
return (
<>
<NavBar/>
<Login/>
<Catalog/>
</>
)

View File

@@ -18,11 +18,15 @@
top: 2rem; /* se queda pegada al hacer scroll */
height: fit-content; /* sólo el alto que necesite su contenido */
background: #fff;
border: 1px solid #e5e5e5;
border: 1px solid violet;
border-radius: 8px;
padding: 1.5rem;
}
.order:hover {
border: 3px dotted darkviolet;
}
/* Responsive: en pantallas estrechas se apilan */
@media (max-width: 768px) {
.layout {

View File

@@ -1,3 +1,5 @@
import styles from './Order.module.css'
const Order = () => {
return (
<>

View File

@@ -0,0 +1,6 @@
.container {
border: 2px solid blueviolet;
display: flex;
flex-wrap: wrap;
}

View File

@@ -1,5 +1,7 @@
import Card from './components/card/card.tsx';
import type { Product } from '../../../../types.ts'
import styles from "./ProductCards.module.css"
type ProductCardProps = {
products: Product[];
@@ -8,7 +10,7 @@ type ProductCardProps = {
const ProductCards = ({ products } : ProductCardProps) => {
return (
<>
<div className={styles.container}>
{ products.map((product) => {
return (
<div key={product.id}>
@@ -22,7 +24,7 @@ const ProductCards = ({ products } : ProductCardProps) => {
</div>
)
}) }
</>
</div>
)
}

View File

@@ -0,0 +1,21 @@
.container {
display: flex;
flex-direction: column;
justify-content: space-between;
border: 2px solid snow;
width: 325px;
height: 500px;
padding: 10px;
margin: 8px;
}
.container:hover {
border: 3px dotted pink;
}
.button_container {
display: flex;
flex-direction: column;
gap: 16px
}

View File

@@ -1,3 +1,5 @@
import styles from './Card.module.css'
type CardProps = {
image: string;
name: string;
@@ -9,18 +11,13 @@ type CardProps = {
const Card = ({ image, name, price, description, cardId } : CardProps) => {
return (
<div key={cardId}>
<div>
<div className={styles.container} key={cardId}>
<img src={`${image}`} alt="Imagen"/>
</div>
<div>
<p>{name}</p>
<p>{price}</p>
<p>{description}</p>
</div>
<div>
<div className={styles.button_container}>
<button>Conocer Origen</button>
<button>Agregar</button>
</div>