Spaces:
Running
Running
make an interactive website with java html and css add professional animations the website will be about a gpu shop
Browse filesFiles changed (2)
- gpus.htmlAdded+424
- index.html+1
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>GPUPowerShop - Premium Graphics Cards</title> <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> <script src="https://cdn.tailwindcss.com"></script> <script src="https://unpkg.com/feather-icons"></script> <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script> <style> @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap'); body { font-family: 'Poppins', sans-serif; overflow-x: hidden; } .gpu-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); } .hero-text { text-shadow: 0 4px 6px rgba(0,0,0,0.1); } .glow { animation: glow 2s ease-in-out infinite alternate; } @keyframes glow { from { box-shadow: 0 0 5px rgba(59, 130, 246, 0.5); } to { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8); } } .float { animation: float 6s ease-in-out infinite; } @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } } .specs-bar { transition: width 1.5s ease-out; } </style></head><body class="bg-gray-900 text-white"> <!-- Animated Background --> <div id="vanta-bg" class="fixed top-0 left-0 w-full h-full z-0"></div> <!-- Header --> <header class="relative z-10"> <nav class="container mx-auto px-6 py-4"> <div class="flex items-center justify-between"> <div class="flex items-center space-x-2"> <i data-feather="cpu" class="text-blue-400 w-8 h-8"></i> <span class="text-xl font-bold bg-gradient-to-r from-blue-400 to-purple-500 bg-clip-text text-transparent">GPUPowerShop</span> </div> <div class="hidden md:flex space-x-8"> <a href="index.html" class="hover:text-blue-400 transition">Home</a> <a href="gpus.html" class="text-blue-400 font-medium transition">Shop GPUs</a> <a href="#" class="hover:text-blue-400 transition">Deals</a> <a href="#" class="hover:text-blue-400 transition">Benchmarks</a> <a href="#" class="hover:text-blue-400 transition">Contact</a> <a href="tictactoe.html" class="hover:text-blue-400 transition">Play Tic Tac Toe</a> </div> <div class="flex items-center space-x-4"> <button class="p-2 rounded-full hover:bg-gray-800 transition"> <i data-feather="search"></i> </button> <button class="p-2 rounded-full hover:bg-gray-800 transition"> <i data-feather="shopping-cart"></i> </button> <button class="md:hidden p-2 rounded-full hover:bg-gray-800 transition"> <i data-feather="menu"></i> </button> </div> </div> </nav> </header>
<!-- Hero Section --> <section class="relative z-10 py-20 md:py-32 px-6"> <div class="container mx-auto flex flex-col md:flex-row items-center"> <div class="md:w-1/2 mb-12 md:mb-0"> <h1 class="hero-text text-4xl md:text-6xl font-bold mb-6 leading-tight"> <span class="text-blue-400">Next-Gen</span> Graphics<br>Power Unleashed </h1> <p class="text-lg md:text-xl text-gray-300 mb-8 max-w-lg"> Experience cutting-edge performance with our premium selection of GPUs from top manufacturers. </p> <div class="flex space-x-4"> <button class="bg-blue-500 hover:bg-blue-600 text-white px-8 py-3 rounded-full font-medium transition transform hover:scale-105 glow"> Shop Now </button> <button class="border border-blue-400 text-blue-400 hover:bg-blue-400 hover:text-white px-8 py-3 rounded-full font-medium transition transform hover:scale-105"> View Benchmarks </button> </div> </div> <div class="md:w-1/2 flex justify-center"> <img src="http://static.photos/technology/640x360/2" alt="Premium GPU" class="w-full max-w-md float"> </div> </div> </section>
<!-- GPU Comparison --> <section class="relative z-10 py-16 px-6"> <div class="container mx-auto"> <h2 class="text-3xl font-bold mb-12 text-center">Performance Comparison</h2> <div class="bg-gray-800 rounded-xl p-6 mb-12"> <div class="grid grid-cols-1 md:grid-cols-3 gap-8"> <div class="text-center"> <h3 class="text-xl font-semibold mb-4">RTX 4090</h3> <div class="bg-gray-700 h-4 rounded-full mb-2 overflow-hidden"> <div class="bg-blue-500 h-full specs-bar" style="width: 100%"></div> </div> <p class="text-sm text-gray-300">Performance: 100%</p> </div> <div class="text-center"> <h3 class="text-xl font-semibold mb-4">RTX 4080</h3> <div class="bg-gray-700 h-4 rounded-full mb-2 overflow-hidden"> <div class="bg-purple-500 h-full specs-bar" style="width: 80%"></div> </div> <p class="text-sm text-gray-300">Performance: 80%</p> </div> <div class="text-center"> <h3 class="text-xl font-semibold mb-4">RTX 4070</h3> <div class="bg-gray-700 h-4 rounded-full mb-2 overflow-hidden"> <div class="bg-green-500 h-full specs-bar" style="width: 65%"></div> </div> <p class="text-sm text-gray-300">Performance: 65%</p> </div> </div> </div> </div> </section>
<!-- Featured GPUs --> <section class="relative z-10 py-16 px-6 bg-gradient-to-b from-transparent to-gray-900/80"> <div class="container mx-auto"> <h2 class="text-3xl font-bold mb-12 text-center">Featured Graphics Cards</h2> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8"> <!-- GPU Card 1 --> <div class="gpu-card bg-gray-800 rounded-xl p-6 transition duration-500 ease-in-out transform hover:-translate-y-2"> <div class="badge bg-blue-500 text-xs text-white px-2 py-1 rounded-full mb-4 inline-block">BEST SELLER</div> <img src="http://static.photos/technology/320x240/10" alt="RTX 4090" class="w-full h-48 object-contain mb-6"> <h3 class="text-xl font-semibold mb-2">NVIDIA RTX 4090</h3> <div class="flex justify-between text-sm text-gray-400 mb-4"> <span>24GB GDDR6X</span> <span>16,384 CUDA</span> </div> <div class="flex justify-between items-center"> <span class="text-xl font-bold">$1,599</span> <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-full text-sm transition"> Add to Cart </button> </div> </div> <!-- GPU Card 2 --> <div class="gpu-card bg-gray-800 rounded-xl p-6 transition duration-500 ease-in-out transform hover:-translate-y-2"> <div class="badge bg-purple-500 text-xs text-white px-2 py-1 rounded-full mb-4 inline-block">LIMITED STOCK</div> <img src="http://static.photos/technology/320x240/12" alt="RTX 4080" class="w-full h-48 object-contain mb-6"> <h3 class="text-xl font-semibold mb-2">NVIDIA RTX 4080</h3> <div class="flex justify-between text-sm text-gray-400 mb-4"> <span>16GB GDDR6X</span> <span>9,728 CUDA</span> </div> <div class="flex justify-between items-center"> <span class="text-xl font-bold">$1,199</span> <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-full text-sm transition"> Add to Cart </button> </div> </div> <!-- GPU Card 3 --> <div class="gpu-card bg-gray-800 rounded-xl p-6 transition duration-500 ease-in-out transform hover:-translate-y-2"> <div class="badge bg-green-500 text-xs text-white px-2 py-1 rounded-full mb-4 inline-block">BEST VALUE</div> <img src="http://static.photos/technology/320x240/14" alt="RTX 4070" class="w-full h-48 object-contain mb-6"> <h3 class="text-xl font-semibold mb-2">NVIDIA RTX 4070 Ti</h3> <div class="flex justify-between text-sm text-gray-400 mb-4"> <span>12GB GDDR6X</span> <span>7,680 CUDA</span> </div> <div class="flex justify-between items-center"> <span class="text-xl font-bold">$799</span> <button class="bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-full text-sm transition"> Add to Cart </button> </div> </div> </div> </div> </section>
<!-- Interactive GPU Builder --> <section class="relative z-10 py-20 px-6"> <div class="container mx-auto bg-gray-800 rounded-xl p-8"> <h2 class="text-3xl font-bold mb-8 text-center">Build Your Dream PC</h2> <div class="grid md:grid-cols-2 gap-8"> <div> <h3 class="text-xl font-semibold mb-4">Select Components</h3> <div class="space-y-4"> <div class="bg-gray-700 p-4 rounded-lg hover:bg-gray-600 transition cursor-pointer"> <div class="flex items-center"> <img src="http://static.photos/technology/120x120/101" alt="GPU" class="w-16 h-16 object-contain mr-4"> <div> <h4 class="font-medium">NVIDIA RTX 4090</h4> <p class="text-sm text-gray-400">$1,599</p> </div> </div> </div> <div class="bg-gray-700 p-4 rounded-lg hover:bg-gray-600 transition cursor-pointer"> <div class="flex items-center"> <img src="http://static.photos/technology/120x120/102" alt="GPU" class="w-16 h-16 object-contain mr-4"> <div> <h4 class="font-medium">NVIDIA RTX 4080</h4> <p class="text-sm text-gray-400">$1,199</p> </div> </div> </div> <div class="bg-gray-700 p-4 rounded-lg hover:bg-gray-600 transition cursor-pointer"> <div class="flex items-center"> <img src="http://static.photos/technology/120x120/103" alt="GPU" class="w-16 h-16 object-contain mr-4"> <div> <h4 class="font-medium">NVIDIA RTX 4070 Ti</h4> <p class="text-sm text-gray-400">$799</p> </div> </div> </div> </div> </div> <div> <h3 class="text-xl font-semibold mb-4">Your Build</h3> <div class="bg-gray-900 p-6 rounded-lg h-full"> <div class="flex flex-col justify-between h-full"> <div> <div class="flex items-center mb-6"> <img src="http://static.photos/technology/120x120/104" alt="PC Case" class="w-24 h-24 object-contain mr-4"> <div> <h4 class="font-medium">Custom Gaming PC</h4> <p class="text-sm text-gray-400">Starting at $2,499</p> </div> </div> <div id="selected-components" class="space-y-3"> <!-- Components will be added here --> </div> </div> <button class="bg-blue-500 hover:bg-blue-600 text-white px-6 py-3 rounded-lg font-medium mt-6 w-full transition"> Complete Build ($2,499) </button> </div> </div> </div> </div> </div> </section>
<!-- Newsletter --> <section class="relative z-10 py-16 px-6 bg-gradient-to-r from-blue-600 to-purple-600"> <div class="container mx-auto text-center"> <h2 class="text-2xl md:text-3xl font-bold mb-4">Stay Updated on GPU Releases</h2> <p class="text-blue-100 mb-8 max-w-2xl mx-auto">Subscribe for alerts on new GPU drops, price changes, and exclusive deals</p> <div class="flex flex-col sm:flex-row justify-center max-w-xl mx-auto"> <input type="email" placeholder="Your email address" class="px-4 py-3 rounded-l-full sm:rounded-r-none rounded-r-full w-full mb-2 sm:mb-0 text-gray-900 focus:outline-none"> <button class="bg-black text-white px-6 py-3 rounded-r-full sm:rounded-l-none rounded-l-full font-medium hover:bg-gray-900 transition"> Subscribe </button> </div> </div> </section>
<!-- Footer --> <footer class="relative z-10 bg-gray-900/80 backdrop-blur-sm py-12 px-6"> <div class="container mx-auto"> <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> <div> <div class="flex items-center space-x-2 mb-4"> <i data-feather="cpu" class="text-blue-400 w-6 h-6"></i> <span class="text-lg font-bold">GPUPowerShop</span> </div> <p class="text-gray-400 text-sm">Your trusted source for high-performance graphics cards and PC components.</p> <div class="flex space-x-4 mt-6"> <a href="#" class="text-gray-400 hover:text-blue-400 transition"><i data-feather="twitter"></i></a> <a href="#" class="text-gray-400 hover:text-blue-400 transition"><i data-feather="youtube"></i></a> <a href="#" class="text-gray-400 hover:text-blue-400 transition"><i data-feather="instagram"></i></a> <a href="#" class="text-gray-400 hover:text-blue-400 transition"><i data-feather="github"></i></a> </div> </div> <div> <h3 class="text-lg font-semibold mb-4">Shop</h3> <ul class="space-y-2"> <li><a href="gpus.html" class="text-gray-400 hover:text-blue-400 transition">Graphics Cards</a></li> <li><a href="#" class="text-gray-400 hover:text-blue-400 transition">Prebuilt PCs</a></li> <li><a href="#" class="text-gray-400 hover:text-blue-400 transition">Accessories</a></li> <li><a href="#" class="text-gray-400 hover:text-blue-400 transition">Deals</a></li> </ul> </div> <div> <h3 class="text-lg font-semibold mb-4">Support</h3> <ul class="space-y-2"> <li><a href="#" class="text-gray-400 hover:text-blue-400 transition">Contact Us</a></li> <li><a href="#" class="text-gray-400 hover:text-blue-400 transition">Warranty</a></li> <li><a href="#" class="text-gray-400 hover:text-blue-400 transition">Shipping</a></li> <li><a href="#" class="text-gray-400 hover:text-blue-400 transition">Returns</a></li> </ul> </div> <div> <h3 class="text-lg font-semibold mb-4">Company</h3> <ul class="space-y-2"> <li><a href="#" class="text-gray-400 hover:text-blue-400 transition">About Us</a></li> <li><a href="#" class="text-gray-400 hover:text-blue-400 transition">Blog</a></li> <li><a href="#" class="text-gray-400 hover:text-blue-400 transition">Careers</a></li> <li><a href="#" class="text-gray-400 hover:text-blue-400 transition">Privacy Policy</a></li> </ul> </div> </div> <div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-500 text-sm"> <p>© 2023 GPUPowerShop. All rights reserved.</p> </div> </div> </footer>
<script> // Initialize Vanta.js background VANTA.NET({ el: "#vanta-bg", mouseControls: true, touchControls: true, gyroControls: false, minHeight: 200.00, minWidth: 200.00, scale: 1.00, scaleMobile: 1.00, color: 0x3b82f6, backgroundColor: 0x111827, points: 12.00, maxDistance: 22.00, spacing: 18.00 });
// Initialize animations document.addEventListener('DOMContentLoaded', () => { // Animate hero section on load anime({ targets: '.hero-text span', translateY: [-30, 0], opacity: [0, 1], duration: 1000, delay: 300, easing: 'easeOutExpo' });
// Animate performance bars anime({ targets: '.specs-bar', width: ['0%', '100%', '80%', '65%'], duration: 1500, delay: anime.stagger(200), easing: 'easeOutExpo' });
// GPU card hover animations const gpuCards = document.querySelectorAll('.gpu-card'); gpuCards.forEach(card => { card.addEventListener('mouseenter', () => { anime({ targets: card, scale: 1.02, duration: 300, easing: 'easeOutExpo' }); }); card.addEventListener('mouseleave', () => { anime({ targets: card, scale: 1, duration: 300, easing: 'easeOutExpo' }); }); });
// Component selection functionality const components = document.querySelectorAll('.bg-gray-700'); const selectedComponents = document.getElementById('selected-components'); components.forEach(component => { component.addEventListener('click', () => { const componentName = component.querySelector('h4').textContent; const componentPrice = component.querySelector('p').textContent; // Create selected component element const selectedComponent = document.createElement('div'); selectedComponent.className = 'flex justify-between items-center bg-gray-800 p-3 rounded-lg'; selectedComponent.innerHTML = ` <span class="text-sm">${componentName}</span> <span class="text-sm text-blue-400">${componentPrice}</span> `; // Add to selected components selectedComponents.appendChild(selectedComponent); // Pulse animation anime({ targets: selectedComponent, scale: [0.9, 1], opacity: [0, 1], duration: 500, easing: 'easeOutExpo' }); }); });
// Initialize feather icons feather.replace(); }); </script></body></html>61 unmodified lines62636465666761 unmodified lines<a href="#" class="hover:text-blue-400 transition">About</a><a href="#" class="hover:text-blue-400 transition">Contact</a><a href="tictactoe.html" class="hover:text-blue-400 transition">Play Tic Tac Toe</a></div><div class="flex items-center space-x-4"><button class="p-2 rounded-full hover:bg-gray-800 transition">61 unmodified lines6263646566676861 unmodified lines<a href="#" class="hover:text-blue-400 transition">About</a><a href="#" class="hover:text-blue-400 transition">Contact</a><a href="tictactoe.html" class="hover:text-blue-400 transition">Play Tic Tac Toe</a><a href="gpus.html" class="hover:text-blue-400 transition">Shop GPUs</a></div><div class="flex items-center space-x-4"><button class="p-2 rounded-full hover:bg-gray-800 transition">
gpus.htmlAdded+424
index.html+1