Spaces:
Running
Running
website for selling gpu hardware in morocco
Browse files- README.md +8 -5
- components/footer.js +72 -0
- components/navbar.js +63 -0
- index.html +101 -19
- script.js +71 -0
- style.css +23 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: GPU Souk Morocco ππ»
|
| 3 |
+
colorFrom: gray
|
| 4 |
+
colorTo: gray
|
| 5 |
+
emoji: π³
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
components/footer.js
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.footer-link:hover {
|
| 7 |
+
color: #4F46E5;
|
| 8 |
+
}
|
| 9 |
+
</style>
|
| 10 |
+
<footer class="bg-gray-900 text-white py-12">
|
| 11 |
+
<div class="container mx-auto px-6">
|
| 12 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 13 |
+
<div>
|
| 14 |
+
<h3 class="text-xl font-bold mb-4">GPU Souk</h3>
|
| 15 |
+
<p class="text-gray-400">Morocco's premier destination for high-performance graphics cards and PC components.</p>
|
| 16 |
+
</div>
|
| 17 |
+
<div>
|
| 18 |
+
<h4 class="text-lg font-semibold mb-4">Quick Links</h4>
|
| 19 |
+
<ul class="space-y-2">
|
| 20 |
+
<li><a href="/" class="footer-link text-gray-400 hover:text-white">Home</a></li>
|
| 21 |
+
<li><a href="#products" class="footer-link text-gray-400 hover:text-white">Products</a></li>
|
| 22 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-white">About Us</a></li>
|
| 23 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Contact</a></li>
|
| 24 |
+
</ul>
|
| 25 |
+
</div>
|
| 26 |
+
<div>
|
| 27 |
+
<h4 class="text-lg font-semibold mb-4">Support</h4>
|
| 28 |
+
<ul class="space-y-2">
|
| 29 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-white">FAQs</a></li>
|
| 30 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Shipping Policy</a></li>
|
| 31 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Returns & Warranty</a></li>
|
| 32 |
+
<li><a href="#" class="footer-link text-gray-400 hover:text-white">Privacy Policy</a></li>
|
| 33 |
+
</ul>
|
| 34 |
+
</div>
|
| 35 |
+
<div>
|
| 36 |
+
<h4 class="text-lg font-semibold mb-4">Contact Us</h4>
|
| 37 |
+
<ul class="space-y-2">
|
| 38 |
+
<li class="flex items-center">
|
| 39 |
+
<i data-feather="map-pin" class="mr-2 w-4 h-4"></i>
|
| 40 |
+
<span class="text-gray-400">Casablanca, Morocco</span>
|
| 41 |
+
</li>
|
| 42 |
+
<li class="flex items-center">
|
| 43 |
+
<i data-feather="mail" class="mr-2 w-4 h-4"></i>
|
| 44 |
+
<span class="text-gray-400">contact@gpusouk.ma</span>
|
| 45 |
+
</li>
|
| 46 |
+
<li class="flex items-center">
|
| 47 |
+
<i data-feather="phone" class="mr-2 w-4 h-4"></i>
|
| 48 |
+
<span class="text-gray-400">+212 6 12 34 56 78</span>
|
| 49 |
+
</li>
|
| 50 |
+
</ul>
|
| 51 |
+
</div>
|
| 52 |
+
</div>
|
| 53 |
+
<div class="border-t border-gray-800 mt-8 pt-8 flex flex-col md:flex-row justify-between items-center">
|
| 54 |
+
<p class="text-gray-400 mb-4 md:mb-0">Β© 2023 GPU Souk. All rights reserved.</p>
|
| 55 |
+
<div class="flex space-x-4">
|
| 56 |
+
<a href="#" class="text-gray-400 hover:text-white">
|
| 57 |
+
<i data-feather="facebook"></i>
|
| 58 |
+
</a>
|
| 59 |
+
<a href="#" class="text-gray-400 hover:text-white">
|
| 60 |
+
<i data-feather="twitter"></i>
|
| 61 |
+
</a>
|
| 62 |
+
<a href="#" class="text-gray-400 hover:text-white">
|
| 63 |
+
<i data-feather="instagram"></i>
|
| 64 |
+
</a>
|
| 65 |
+
</div>
|
| 66 |
+
</div>
|
| 67 |
+
</div>
|
| 68 |
+
</footer>
|
| 69 |
+
`;
|
| 70 |
+
}
|
| 71 |
+
}
|
| 72 |
+
customElements.define('custom-footer', CustomFooter);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.navbar {
|
| 7 |
+
backdrop-filter: blur(10px);
|
| 8 |
+
background-color: rgba(255, 255, 255, 0.9);
|
| 9 |
+
}
|
| 10 |
+
.nav-link:hover {
|
| 11 |
+
color: #4F46E5;
|
| 12 |
+
}
|
| 13 |
+
.cart-count {
|
| 14 |
+
top: -8px;
|
| 15 |
+
right: -8px;
|
| 16 |
+
}
|
| 17 |
+
</style>
|
| 18 |
+
<nav class="navbar fixed w-full z-50 shadow-sm">
|
| 19 |
+
<div class="container mx-auto px-6 py-4">
|
| 20 |
+
<div class="flex justify-between items-center">
|
| 21 |
+
<a href="/" class="flex items-center">
|
| 22 |
+
<span class="text-2xl font-bold text-primary">GPU Souk</span>
|
| 23 |
+
</a>
|
| 24 |
+
|
| 25 |
+
<div class="hidden md:flex space-x-8">
|
| 26 |
+
<a href="/" class="nav-link text-gray-800 font-medium hover:text-primary">Home</a>
|
| 27 |
+
<a href="#products" class="nav-link text-gray-800 font-medium hover:text-primary">Products</a>
|
| 28 |
+
<a href="#" class="nav-link text-gray-800 font-medium hover:text-primary">About</a>
|
| 29 |
+
<a href="#" class="nav-link text-gray-800 font-medium hover:text-primary">Contact</a>
|
| 30 |
+
</div>
|
| 31 |
+
|
| 32 |
+
<div class="flex items-center space-x-4">
|
| 33 |
+
<div class="relative">
|
| 34 |
+
<a href="#" class="text-gray-800 hover:text-primary">
|
| 35 |
+
<i data-feather="shopping-cart"></i>
|
| 36 |
+
<span class="cart-count absolute bg-secondary text-white text-xs font-bold rounded-full h-5 w-5 flex items-center justify-center">3</span>
|
| 37 |
+
</a>
|
| 38 |
+
</div>
|
| 39 |
+
<a href="#" class="hidden md:block bg-primary hover:bg-indigo-700 text-white px-4 py-2 rounded-lg font-medium transition duration-300">
|
| 40 |
+
Sign In
|
| 41 |
+
</a>
|
| 42 |
+
<button class="md:hidden text-gray-800 focus:outline-none" id="mobile-menu-button">
|
| 43 |
+
<i data-feather="menu"></i>
|
| 44 |
+
</button>
|
| 45 |
+
</div>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<!-- Mobile menu -->
|
| 49 |
+
<div class="md:hidden hidden mt-4" id="mobile-menu">
|
| 50 |
+
<a href="/" class="block py-2 text-gray-800 hover:text-primary">Home</a>
|
| 51 |
+
<a href="#products" class="block py-2 text-gray-800 hover:text-primary">Products</a>
|
| 52 |
+
<a href="#" class="block py-2 text-gray-800 hover:text-primary">About</a>
|
| 53 |
+
<a href="#" class="block py-2 text-gray-800 hover:text-primary">Contact</a>
|
| 54 |
+
<a href="#" class="block mt-2 bg-primary hover:bg-indigo-700 text-white px-4 py-2 rounded-lg font-medium transition duration-300 text-center">
|
| 55 |
+
Sign In
|
| 56 |
+
</a>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
</nav>
|
| 60 |
+
`;
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,101 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="scroll-smooth">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>GPU Souk Morocco | Premium Graphics Cards Marketplace</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 11 |
+
<script>
|
| 12 |
+
tailwind.config = {
|
| 13 |
+
theme: {
|
| 14 |
+
extend: {
|
| 15 |
+
colors: {
|
| 16 |
+
primary: '#4F46E5',
|
| 17 |
+
secondary: '#10B981',
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
</script>
|
| 23 |
+
</head>
|
| 24 |
+
<body class="bg-gray-50">
|
| 25 |
+
<custom-navbar></custom-navbar>
|
| 26 |
+
|
| 27 |
+
<main>
|
| 28 |
+
<!-- Hero Section -->
|
| 29 |
+
<section class="relative bg-gradient-to-r from-primary to-indigo-700 text-white py-20">
|
| 30 |
+
<div class="container mx-auto px-6 text-center">
|
| 31 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-6">Power Up Your Rig</h1>
|
| 32 |
+
<p class="text-xl md:text-2xl mb-8">Premium GPUs from Morocco's trusted marketplace</p>
|
| 33 |
+
<a href="#products" class="bg-secondary hover:bg-green-500 text-white font-bold py-3 px-8 rounded-full transition duration-300 inline-flex items-center">
|
| 34 |
+
Shop Now <i data-feather="arrow-right" class="ml-2"></i>
|
| 35 |
+
</a>
|
| 36 |
+
</div>
|
| 37 |
+
<div class="absolute bottom-0 left-0 right-0 h-16 bg-white transform skew-y-1 origin-top-left"></div>
|
| 38 |
+
</section>
|
| 39 |
+
|
| 40 |
+
<!-- Featured Products -->
|
| 41 |
+
<section id="products" class="py-16 bg-white">
|
| 42 |
+
<div class="container mx-auto px-6">
|
| 43 |
+
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Featured Graphics Cards</h2>
|
| 44 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8" id="featured-products">
|
| 45 |
+
<!-- Products will be loaded via JavaScript -->
|
| 46 |
+
</div>
|
| 47 |
+
</div>
|
| 48 |
+
</section>
|
| 49 |
+
|
| 50 |
+
<!-- Why Choose Us -->
|
| 51 |
+
<section class="py-16 bg-gray-100">
|
| 52 |
+
<div class="container mx-auto px-6">
|
| 53 |
+
<h2 class="text-3xl font-bold text-center text-gray-800 mb-12">Why Choose GPU Souk?</h2>
|
| 54 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 55 |
+
<div class="bg-white p-8 rounded-xl shadow-md text-center">
|
| 56 |
+
<div class="bg-primary bg-opacity-10 p-4 rounded-full inline-block mb-4">
|
| 57 |
+
<i data-feather="shield" class="text-primary w-8 h-8"></i>
|
| 58 |
+
</div>
|
| 59 |
+
<h3 class="text-xl font-semibold mb-3">Authentic Products</h3>
|
| 60 |
+
<p class="text-gray-600">All our GPUs are 100% authentic with verified suppliers.</p>
|
| 61 |
+
</div>
|
| 62 |
+
<div class="bg-white p-8 rounded-xl shadow-md text-center">
|
| 63 |
+
<div class="bg-secondary bg-opacity-10 p-4 rounded-full inline-block mb-4">
|
| 64 |
+
<i data-feather="truck" class="text-secondary w-8 h-8"></i>
|
| 65 |
+
</div>
|
| 66 |
+
<h3 class="text-xl font-semibold mb-3">Fast Delivery</h3>
|
| 67 |
+
<p class="text-gray-600">Express shipping across all major cities in Morocco.</p>
|
| 68 |
+
</div>
|
| 69 |
+
<div class="bg-white p-8 rounded-xl shadow-md text-center">
|
| 70 |
+
<div class="bg-primary bg-opacity-10 p-4 rounded-full inline-block mb-4">
|
| 71 |
+
<i data-feather="headphones" class="text-primary w-8 h-8"></i>
|
| 72 |
+
</div>
|
| 73 |
+
<h3 class="text-xl font-semibold mb-3">24/7 Support</h3>
|
| 74 |
+
<p class="text-gray-600">Our team is always ready to assist you with any questions.</p>
|
| 75 |
+
</div>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
</section>
|
| 79 |
+
|
| 80 |
+
<!-- Newsletter -->
|
| 81 |
+
<section class="py-16 bg-primary text-white">
|
| 82 |
+
<div class="container mx-auto px-6 text-center">
|
| 83 |
+
<h2 class="text-3xl font-bold mb-6">Stay Updated</h2>
|
| 84 |
+
<p class="text-xl mb-8 max-w-2xl mx-auto">Subscribe to get exclusive deals and the latest GPU drops in Morocco.</p>
|
| 85 |
+
<form class="max-w-md mx-auto flex">
|
| 86 |
+
<input type="email" placeholder="Your email address" class="flex-grow px-4 py-3 rounded-l-lg focus:outline-none text-gray-800">
|
| 87 |
+
<button type="submit" class="bg-secondary hover:bg-green-500 px-6 py-3 rounded-r-lg font-medium transition duration-300">Subscribe</button>
|
| 88 |
+
</form>
|
| 89 |
+
</div>
|
| 90 |
+
</section>
|
| 91 |
+
</main>
|
| 92 |
+
|
| 93 |
+
<custom-footer></custom-footer>
|
| 94 |
+
|
| 95 |
+
<script src="components/navbar.js"></script>
|
| 96 |
+
<script src="components/footer.js"></script>
|
| 97 |
+
<script src="script.js"></script>
|
| 98 |
+
<script>feather.replace();</script>
|
| 99 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 100 |
+
</body>
|
| 101 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Sample product data (in a real app, this would come from an API)
|
| 2 |
+
const products = [
|
| 3 |
+
{
|
| 4 |
+
id: 1,
|
| 5 |
+
name: "NVIDIA RTX 4090",
|
| 6 |
+
price: "15,999 MAD",
|
| 7 |
+
image: "http://static.photos/technology/640x360/1",
|
| 8 |
+
specs: "24GB GDDR6X | 16,384 CUDA Cores"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
id: 2,
|
| 12 |
+
name: "AMD RX 7900 XTX",
|
| 13 |
+
price: "12,499 MAD",
|
| 14 |
+
image: "http://static.photos/technology/640x360/2",
|
| 15 |
+
specs: "24GB GDDR6 | 6,144 Stream Processors"
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
id: 3,
|
| 19 |
+
name: "NVIDIA RTX 4080",
|
| 20 |
+
price: "11,999 MAD",
|
| 21 |
+
image: "http://static.photos/technology/640x360/3",
|
| 22 |
+
specs: "16GB GDDR6X | 9,728 CUDA Cores"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
id: 4,
|
| 26 |
+
name: "AMD RX 7800 XT",
|
| 27 |
+
price: "9,999 MAD",
|
| 28 |
+
image: "http://static.photos/technology/640x360/4",
|
| 29 |
+
specs: "16GB GDDR6 | 5,120 Stream Processors"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
id: 5,
|
| 33 |
+
name: "NVIDIA RTX 4070 Ti",
|
| 34 |
+
price: "8,999 MAD",
|
| 35 |
+
image: "http://static.photos/technology/640x360/5",
|
| 36 |
+
specs: "12GB GDDR6X | 7,680 CUDA Cores"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
id: 6,
|
| 40 |
+
name: "AMD RX 7700 XT",
|
| 41 |
+
price: "7,499 MAD",
|
| 42 |
+
image: "http://static.photos/technology/640x360/6",
|
| 43 |
+
specs: "12GB GDDR6 | 3,456 Stream Processors"
|
| 44 |
+
}
|
| 45 |
+
];
|
| 46 |
+
|
| 47 |
+
// Load featured products
|
| 48 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 49 |
+
const productsContainer = document.getElementById('featured-products');
|
| 50 |
+
|
| 51 |
+
products.forEach(product => {
|
| 52 |
+
const productCard = document.createElement('div');
|
| 53 |
+
productCard.className = 'product-card bg-white rounded-xl shadow-md overflow-hidden transition duration-300';
|
| 54 |
+
productCard.innerHTML = `
|
| 55 |
+
<div class="h-48 overflow-hidden">
|
| 56 |
+
<img src="${product.image}" alt="${product.name}" class="w-full h-full object-cover">
|
| 57 |
+
</div>
|
| 58 |
+
<div class="p-6">
|
| 59 |
+
<h3 class="text-xl font-semibold text-gray-800 mb-2">${product.name}</h3>
|
| 60 |
+
<p class="text-gray-600 mb-4">${product.specs}</p>
|
| 61 |
+
<div class="flex justify-between items-center">
|
| 62 |
+
<span class="text-primary font-bold text-lg">${product.price}</span>
|
| 63 |
+
<button class="bg-primary hover:bg-indigo-700 text-white px-4 py-2 rounded-lg font-medium transition duration-300">
|
| 64 |
+
Add to Cart
|
| 65 |
+
</button>
|
| 66 |
+
</div>
|
| 67 |
+
</div>
|
| 68 |
+
`;
|
| 69 |
+
productsContainer.appendChild(productCard);
|
| 70 |
+
});
|
| 71 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,33 @@
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Custom styles */
|
| 2 |
body {
|
| 3 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
+
/* Smooth transitions */
|
| 7 |
+
a, button {
|
| 8 |
+
transition: all 0.3s ease;
|
| 9 |
}
|
| 10 |
|
| 11 |
+
/* Product card hover effect */
|
| 12 |
+
.product-card:hover {
|
| 13 |
+
transform: translateY(-5px);
|
| 14 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
|
|
|
| 15 |
}
|
| 16 |
|
| 17 |
+
/* Custom scrollbar */
|
| 18 |
+
::-webkit-scrollbar {
|
| 19 |
+
width: 8px;
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
|
| 22 |
+
::-webkit-scrollbar-track {
|
| 23 |
+
background: #f1f1f1;
|
| 24 |
}
|
| 25 |
+
|
| 26 |
+
::-webkit-scrollbar-thumb {
|
| 27 |
+
background: #888;
|
| 28 |
+
border-radius: 4px;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
::-webkit-scrollbar-thumb:hover {
|
| 32 |
+
background: #555;
|
| 33 |
+
}
|