HTML
Minha Página Dither
Olá, Mundo Dithered!
Este é o resultado do seu código HTML, CSS e JS.
Clique-me!
CSS
body { font-family: 'Press Start 2P', cursive; background-color: #000; color: #00FF00; /* Verde estilo terminal */ display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; margin: 0; padding: 10px; box-sizing: border-box; } h1 { text-shadow: 2px 2px 0 #333; animation: flicker 1.5s infinite alternate; } button { background-color: #000; color: #FFF; border: 1px solid #FFF; padding: 5px 10px; margin-top: 20px; cursor: pointer; font-family: 'Press Start 2P', cursive; box-shadow: 0 0 5px rgba(0,255,0,0.5); transition: background-color 0.1s; } button:hover { background-color: #00FF00; color: #000; } @keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } 52% { opacity: 1; } 54% { opacity: 0.9; } 56% { opacity: 1; } }
JavaScript
document.addEventListener('DOMContentLoaded', () => { const button = document.getElementById('myButton'); if (button) { button.addEventListener('click', () => { alert('Você clicou no botão! Olá do JS na pré-visualização.'); }); } }); console.log("JavaScript carregado na pré-visualização.");
Preview
Run