ignacio-ave's picture
creemos un sitio web o una pagina de html con css con un juego clasico a jugar para demostrar mis habilidades en html y css PURO
8b38cc9 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pixel Paddle Ping-Pong</title>
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-900 min-h-screen flex flex-col">
<custom-navbar></custom-navbar>
<main class="flex-grow flex flex-col items-center justify-center p-4">
<h1 class="text-4xl font-bold text-white mb-8 tracking-wider">PIXEL PADDLE PING-PONG</h1>
<div class="relative bg-black border-4 border-white rounded-lg overflow-hidden shadow-2xl" id="game-container">
<div id="ball" class="absolute bg-white rounded-full"></div>
<div id="paddle-left" class="absolute bg-white"></div>
<div id="paddle-right" class="absolute bg-white"></div>
<div id="score" class="absolute top-4 left-1/2 transform -translate-x-1/2 text-2xl font-bold text-white">0 - 0</div>
</div>
<div class="mt-8 flex gap-4">
<button id="start-btn" class="bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-6 rounded-full transition">
<i data-feather="play"></i> Start Game
</button>
<button id="reset-btn" class="bg-red-500 hover:bg-red-600 text-white font-bold py-2 px-6 rounded-full transition">
<i data-feather="refresh-cw"></i> Reset
</button>
</div>
<div class="mt-8 text-white text-center">
<h2 class="text-xl font-bold mb-2">Controls</h2>
<p>Player 1 (Left): <span class="font-mono">W</span> (up) <span class="font-mono">S</span> (down)</p>
<p>Player 2 (Right): <span class="font-mono">↑</span> (up) <span class="font-mono">↓</span> (down)</p>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>feather.replace();</script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>