Add 3 files
Browse filesFiles changed (3)
- README.md+7-5
- index.html+389-19
- prompts.txtAdded
12345678910---title: Dsafdemoji: 📉colorFrom: yellowcolorTo: bluesdk: staticpinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112---title: dsafdemoji: 🐳colorFrom: bluecolorTo: yellowsdk: staticpinned: falsetags:- deepsite---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Mage Duel: Arcane Clash</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>@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=Poppins:wght@300;400;600;700&display=swap');body {font-family: 'Poppins', sans-serif;background-color: #0f172a;color: #e2e8f0;overflow: hidden;}.title-font {font-family: 'MedievalSharp', cursive;}.spell-card {transition: all 0.3s ease;transform-style: preserve-3d;}.spell-card:hover {transform: translateY(-10px) rotateX(10deg);box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);}.loading-bar {width: 0%;transition: width 0.5s ease;}.mana-orb {box-shadow: 0 0 15px 5px rgba(99, 102, 241, 0.5);animation: pulse 2s infinite;}@keyframes pulse {0% { transform: scale(1); }50% { transform: scale(1.1); }100% { transform: scale(1); }}.floating {animation: floating 3s ease-in-out infinite;}@keyframes floating {0% { transform: translateY(0px); }50% { transform: translateY(-15px); }100% { transform: translateY(0px); }}/* New styles for the battlefield */.battlefield {perspective: 1000px;position: relative;height: 100%;}.player-mage {position: absolute;bottom: 0;left: 50%;transform: translateX(-50%);z-index: 20;}.opponent-mage {position: absolute;top: 20%;left: 50%;transform: translateX(-50%) scale(0.7);z-index: 10;filter: blur(1px);}.battlefield-cards {position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 15;width: 80%;}.battlefield-background {position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: linear-gradient(to bottom, #1e1b4b 0%, #4c1d95 50%, #7e22ce 100%);z-index: 5;}.battlefield-overlay {position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%);z-index: 6;}</style></head><body class="min-h-screen flex flex-col"><!-- Loading Screen --><div id="loadingScreen" class="fixed inset-0 bg-indigo-950/90 backdrop-blur-sm z-50 flex flex-col items-center justify-center transition-opacity duration-1000"><div class="text-center mb-12"><h1 class="title-font text-6xl md:text-8xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-purple-400 via-pink-500 to-red-500 mb-4">Mage Duel</h1><p class="text-xl text-indigo-200">Arcane Clash</p></div><div class="w-64 md:w-96 h-4 bg-indigo-900 rounded-full mb-8 overflow-hidden"><div id="loadingBar" class="loading-bar h-full bg-gradient-to-r from-purple-500 to-pink-500 rounded-full"></div></div><div class="flex space-x-4"><div class="w-16 h-16 rounded-full bg-purple-600 flex items-center justify-center floating" style="animation-delay: 0s;"><i class="fas fa-hat-wizard text-2xl text-white"></i></div><div class="w-16 h-16 rounded-full bg-pink-600 flex items-center justify-center floating" style="animation-delay: 0.5s;"><i class="fas fa-fire text-2xl text-white"></i></div><div class="w-16 h-16 rounded-full bg-indigo-600 flex items-center justify-center floating" style="animation-delay: 1s;"><i class="fas fa-shield-alt text-2xl text-white"></i></div></div><p class="mt-8 text-indigo-300 text-sm">Preparing the arcane battlefield...</p></div><!-- Main Game Container (hidden initially) --><div id="gameContainer" class="hidden flex-1 flex flex-col"><!-- Game Header --><header class="bg-gradient-to-r from-indigo-900 to-purple-900 py-4 px-6 shadow-lg"><div class="flex justify-between items-center"><h1 class="title-font text-2xl md:text-3xl font-bold text-white">Mage Duel: Arcane Clash</h1><button id="menuBtn" class="text-white hover:text-pink-300 transition"><i class="fas fa-bars text-2xl"></i></button></div></header><!-- Game Area --><main class="flex-1 relative overflow-hidden"><!-- Battlefield Background --><div class="battlefield-background"></div><div class="battlefield-overlay"></div><!-- Player Mage (back view) --><div class="player-mage"><div class="relative"><div class="w-32 h-32 bg-blue-600 rounded-full flex items-center justify-center shadow-xl"><i class="fas fa-hat-wizard text-5xl text-white transform rotate-180"></i></div><div class="absolute -bottom-2 left-1/2 transform -translate-x-1/2 w-40 h-4 bg-blue-800 rounded-full blur-sm"></div><div class="absolute -bottom-4 left-1/2 transform -translate-x-1/2 w-48 h-2 bg-blue-900 rounded-full blur-sm"></div></div></div><!-- Opponent Mage (in the distance) --><div class="opponent-mage"><div class="relative"><div class="w-24 h-24 bg-red-600 rounded-full flex items-center justify-center shadow-lg"><i class="fas fa-skull text-4xl text-white"></i></div><div class="absolute -bottom-1 left-1/2 transform -translate-x-1/2 w-32 h-3 bg-red-800 rounded-full blur-sm"></div><div class="absolute -bottom-3 left-1/2 transform -translate-x-1/2 w-40 h-2 bg-red-900 rounded-full blur-sm"></div></div></div><!-- Battlefield Cards Area --><div class="battlefield-cards"><div class="bg-indigo-900/30 rounded-xl p-4 border border-indigo-700 shadow-lg backdrop-blur-sm"><h3 class="text-center text-purple-300 font-bold mb-2">Battlefield</h3><div class="grid grid-cols-3 gap-4 min-h-32"><!-- Empty slots for cards to be placed --><div class="bg-indigo-800/20 rounded-lg border-2 border-dashed border-indigo-700 h-24 flex items-center justify-center"><i class="fas fa-plus text-indigo-500"></i></div><div class="bg-indigo-800/20 rounded-lg border-2 border-dashed border-indigo-700 h-24 flex items-center justify-center"><i class="fas fa-plus text-indigo-500"></i></div><div class="bg-indigo-800/20 rounded-lg border-2 border-dashed border-indigo-700 h-24 flex items-center justify-center"><i class="fas fa-plus text-indigo-500"></i></div></div></div></div></main><!-- Player Info and Cards --><div class="bg-purple-900/30 p-4 border-t border-purple-700"><div class="flex justify-between items-center mb-4"><div class="flex items-center"><div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center shadow-lg"><i class="fas fa-hat-wizard text-lg text-white"></i></div><div class="ml-3"><h3 class="font-bold text-blue-300">Arcane Mage</h3><div class="flex items-center"><div class="w-20 h-2 bg-gray-700 rounded-full overflow-hidden"><div class="h-full bg-blue-500 rounded-full" style="width: 100%"></div></div><span class="ml-2 text-xs">100/100</span></div></div></div><div class="flex space-x-2"><div class="w-6 h-6 rounded-full bg-blue-500 flex items-center justify-center mana-orb"><span class="text-xs font-bold">5</span></div><div class="w-6 h-6 rounded-full bg-blue-400 flex items-center justify-center"><span class="text-xs font-bold">+2</span></div></div></div><!-- Player Hand --><div class="flex justify-center space-x-2"><!-- Sample spell cards --><div class="spell-card w-16 h-24 bg-gradient-to-br from-blue-600 to-blue-800 rounded-lg shadow-lg border border-blue-400 flex flex-col overflow-hidden cursor-pointer transform hover:scale-110 transition-transform"><div class="bg-blue-700 py-1 text-center"><span class="text-xs font-bold text-white">2</span></div><div class="flex-1 flex flex-col items-center justify-center p-1"><i class="fas fa-bolt text-yellow-300 text-xl mb-1"></i><span class="text-xs font-bold text-white text-center">Lightning</span></div></div><div class="spell-card w-16 h-24 bg-gradient-to-br from-purple-600 to-purple-800 rounded-lg shadow-lg border border-purple-400 flex flex-col overflow-hidden cursor-pointer transform hover:scale-110 transition-transform"><div class="bg-purple-700 py-1 text-center"><span class="text-xs font-bold text-white">3</span></div><div class="flex-1 flex flex-col items-center justify-center p-1"><i class="fas fa-shield-alt text-blue-200 text-xl mb-1"></i><span class="text-xs font-bold text-white text-center">Shield</span></div></div><div class="spell-card w-16 h-24 bg-gradient-to-br from-red-600 to-red-800 rounded-lg shadow-lg border border-red-400 flex flex-col overflow-hidden cursor-pointer transform hover:scale-110 transition-transform"><div class="bg-red-700 py-1 text-center"><span class="text-xs font-bold text-white">4</span></div><div class="flex-1 flex flex-col items-center justify-center p-1"><i class="fas fa-fire text-orange-300 text-xl mb-1"></i><span class="text-xs font-bold text-white text-center">Fireball</span></div></div><div class="spell-card w-16 h-24 bg-gradient-to-br from-green-600 to-green-800 rounded-lg shadow-lg border border-green-400 flex flex-col overflow-hidden cursor-pointer transform hover:scale-110 transition-transform"><div class="bg-green-700 py-1 text-center"><span class="text-xs font-bold text-white">1</span></div><div class="flex-1 flex flex-col items-center justify-center p-1"><i class="fas fa-leaf text-green-200 text-xl mb-1"></i><span class="text-xs font-bold text-white text-center">Heal</span></div></div></div></div><!-- Game Footer --><footer class="bg-gradient-to-r from-indigo-900 to-purple-900 py-3 px-6 shadow-lg"><div class="flex justify-between items-center"><button class="bg-pink-600 hover:bg-pink-700 text-white px-4 py-2 rounded-lg font-bold transition"><i class="fas fa-play mr-2"></i> Cast Spells</button><div class="text-indigo-300 text-sm"><span id="turnCounter">Turn: 5</span></div></div></footer></div><!-- Game Menu (hidden initially) --><div id="gameMenu" class="fixed inset-0 bg-black/80 z-50 hidden flex items-center justify-center"><div class="bg-gradient-to-b from-indigo-900 to-purple-900 rounded-xl p-6 w-full max-w-md shadow-2xl border border-indigo-700"><div class="flex justify-between items-center mb-6"><h2 class="title-font text-2xl text-white">Game Menu</h2><button id="closeMenuBtn" class="text-white hover:text-pink-300 transition"><i class="fas fa-times text-2xl"></i></button></div><div class="space-y-4"><button class="w-full bg-indigo-700 hover:bg-indigo-600 text-white px-4 py-3 rounded-lg font-bold transition flex items-center justify-center"><i class="fas fa-book mr-3"></i> How to Play</button><button class="w-full bg-purple-700 hover:bg-purple-600 text-white px-4 py-3 rounded-lg font-bold transition flex items-center justify-center"><i class="fas fa-cog mr-3"></i> Settings</button><button class="w-full bg-pink-700 hover:bg-pink-600 text-white px-4 py-3 rounded-lg font-bold transition flex items-center justify-center"><i class="fas fa-trophy mr-3"></i> Leaderboards</button><button class="w-full bg-red-700 hover:bg-red-600 text-white px-4 py-3 rounded-lg font-bold transition flex items-center justify-center"><i class="fas fa-sign-out-alt mr-3"></i> Exit Game</button></div></div></div><script>// Simulate loadingdocument.addEventListener('DOMContentLoaded', function() {const loadingBar = document.getElementById('loadingBar');const loadingScreen = document.getElementById('loadingScreen');const gameContainer = document.getElementById('gameContainer');const gameMenu = document.getElementById('gameMenu');const menuBtn = document.getElementById('menuBtn');const closeMenuBtn = document.getElementById('closeMenuBtn');// Animate loading barlet width = 0;const interval = setInterval(() => {width += Math.random() * 15;if (width >= 100) {width = 100;clearInterval(interval);// Hide loading screen after a delaysetTimeout(() => {loadingScreen.classList.add('opacity-0');setTimeout(() => {loadingScreen.classList.add('hidden');gameContainer.classList.remove('hidden');}, 1000);}, 500);}loadingBar.style.width = width + '%';}, 200);// Menu togglemenuBtn.addEventListener('click', () => {gameMenu.classList.remove('hidden');});closeMenuBtn.addEventListener('click', () => {gameMenu.classList.add('hidden');});// Card drag and drop functionalityconst spellCards = document.querySelectorAll('.spell-card');const battlefieldSlots = document.querySelectorAll('.battlefield-cards .bg-indigo-800/20');spellCards.forEach(card => {card.addEventListener('click', function() {// Find first empty slotconst emptySlot = Array.from(battlefieldSlots).find(slot =>slot.querySelector('.fas.fa-plus'));if (emptySlot) {// Clone the card and add to battlefieldconst clonedCard = this.cloneNode(true);clonedCard.classList.remove('hover:scale-110');clonedCard.classList.add('scale-90');// Clear the slot and add the cardemptySlot.innerHTML = '';emptySlot.appendChild(clonedCard);// Add remove buttonconst removeBtn = document.createElement('button');removeBtn.className = 'absolute -top-2 -right-2 w-5 h-5 bg-red-500 rounded-full flex items-center justify-center text-white text-xs';removeBtn.innerHTML = '<i class="fas fa-times"></i>';removeBtn.addEventListener('click', (e) => {e.stopPropagation();emptySlot.innerHTML = '<i class="fas fa-plus text-indigo-500"></i>';});clonedCard.appendChild(removeBtn);}});});});</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=F4st/dsafd" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body></html>
README.md+7-5
index.html+389-19
prompts.txtAdded