Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,8 @@ import Cart from "./pages/Cart";
import Footer from "./components/Footer";
import men_banner from "./components/assets/banner_mens.png";

import women from "./components/assets/banner_women.png";
import kids from "./components/assets/banner_kids.png";
import AboutPage from "./pages/AboutPage";


import women from './components/assets/banner_women.png'
import kids from './components/assets/banner_kids.png'
import women_banner from "./components/assets/banner_women.png";
import kids_banner from "./components/assets/banner_kids.png";
import AboutPage from "./pages/AboutPage";


Expand All @@ -35,11 +30,11 @@ function App() {
/>
<Route
path="/kids"
element={<ShopCategory banner={kids} category="kids" />}
element={<ShopCategory banner={kids_banner} category="kids" />}
/>
<Route
path="/women"
element={<ShopCategory banner={women} category="women" />}
element={<ShopCategory banner={women_banner} category="women" />}
/>
<Route path="/product" element={<Product />}>
<Route path=":productId" element={<Product />} />
Expand Down
96 changes: 96 additions & 0 deletions src/components/Newcollection.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
.popular {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
margin-bottom: 96px;
}

.popular h1 {
font-size: 2.5rem; /* 4xl size */
text-align: center;
font-weight: bold;
}

.popular hr {
width: 12rem; /* 48px */
height: 4px;
background-color: #252525;
border-radius: 4px;
}

.grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin-top: 64px;
}

@media (min-width: 768px) {
.grid {
grid-template-columns: repeat(3, 1fr);
}
}

@media (min-width: 1024px) {
.grid {
grid-template-columns: repeat(4, 1fr);
}
}

.item-container {
display: flex;
flex-direction: column;
align-items: center;
transition: transform 0.3s ease;
}

.item-container:hover {
transform: scale(1.05);
}

.item-image img {
width: 100%;
height: auto;
transition: transform 0.5s;
}

.item-image:hover img {
transform: scale(1.05);
}

.item-name {
margin-top: 12px;
font-size: 1.125rem; /* 18px */
font-weight: 600;
color: #333;
text-align: center;
}

.item-price {
margin-top: 8px;
font-size: 1rem;
color: #5e5e5e;
}

.item-price .old-price {
text-decoration: line-through;
color: #999;
}

.item-price .new-price {
font-weight: bold;
color: #252525;
}

@media (max-width: 768px) {
.popular h1 {
font-size: 1.875rem; /* 3xl size */
}

.popular hr {
width: 8rem; /* 32px */
height: 3px;
}
}

1 change: 1 addition & 0 deletions src/components/Newcollection.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import new_collection from './assets/new_collections';
import Item from './items';
import './Newcollection.css';

const Newcollection = () => {
return (
Expand Down