Spaces:
Running

apple-test / index.html
microfileas's picture
Can you make a simple clone of the Apple.com homepage? - Initial Deployment
a528a06 verified
Raw History Blame Contribute Delete
16.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apple Clone</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>
.hero-gradient {
background: linear-gradient(to bottom, #000000, #1a1a1a);
}
.nav-blur {
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.product-hover:hover {
transform: scale(1.02);
transition: transform 0.3s ease;
}
.scroll-hide::-webkit-scrollbar {
display: none;
}
</style>
</head>
<body class="bg-white text-gray-900 font-sans">
<!-- Navigation -->
<header class="sticky top-0 z-50">
<nav class="nav-blur bg-black/80 text-white">
<div class="max-w-7xl mx-auto px-4">
<div class="flex justify-between items-center h-12">
<div class="flex space-x-6 items-center">
<a href="#" class="text-xl">
<i class="fab fa-apple"></i>
</a>
<a href="#" class="hidden md:block hover:text-gray-300">Store</a>
<a href="#" class="hidden md:block hover:text-gray-300">Mac</a>
<a href="#" class="hidden md:block hover:text-gray-300">iPad</a>
<a href="#" class="hidden md:block hover:text-gray-300">iPhone</a>
<a href="#" class="hidden md:block hover:text-gray-300">Watch</a>
<a href="#" class="hidden md:block hover:text-gray-300">AirPods</a>
<a href="#" class="hidden md:block hover:text-gray-300">TV & Home</a>
<a href="#" class="hidden md:block hover:text-gray-300">Entertainment</a>
<a href="#" class="hidden md:block hover:text-gray-300">Accessories</a>
<a href="#" class="hidden md:block hover:text-gray-300">Support</a>
</div>
<div class="flex items-center space-x-4">
<a href="#" class="hover:text-gray-300">
<i class="fas fa-search"></i>
</a>
<a href="#" class="hover:text-gray-300">
<i class="fas fa-shopping-bag"></i>
</a>
<button class="md:hidden">
<i class="fas fa-bars"></i>
</button>
</div>
</div>
</div>
</nav>
</header>
<!-- Announcement Bar -->
<div class="bg-gray-100 py-2 text-center text-sm">
<p>Get up to ₹8000 instant savings on selected products with eligible HDFC Bank cards.* <a href="#" class="text-blue-600 hover:underline">Shop now ></a></p>
</div>
<!-- Hero Section -->
<section class="hero-gradient text-white">
<div class="max-w-7xl mx-auto px-4 py-16 md:py-24 text-center">
<h1 class="text-4xl md:text-6xl font-bold mb-2">iPhone 15 Pro</h1>
<h2 class="text-2xl md:text-3xl mb-4">Titanium. So strong. So light. So Pro.</h2>
<div class="flex justify-center space-x-4 mb-8">
<a href="#" class="text-blue-500 hover:underline">Learn more ></a>
<a href="#" class="text-blue-500 hover:underline">Buy ></a>
</div>
<div class="flex justify-center">
<img src="https://www.apple.com/in/iphone-15-pro/images/overview/hero/hero_endframe__dz973mndvu82_large.jpg" alt="iPhone 15 Pro" class="w-full max-w-4xl rounded-lg product-hover">
</div>
</div>
</section>
<!-- Products Grid -->
<section class="max-w-7xl mx-auto px-4 py-8">
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<!-- Product 1 -->
<div class="bg-gray-100 rounded-xl p-8 text-center product-hover">
<h3 class="text-2xl font-semibold mb-2">iPhone 15</h3>
<p class="text-lg mb-4">New camera. New design. Newphoria.</p>
<div class="flex justify-center space-x-4">
<a href="#" class="text-blue-600 hover:underline">Learn more ></a>
<a href="#" class="text-blue-600 hover:underline">Buy ></a>
</div>
<img src="https://www.apple.com/in/iphone-15/images/overview/hero/hero_iphone15_announce__uuemlcwczn6u_large.jpg" alt="iPhone 15" class="mt-4 mx-auto">
</div>
<!-- Product 2 -->
<div class="bg-gray-100 rounded-xl p-8 text-center product-hover">
<h3 class="text-2xl font-semibold mb-2">Apple Watch Series 9</h3>
<p class="text-lg mb-4">Smarter. Brighter. Mightier.</p>
<div class="flex justify-center space-x-4">
<a href="#" class="text-blue-600 hover:underline">Learn more ></a>
<a href="#" class="text-blue-600 hover:underline">Buy ></a>
</div>
<img src="https://www.apple.com/in/apple-watch-series-9/images/overview/hero/hero_watch__d966xvtq6wuq_large.jpg" alt="Apple Watch Series 9" class="mt-4 mx-auto">
</div>
<!-- Product 3 -->
<div class="bg-gray-100 rounded-xl p-8 text-center product-hover">
<h3 class="text-2xl font-semibold mb-2">MacBook Air 15"</h3>
<p class="text-lg mb-4">Impressively big. Impossibly thin.</p>
<div class="flex justify-center space-x-4">
<a href="#" class="text-blue-600 hover:underline">Learn more ></a>
<a href="#" class="text-blue-600 hover:underline">Buy ></a>
</div>
<img src="https://www.apple.com/in/macbook-air-13-and-15-m2/images/overview/hero/hero_macbook_air_15__f0g3nsqgmlum_large.jpg" alt="MacBook Air 15" class="mt-4 mx-auto">
</div>
<!-- Product 4 -->
<div class="bg-gray-100 rounded-xl p-8 text-center product-hover">
<h3 class="text-2xl font-semibold mb-2">iPad Pro</h3>
<p class="text-lg mb-4">Supercharged by M2</p>
<div class="flex justify-center space-x-4">
<a href="#" class="text-blue-600 hover:underline">Learn more ></a>
<a href="#" class="text-blue-600 hover:underline">Buy ></a>
</div>
<img src="https://www.apple.com/in/ipad-pro/images/overview/hero/hero_combo__fcqcc3hbzjyy_large.jpg" alt="iPad Pro" class="mt-4 mx-auto">
</div>
</div>
</section>
<!-- Carousel -->
<section class="bg-gray-100 py-12 overflow-hidden">
<h2 class="text-3xl font-semibold text-center mb-8">The latest. Take a look at what's new, right now.</h2>
<div class="flex overflow-x-auto scroll-hide space-x-4 px-4 pb-4">
<div class="flex-none w-72 bg-white rounded-lg shadow-md p-6">
<h3 class="font-semibold mb-2">Apple Fitness+</h3>
<p class="text-sm mb-4">New workouts. New meditations. New ways to move.</p>
<img src="https://www.apple.com/in/apple-fitness-plus/images/overview/hero/hero__dvsxv8smkkgi_large.jpg" alt="Apple Fitness+" class="rounded">
</div>
<div class="flex-none w-72 bg-white rounded-lg shadow-md p-6">
<h3 class="font-semibold mb-2">AirPods Pro</h3>
<p class="text-sm mb-4">Adaptive Audio. Now playing.</p>
<img src="https://www.apple.com/in/airpods-pro/images/overview/hero/hero__dvsxv8smkkgi_large.jpg" alt="AirPods Pro" class="rounded">
</div>
<div class="flex-none w-72 bg-white rounded-lg shadow-md p-6">
<h3 class="font-semibold mb-2">Apple Card</h3>
<p class="text-sm mb-4">Get up to 3% Daily Cash back with every purchase.</p>
<img src="https://www.apple.com/in/apple-card/images/overview/hero/hero__dvsxv8smkkgi_large.jpg" alt="Apple Card" class="rounded">
</div>
<div class="flex-none w-72 bg-white rounded-lg shadow-md p-6">
<h3 class="font-semibold mb-2">Apple Trade In</h3>
<p class="text-sm mb-4">Get credit toward your new iPhone.</p>
<img src="https://www.apple.com/in/shop/iphone/iphone-upgrade-program/images/overview/hero/hero__dvsxv8smkkgi_large.jpg" alt="Apple Trade In" class="rounded">
</div>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-100 py-10">
<div class="max-w-7xl mx-auto px-4">
<div class="text-xs text-gray-500 mb-6">
<p>*Instant savings, otherwise referred to as instant cashback on the Apple Store Online, is available with the purchase of an eligible product for qualifying HDFC Bank Credit Cards and EasyEMI Credit Cards only. Minimum transaction value of ₹10001 applies. Click here to see instant savings amounts and eligible devices. Instant savings is available for up to two orders per rolling 90-day period with an eligible card. Card eligibility is subject to terms and conditions between you and your card-issuing bank. Total transaction value is calculated after any trade-in credit or eligible discount applied. Any subsequent order adjustment(s) or cancellation(s) may result in instant savings being recalculated, and any refund may be adjusted to account for instant savings clawback; this may result in no refund being made to you. Offer may be revised or withdrawn at any time without any prior notice. Terms and conditions apply. Offer cannot be combined with Apple Store for Education or Corporate Employee Purchase Plan pricing.</p>
<p class="mt-4">Representative example: Based on purchase of ₹82900. Total amount payable ₹84991 paid over 12 months as 12 monthly payments of ₹7083 at an interest rate of 14% p.a. Total interest paid to bank: ₹2091.</p>
</div>
<div class="border-t border-gray-300 pt-6">
<div class="grid grid-cols-2 md:grid-cols-5 gap-8">
<div>
<h4 class="font-semibold mb-4">Shop and Learn</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-600 hover:underline">Store</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Mac</a></li>
<li><a href="#" class="text-gray-600 hover:underline">iPad</a></li>
<li><a href="#" class="text-gray-600 hover:underline">iPhone</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Watch</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Services</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-600 hover:underline">Apple Music</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Apple TV+</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Apple Arcade</a></li>
<li><a href="#" class="text-gray-600 hover:underline">iCloud</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Apple One</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Apple Store</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-600 hover:underline">Ways to Buy</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Apple Trade In</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Recycling Programme</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Order Status</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Shopping Help</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">For Business</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-600 hover:underline">Apple and Business</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Shop for Business</a></li>
</ul>
</div>
<div>
<h4 class="font-semibold mb-4">Apple Values</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-600 hover:underline">Accessibility</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Environment</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Privacy</a></li>
<li><a href="#" class="text-gray-600 hover:underline">Supplier Responsibility</a></li>
</ul>
</div>
</div>
</div>
<div class="mt-8 text-sm text-gray-500">
<p>More ways to shop: <a href="#" class="text-blue-600 hover:underline">Find a retailer</a> near you. Or call 000800 040 1966.</p>
<div class="border-t border-gray-300 mt-4 pt-4 flex flex-col md:flex-row justify-between">
<p>Copyright © 2023 Apple Inc. All rights reserved.</p>
<div class="flex space-x-4 mt-4 md:mt-0">
<a href="#" class="hover:underline">Privacy Policy</a>
<a href="#" class="hover:underline">Terms of Use</a>
<a href="#" class="hover:underline">Sales Policy</a>
<a href="#" class="hover:underline">Legal</a>
<a href="#" class="hover:underline">Site Map</a>
</div>
<a href="#" class="hover:underline mt-4 md:mt-0">India</a>
</div>
</div>
</div>
</footer>
<script>
// Simple JavaScript for mobile menu toggle (would need more implementation)
document.addEventListener('DOMContentLoaded', function() {
const menuButton = document.querySelector('button[class*="md:hidden"]');
menuButton.addEventListener('click', function() {
alert('Mobile menu would open here in a full implementation');
});
// Smooth scrolling for anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
});
</script>
<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=microfileas/apple-test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>