Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨[feature Request]: Imrpove the services section of home page #643

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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 Images/cart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/online-delivery.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/vintage-goods.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Images/vintage-services.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 35 additions & 29 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -353,13 +353,7 @@
flex-direction: column; /* Stack content vertically */
align-items: center;
max-width: 350px; /* Maximum width of each card */
flex: 1 1 280px; /* Allow boxes to grow and shrink */
min-width: 300px; /* Minimum width for responsiveness */
min-height: 200px; /* Minimum height for the card */
}

.box:hover{
border: 1px solid black;
}

.card-image {
Expand Down Expand Up @@ -716,31 +710,43 @@ <h2 class="h-secondary center" style="font-family: var(--ff-philosopher);">Whims

</section>

<section class="service_container">
<div class="service">
<!-- Text Column - 60% Width -->
<div class="service_text column" style="margin-left: auto; margin-right: auto;"><br>
<h1>Bringing happiness to you</h1>
<p>Order your favourite vintage collections!</p>
</div>

<!-- Buttons Column - 40% Width -->

<div class="service_buttons column" style="margin-left: auto; margin-right: auto;">
<div class="button_row" data-aos="fade-down">
<div class="service_item box" data-aos="fade-down" style="height: 200px;">
<h2>Online Delivery</h2><br>
<a href="./Html-files/menu.html" class="order_btn">Order Online</a>
</div>
<div class="service_item box" data-aos="fade-down" style="height: 200px;">
<h2>Click & Collect</h2><br>
<a href="./Html-files/cart.html" class="order_btn">Take out Order</a>
<section class="service_container">
<div class="service">
<!-- Text Column - 60% Width -->
<div class="service_text column" style="margin-left: auto; margin-right: auto;"><br>
<h1>Bringing happiness to you</h1>
<p>Order your favourite vintage collections!</p>
</div>

<!-- Buttons Column - 40% Width -->

<div class="service_buttons column" style="margin-left: auto; margin-right: auto;">
<div class="button_row" data-aos="fade-down">
<div class="service_item box" data-aos="fade-down">
<h2>Vintage Collections</h2><br>
<a href="./Html-files/menu.html" class="order_btn">Explore Goods</a>
<img src="./Images/vintage-goods.jpg" alt="collections page"/>
</div>
<div class="service_item box" data-aos="fade-down">
<h2>Vintage Services</h2><br>
<a href="./Html-files/booknow.html" class="order_btn">Explore Services</a>
<img src="./Images/vintage-services.jpg" alt="services page"/>
</div>
<div class="service_item box" data-aos="fade-down">
<h2>Online Delivery</h2><br>
<a href="./Html-files/payment2.html" class="order_btn">Order Online</a>
<img src="./Images/online-delivery.jpg" alt="online payment page"/>
</div>
<div class="service_item box" data-aos="fade-down">
<h2>Click & Collect</h2><br>
<a href="./Html-files/cart.html" class="order_btn">Take out Order</a>
<img src="./Images/cart.jpg" alt="cart page"/>
</div>
</div>
</div>
</div>


</section>


</section>

<section class="menu_container">
<div class="mainhead">
Expand Down
105 changes: 58 additions & 47 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -209,50 +209,75 @@ body {
margin-bottom: 20px;
}

/* Buttons Column - 40% */
.service_buttons {
flex: 0 0 40%;
}

.button_row {
display: flex;
justify-content: space-between;
/*border: 1px solid black;*/
gap: 20px;
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}

.service_item {
text-align: center;
flex: 1;
padding: 10px;
margin: 5px 0;
text-align: center;
flex: 1;
padding: 10px;
margin: 5px 0;
transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease; /* Smooth transition for scaling, shadow, and border */
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Initial shadow */
overflow: hidden; /* Prevent content overflow */
border-radius: 8px; /* Optional rounded corners */
border: 2px solid transparent; /* Initial border (transparent) */
}

.service_item h2 {
font-family: var(--ff-philosopher);
color: hsl(357, 82%, 35%);
font-size: 1.7rem;
margin-bottom: 10px;
font-family: var(--ff-philosopher);
color: hsl(357, 82%, 35%);
font-size: 1.7rem;
margin-bottom: 10px;
transition: color 0.3s ease; /* Smooth text color change on hover */
}


.service_item:hover h2 {
color: #b22222; /* Change title color on hover */
}

.service_item img {
width: 100%;
margin-top: 70px;
height: 200px;
object-fit: cover;
border-radius: 8px; /* Optional rounded corners */
transition: transform 0.3s ease; /* Smooth image zoom effect */
}

.service_item:hover img {
transform: scale(1.1); /* Zoom the image on hover */
}

/* Updated order_btn styles */
.order_btn {
font-family: var(--ff-poppins);
background-color: hsl(357, 82%, 35%);
color: white;
padding: 12px 30px;
font-size: 1rem;
margin-top: 10px;
text-decoration: none;
border-radius: 10px;
transition: background-color 0.3s ease;
font-family: var(--ff-poppins);
background-color: hsl(357, 82%, 35%);
color: white;
padding: 12px 30px;
font-size: 1rem;
margin-top: 10px;
text-decoration: none;
border-radius: 10px;
transition: background-color 0.3s ease, transform 0.3s ease; /* Added transform for hover effect */
}

.order_btn:hover {
background-color: hsl(357, 82%, 45%);
background-color: hsl(357, 82%, 45%);
transform: scale(1.1); /* Slightly enlarge the button on hover */
}



.service_item:hover {
transform: scale(1.5);
box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.2); /* Increase shadow depth on hover */
border: 2px solid hsl(357, 82%, 35%); /* Dark red/maroon border on hover */
}




/*
Expand All @@ -269,20 +294,6 @@ body {
}
*/

.service_container:before {
background-color: transparent;
content: "";
position: absolute;

/*
height: 560px;
height: 800px;
width: 100%;
/* justify-items: center; */
opacity: 0.4;
z-index: -1;
/* background-repeat: no-repeat; */
}

/*
.service {
Expand Down