Skip to content
Merged
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
Binary file added frontend/public/hero-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/components/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const Header = () => {
<Link to="/products">Products</Link>
</li>
<li>
<Link to="/about">About</Link>
<Link to="/they">His & Hers</Link>
</li>
</ul>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@ const index = () => {
Introducing a scent made for the man who defines his own path. Rich
in depth, layered with confidence.
</p>
<Button label={"view Products"} />
<Button label={"View Products"} />
</div>
<div className={styles.img_section}>
<img
src="https://stockperfume.com/_next/image?url=%2Fimages%2Fstockperfume%2Fbanner%2Fhome-banner-mobile.png&w=3840&q=75"
alt="Perfume"
/>
<img src="/hero-image.jpg" alt="Perfume Hero" />
</div>
</div>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,11 @@
gap: 3rem;
min-height: 90vh;
box-sizing: border-box;
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 24px rgba(21, 48, 87, 0.08);
}
.landing_section button {
background-color: var(--secondary-color);
color: #ffffff;
width: fit-content;
height: fit-content;
padding: 1rem 3rem;
align-items: center;
border-radius: 30px;
margin-left: 30%;
}

.img_section {
flex: 1;
display: flex;
Expand All @@ -30,11 +24,9 @@
height: auto;
border-radius: 12px;
object-fit: cover;
box-shadow: 0 2px 12px rgba(21, 48, 87, 0.06);
}

.welcome_message {
color: var(--primary-color);
}
.welcome_message {
flex: 1;
display: flex;
Expand All @@ -43,37 +35,31 @@
align-items: flex-start;
gap: 1rem;
color: var(--primary-color);
font-family: var(--font-main);
}

.welcome_message h1 {
font-size: 3rem;
font-weight: bold;
margin: 0;
color: var(--primary-color);
}

.welcome_message h4 {
font-size: 1.5rem;
margin: 0;
font-weight: 500;
color: var(--secondary-color);
}

.welcome_message p {
font-size: 1.125rem;
font-weight: 500;
line-height: 1.6;
margin: 0;
}
.welcome_message h1 {
font-size: 5rem;
}

.welcome_message h4 {
font-size: 1.5rem;
color: var(--text-secondary-color);
}

.welcome_message p {
font-size: 1rem;
color: rgb(185, 185, 185);
}
@media (max-width: 768px) {
.landing_section {
flex-direction: column;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,45 @@
}

.LatestSection {
padding: 3rem 20%;
padding: 3rem 5%;
background: #fff;
border-radius: 12px;
box-shadow: 0 4px 24px rgba(21, 48, 87, 0.08);
font-family: var(--font-main);
}

.LatestSection h3 {
font-size: 2rem;
margin-bottom: 2rem;
text-align: center;
color: var(--primary-color);
font-weight: bold;
}

.cardContainer {
display: flex;
flex-wrap: wrap;
justify-content: center;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
justify-content: center;
}

.cardContainer > * {
flex: 0 2 calc(33.33% - 2rem);
max-width: calc(33.33% - 2rem);
max-width: 100%;
width: 100%;
}

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

@media (max-width: 768px) {
.card {
.cardContainer {
grid-template-columns: 1fr;
}
.cardContainer > * {
width: 100%;
max-width: 100%;
}
}
29 changes: 19 additions & 10 deletions frontend/src/features/Home/components/OfferSection/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
padding: 4rem 5%;
text-align: center;
background-color: #fff;
border-radius: 12px;
box-shadow: 0 4px 24px rgba(21, 48, 87, 0.08);
font-family: var(--font-main);
}

.offerSection h2 {
font-size: 2.5rem;
margin-bottom: 2rem;
font-weight: bold;
color: var(--primary-color);
}

.cardContainer {
Expand All @@ -18,37 +22,42 @@
}

.card {
background: #f9f9f9;
padding: 2rem;
background: #fff;
border-radius: 12px;
box-shadow: 0 2px 12px rgba(21, 48, 87, 0.06);
border: 2px solid var(--secondary-color);
padding: 2rem;
flex: 1 1 220px;
max-width: 260px;
text-align: center;
box-shadow: 0 0 0 2px transparent;
transition: all 0.3s ease;
transition: box-shadow 0.3s ease, transform 0.2s;
font-family: var(--font-main);
}

.card:hover {
box-shadow: 0 0 0 2px #a855f7;
box-shadow: 0 6px 24px rgba(21, 48, 87, 0.15);
transform: translateY(-6px) scale(1.03);
}

.card img {
width: 64px;
height: 64px;
margin-bottom: 1rem;
background-color: #fff;
border-radius: 50%;
box-shadow: 0 2px 8px rgba(21, 48, 87, 0.08);
padding: 0.5rem;
}

.card h4 {
font-size: 1.2rem;
font-weight: bold;
color: #222;
color: var(--primary-color);
margin-bottom: 0.75rem;
}

.card p {
font-size: 0.95rem;
color: #666;
}
.img {
background-color: transparent;
color: var(--text-secondary-color);
font-weight: 500;
}
Loading