cc44r / index.html
Rayan545454's picture
https://salla.sa/th66 - Initial Deployment
156e85b verified
Raw
History Blame Contribute Delete
12.4 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern E-commerce Product Page</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.product-image {
transition: transform 0.3s ease;
}
.product-image:hover {
transform: scale(1.05);
}
.nav-link:hover::after {
content: '';
display: block;
width: 100%;
height: 2px;
background-color: #3b82f6;
margin-top: 2px;
}
.discount-badge {
position: absolute;
top: 10px;
right: 10px;
background-color: #ef4444;
color: white;
padding: 2px 8px;
border-radius: 4px;
font-weight: bold;
font-size: 0.75rem;
}
.quantity-btn {
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
user-select: none;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.fade-in {
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body class="bg-gray-50 font-sans">
<!-- Header/Navigation -->
<header class="bg-white shadow-sm sticky top-0 z-50">
<div class="container mx-auto px-4 py-3">
<div class="flex justify-between items-center">
<!-- Logo -->
<div class="flex items-center">
<a href="#" class="text-2xl font-bold text-blue-600">Salla</a>
</div>
<!-- Search Bar -->
<div class="hidden md:flex flex-1 mx-8">
<div class="relative w-full max-w-xl">
<input type="text" placeholder="Search for products..."
class="w-full py-2 px-4 border border-gray-300 rounded-full focus:outline-none focus:ring-2 focus:ring-blue-500">
<button class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-blue-600 text-white p-2 rounded-full">
<i class="fas fa-search"></i>
</button>
</div>
</div>
<!-- Navigation Links -->
<nav class="hidden md:flex space-x-6">
<a href="#" class="text-gray-700 hover:text-blue-600 nav-link">Home</a>
<a href="#" class="text-gray-700 hover:text-blue-600 nav-link">Categories</a>
<a href="#" class="text-gray-700 hover:text-blue-600 nav-link">Offers</a>
<a href="#" class="text-gray-700 hover:text-blue-600 nav-link">Contact</a>
</nav>
<!-- Icons -->
<div class="flex items-center space-x-4">
<a href="#" class="text-gray-700 hover:text-blue-600">
<i class="fas fa-user text-xl"></i>
</a>
<a href="#" class="text-gray-700 hover:text-blue-600 relative">
<i class="fas fa-heart text-xl"></i>
<span class="absolute -top-2 -right-2 bg-blue-600 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center">3</span>
</a>
<a href="#" class="text-gray-700 hover:text-blue-600 relative">
<i class="fas fa-shopping-cart text-xl"></i>
<span class="absolute -top-2 -right-2 bg-blue-600 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center">5</span>
</a>
<button class="md:hidden text-gray-700">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Breadcrumbs -->
<div class="flex items-center text-sm text-gray-600 mb-6">
<a href="#" class="hover:text-blue-600">Home</a>
<span class="mx-2">/</span>
<a href="#" class="hover:text-blue-600">Electronics</a>
<span class="mx-2">/</span>
<a href="#" class="hover:text-blue-600">Smartphones</a>
<span class="mx-2">/</span>
<span class="text-gray-800">iPhone 15 Pro Max</span>
</div>
<!-- Product Section -->
<div class="flex flex-col lg:flex-row gap-8">
<!-- Product Images -->
<div class="lg:w-1/2">
<!-- Main Image -->
<div class="bg-white p-4 rounded-lg shadow-sm mb-4 overflow-hidden">
<div class="relative aspect-square">
<img id="mainImage" src="https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/iphone-15-pro-finish-select-202309-6-7inch-bluetitanium?wid=5120&hei=2880&fmt=p-jpg&qlt=80&.v=1693009279096"
alt="iPhone 15 Pro Max" class="w-full h-full object-contain product-image">
<div class="discount-badge">20% OFF</div>
</div>
</div>
<!-- Thumbnail Images -->
<div class="flex space-x-2 overflow-x-auto py-2">
<div class="w-20 h-20 flex-shrink-0 cursor-pointer border-2 border-transparent hover:border-blue-500 rounded"
onclick="changeMainImage('https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/iphone-15-pro-finish-select-202309-6-7inch-bluetitanium?wid=5120&hei=2880&fmt=p-jpg&qlt=80&.v=1693009279096')">
<img src="https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/iphone-15-pro-finish-select-202309-6-7inch-bluetitanium?wid=5120&hei=2880&fmt=p-jpg&qlt=80&.v=1693009279096"
alt="iPhone 15 Pro Max" class="w-full h-full object-cover rounded">
</div>
<div class="w-20 h-20 flex-shrink-0 cursor-pointer border-2 border-transparent hover:border-blue-500 rounded"
onclick="changeMainImage('https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/iphone-15-pro-finish-select-202309-6-7inch-naturaltitanium?wid=5120&hei=2880&fmt=p-jpg&qlt=80&.v=1693009279096')">
<img src="https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/iphone-15-pro-finish-select-202309-6-7inch-naturaltitanium?wid=5120&hei=2880&fmt=p-jpg&qlt=80&.v=1693009279096"
alt="iPhone 15 Pro Max" class="w-full h-full object-cover rounded">
</div>
<div class="w-20 h-20 flex-shrink-0 cursor-pointer border-2 border-transparent hover:border-blue-500 rounded"
onclick="changeMainImage('https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/iphone-15-pro-finish-select-202309-6-7inch-blacktitanium?wid=5120&hei=2880&fmt=p-jpg&qlt=80&.v=1693009279096')">
<img src="https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/iphone-15-pro-finish-select-202309-6-7inch-blacktitanium?wid=5120&hei=2880&fmt=p-jpg&qlt=80&.v=1693009279096"
alt="iPhone 15 Pro Max" class="w-full h-full object-cover rounded">
</div>
<div class="w-20 h-20 flex-shrink-0 cursor-pointer border-2 border-transparent hover:border-blue-500 rounded"
onclick="changeMainImage('https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/iphone-15-pro-finish-select-202309-6-7inch-whitetitanium?wid=5120&hei=2880&fmt=p-jpg&qlt=80&.v=1693009279096')">
<img src="https://store.storeimages.cdn-apple.com/4982/as-images.apple.com/is/iphone-15-pro-finish-select-202309-6-7inch-whitetitanium?wid=5120&hei=2880&fmt=p-jpg&qlt=80&.v=1693009279096"
alt="iPhone 15 Pro Max" class="w-full h-full object-cover rounded">
</div>
</div>
<!-- Share Buttons -->
<div class="mt-6 flex items-center space-x-4">
<span class="text-gray-700">Share:</span>
<a href="#" class="text-blue-600 hover:text-blue-800"><i class="fab fa-facebook-f"></i></a>
<a href="#" class="text-blue-400 hover:text-blue-600"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-pink-600 hover:text-pink-800"><i class="fab fa-instagram"></i></a>
<a href="#" class="text-green-600 hover:text-green-800"><i class="fab fa-whatsapp"></i></a>
</div>
</div>
<!-- Product Details -->
<div class="lg:w-1/2">
<h1 class="text-3xl font-bold text-gray-900 mb-2">iPhone 15 Pro Max (256GB) - Titanium Blue</h1>
<div class="flex items-center mb-4">
<div class="flex text-yellow-400">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
<span class="text-gray-600 ml-2">(48 reviews)</span>
<span class="mx-2 text-gray-400">|</span>
<span class="text-green-600">
<i class="fas fa-check-circle"></i> In Stock
</span>
</div>
<div class="mb-6">
<div class="flex items-center">
<span class="text-3xl font-bold text-gray-900">SAR 4,999</span>
<span class="ml-3 text-xl text-gray-500 line-through">SAR 6,299</span>
<span class="ml-3 bg-red-100 text-red-700 px-2 py-1 rounded text-sm font-medium">Save SAR 1,300</span>
</div>
<p class="text-gray-500 mt-1">Inclusive of VAT</p>
</div>
<div class="mb-6">
<h3 class="text-lg font-semibold mb-2">Color</h3>
<div class="flex space-x-3">
<button class="w-10 h-10 rounded-full bg-blue-900 border-2 border-blue-900 focus:ring-2 focus:ring-blue-500"></button>
<button class="w-10 h-10 rounded-full bg-gray-200 border-2 border-gray-300 hover:border-gray-400 focus:ring-2 focus:ring-blue-500"></button>
<button class="w-10 h-10 rounded-full bg-black border-2 border-gray-300 hover:border-gray-400 focus:ring-2 focus:ring-blue-500"></button>
<button class="w-10 h-10 rounded-full bg-white border-2 border-gray-300 hover:border-gray-400 focus:ring-2 focus:ring-blue-500"></button>
</div>
</div>
<div class="mb-6">
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Rayan545454/cc44r" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>