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

added most loved products section #705

Merged
merged 1 commit into from
Nov 6, 2024
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 images/apple-vr-headset.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/gaming-chair-2.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/gaming-chair.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/gaming-keyboard-mouse.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/gaming-keyboard.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/gaming-laptop.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/gaming-mouse.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/wireless-controller.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/wireless-headset-2.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/wireless-headset.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,55 @@ <h3>Ergonomic Gaming Chair</h3>
</div>
</div>

<div class="most-loved-products">
<h2>Our Most Loved Products</h2>
<div class="product-slider">
<div class="product-card">
<img src="images/gaming-chair.jpg" alt="Gaming Chair">
<h3>Gaming Chair</h3>
</div>
<div class="product-card">
<img src="images/wireless-headset.jpg" alt="Wireless Headset">
<h3>Wireless Headset</h3>
</div>
<div class="product-card">
<img src="images/gaming-keyboard.jpg" alt="Mechanical Gaming Keyboard">
<h3>Mechanical Gaming Keyboard</h3>
</div>
<div class="product-card">
<img src="images/gaming-mouse.jpg" alt="High Performing Gaming Mouse">
<h3>High Performing Gaming Mouse</h3>
</div>
<div class="product-card">
<img src="images/apple-vr-headset.jpg" alt="VR Headset by Apple">
<h3>VR Headset by Apple</h3>
</div>
<div class="product-card">
<img src="images/wireless-headset-2.jpg" alt="VR Headset">
<h3>VR Headset</h3>
</div>
<div class="product-card">
<img src="images/wireless-controller.jpg" alt="Wireless Controller">
<h3>Wireless Controller</h3>
</div>
<!-- Duplicate first few items for seamless effect -->
<div class="product-card">
<img src="images/gaming-chair-2.jpg" alt="Gaming Laptop">
<h3>Gaming Laptop</h3>
</div>
<div class="product-card">
<img src="images/gaming-laptop.jpg" alt="Gaming Laptop">
<h3>Gaming Laptop</h3>
</div>
<div class="product-card">
<img src="images/gaming-keyboard-mouse.jpg" alt="Mechanical Gaming Keyboard and Mouse">
<h3>Mechanical Gaming Keyboard and Mouse</h3>
</div>
</div>
</div>



<!-- FAQ Section -->
<section id="faq">
<div class="faq-container">
Expand Down Expand Up @@ -754,6 +803,7 @@ <h2>Feedback Form</h2>

</script>
</div>

</body>


Expand Down
58 changes: 58 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2252,3 +2252,61 @@ button {
font-size: 18px;
}
}
.most-loved-products {
text-align: center;
padding: 2rem;
background: linear-gradient(120deg, #f7562d, #f533a4, rgb(235, 235, 82));
color: #0a0a0a;
overflow: hidden; /* Hide overflow for sliding effect */
}

.most-loved-products h2 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 1.5rem;
color: #000;
}

.product-slider {
display: flex;
gap: 1.5rem;
animation: slide 20s linear infinite;
}

.product-card {
min-width: 150px; /* Ensures each card is the same width */
background-color: #2b2b2b;
padding: 1rem;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
transform: scale(1.05);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.product-card img {
width: 100%;
height: auto;
border-radius: 4px;
margin-bottom: 0.5rem;
}

.product-card h3 {
font-size: 1rem;
color: #ffffff;
margin: 0.5rem 0 0;
font-weight: 600;
}

/* Keyframes for sliding effect */
@keyframes slide {
0%, 100% {
transform: translateX(0);
}
50% {
transform: translateX(calc(-40px * 7)); /* Adjust based on the total width of all items */
}
}
Loading