vip / deals.html
hamidazer's picture
من میخوام یک وبسایت فروشگاهی راه اندازی کنم و میخوام صفحه ی اصلی این وبسایت و مواردی که نیاز داره رو به صورت استاتیک طراحی کنی. دقت کن تمام مواردی که یک وبسایت حرفه ای نیاز داره رو در این صفحه پیاده سازی کن
2b35cc9 verified
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>تخفیف‌ها - ShopVista</title>
<link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🛒</text></svg>">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
</head>
<body class="bg-gray-50 dark:bg-gray-900">
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="components/product-card.js"></script>
<script src="components/cart-sidebar.js"></script>
<shop-navbar></shop-navbar>
<main class="pt-20">
<!-- Hero Section -->
<section class="bg-gradient-to-br from-red-500 to-orange-500 text-white py-16">
<div class="container mx-auto px-4 text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-4">فروش ویژه شاپ‌ویستا</h1>
<p class="text-xl opacity-90 mb-8">تا 70% تخفیف بر روی محصولات منتخب - فرصت را از دست ندهید!</p>
<div class="max-w-2xl mx-auto">
<div class="bg-white/20 backdrop-blur rounded-xl p-6 grid grid-cols-4 gap-4">
<div class="text-center">
<div class="text-4xl font-bold mb-1">02</div>
<div class="text-sm">روز</div>
</div>
<div class="text-center">
<div class="text-4xl font-bold mb-1">14</div>
<div class="text-sm">ساعت</div>
</div>
<div class="text-center">
<div class="text-4xl font-bold mb-1">37</div>
<div class="text-sm">دقیقه</div>
</div>
<div class="text-center">
<div class="text-4xl font-bold mb-1">52</div>
<div class="text-sm">ثانیه</div>
</div>
</div>
</div>
</div>
</section>
<!-- Flash Deals -->
<section class="py-16">
<div class="container mx-auto px-4">
<div class="text-center mb-12">
<h2 class="text-3xl md:text-4xl font-bold text-gray-800 dark:text-white mb-4">پیشنهادات لحظه‌ای</h2>
<p class="text-gray-600 dark:text-gray-300">تخفیف‌های محدود زمانی را از دست ندهید</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<product-card
data-id="11"
data-title="گوشی آیفون 13"
data-price="28,000,000 تومان"
data-discount="30"
data-image="http://static.photos/technology/320x240/111">
</product-card>
<product-card
data-id="12"
data-title="لپ‌تاپ ASUS ROG"
data-price="65,000,000 تومان"
data-discount="25"
data-image="http://static.photos/technology/320x240/112">
</product-card>
<product-card
data-id="13"
data-title="گوشی سامسونگ S22"
data-price="18,000,000 تومان"
data-discount="35"
data-image="http://static.photos/technology/320x240/113">
</product-card>
<product-card
data-id="14"
data-title="هدفون Sony WH-1000XM4"
data-price="8,000,000 تومان"
data-discount="40"
data-image="http://static.photos/technology/320x240/114">
</product-card>
</div>
</div>
</section>
<!-- Category Deals -->
<section class="py-16 bg-gray-100 dark:bg-gray-800">
<div class="container mx-auto px-4">
<h2 class="text-3xl md:text-4xl font-bold text-center text-gray-800 dark:text-white mb-12">تخفیف‌ها بر اساس دسته‌بندی</h2>
<!-- Mobile Deals -->
<div class="mb-16">
<div class="flex justify-between items-center mb-6">
<h3 class="text-2xl font-bold dark:text-white">موبایل و تبلت</h3>
<a href="#" class="text-primary-600 hover:text-primary-700 font-semibold">مشاهده همه →</a>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-4">
<product-card
data-id="15"
data-title="گوشی iPhone 12"
data-price="20,000,000 تومان"
data-discount="20"
data-image="http://static.photos/technology/320x240/115">
</product-card>
<product-card
data-id="16"
data-title="گوشی Galaxy A53"
data-price="12,000,000 تومان"
data-discount="15"
data-image="http://static.photos/technology/320x240/116">
</product-card>
<product-card
data-id="17"
data-title="گوشی Redmi Note 12"
data-price="8,000,000 تومان"
data-discount="25"
data-image="http://static.photos/technology/320x240/117">
</product-card>
<product-card
data-id="18"
data-title="تبلت Galaxy Tab S8"
data-price="18,000,000 تومان"
data-discount="18"
data-image="http://static.photos/technology/320x240/118">
</product-card>
<product-card
data-id="19"
data-title="تبلت iPad mini"
data-price="15,000,000 تومان"
data-discount="10"
data-image="http://static.photos/technology/320x240/119">
</product-card>
</div>
</div>
<!-- Laptop Deals -->
<div class="mb-16">
<div class="flex justify-between items-center mb-6">
<h3 class="text-2xl font-bold dark:text-white">لپ‌تاپ و کامپیوتر</h3>
<a href="#" class="text-primary-600 hover:text-primary-700 font-semibold">مشاهده همه →</a>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-4">
<product-card
data-id="20"
data-title="لپ‌تاپ HP Pavilion"
data-price="28,000,000 تومان"
data-discount="22"
data-image="http://static.photos/technology/320x240/120">
</product-card>
<product-card
data-id="21"
data-title="لپ‌تاپ Acer Aspire"
data-price="22,000,000 تومان"
data-discount="18"
data-image="http://static.photos/technology/320x240/121">
</product-card>
<product-card
data-id="22"
data-title="لپ‌تاپ Surface Pro"
data-price="35,000,000 تومان"
data-discount="15"
data-image="http://static.photos/technology/320x240/122">
</product-card>
<product-card
data-id="23"
data-title="لپ‌تپ MSI Gaming"
data-price="45,000,000 تومان"
data-discount="20"
data-image="http://static.photos/technology/320x240/123">
</product-card>
<product-card
data-id="24"
data-title="لپ‌تاپ ASUS ZenBook"
data-price="38,000,000 تومان"
data-discount="25"
data-image="http://static.photos/technology/320x240/124">
</product-card>
</div>
</div>
<!-- Accessories Deals -->
<div>
<div class="flex justify-between items-center mb-6">
<h3 class="text-2xl font-bold dark:text-white">لوازم جانبی</h3>
<a href="#" class="text-primary-600 hover:text-primary-700 font-semibold">مشاهده همه →</a>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-4">
<product-card
data-id="25"
data-title="شارژر 65W Samsung"
data-price="800,000 تومان"
data-discount="30"
data-image="http://static.photos/technology/320x240/125">
</product-card>
<product-card
data-id="26"
data-title="کیبورد مکانیکی Logitech"
data-price="2,500,000 تومان"
data-discount="20"
data-image="http://static.photos/technology/320x240/126">
</product-card>
<product-card
data-id="27"
data-title="ماوس گیمینگ Razer"
data-price="1,800,000 تومان"
data-discount="25"
data-image="http://static.photos/technology/320x240/127">
</product-card>
<product-card
data-id="28"
data-title="پاوربانک 20000mAh"
data-price="900,000 تومان"
data-discount="40"
data-image="http://static.photos/technology/320x240/128">
</product-card>
<product-card
data-id="29"
data-title="محافظ صفحه شیشه‌ای"
data-price="150,000 تومان"
data-discount="50"
data-image="http://static.photos/technology/320x240/129">
</product-card>
</div>
</div>
</div>
</section>
<!-- Email Subscription -->
<section class="py-16 bg-gradient-to-r from-yellow-400 to-orange-500">
<div class="container mx-auto px-4 text-center">
<h2 class="text-3xl font-bold text-white mb-4">آخرین تخفیف‌ها را از دست ندهید!</h2>
<p class="text-white/90 mb-8">عضو شوید و اولین نفری باشید که از پیشنهادات ویژه باخبر می‌شوید</p>
<form class="max-w-md mx-auto flex flex-col sm:flex-row gap-4">
<input type="email" placeholder="ایمیل خود را وارد کنید" class="flex-1 px-6 py-3 rounded-full text-gray-800 focus:outline-none">
<button type="submit" class="bg-white text-orange-500 px-8 py-3 rounded-full font-semibold hover:bg-gray-100 transition-colors">
عضویت رایگان
</button>
</form>
</div>
</section>
</main>
<shop-footer></shop-footer>
<cart-sidebar id="cartSidebar"></cart-sidebar>
<script>
// Cart functionality
const cartBtn = document.querySelector('#cartBtn');
const cartSidebar = document.getElementById('cartSidebar');
cartBtn.addEventListener('click', () => {
cartSidebar.open();
});
// Add to cart functionality
document.querySelectorAll('.add-to-cart-btn').forEach(btn => {
btn.addEventListener('click', (e) => {
e.preventDefault();
const count = parseInt(document.getElementById('cartCount').textContent) + 1;
document.getElementById('cartCount').textContent = count;
cartSidebar.open();
});
});
</script>
</body>
</html>