<h1>Você tem dúvidas que eu gosto e me importo com você?</h1>
<div class="buttons">
<button onclick="respostaSim()">Sim</button>
<button id="nao" onmouseover="moverBotao()">Não</button>
</div>
<p id="resposta"></p>
<script>
function respostaSim() {
document.getElementById("resposta").innerText = "Se você tinha duvidas, agora não tem mais, Você me completa, e ultimamente vc entrou pra bagunça minha cabeça e não parou mais, apesar disso tudo ser uma maluquice. Sem você, eu não existo mais, só quero você, e você, e você, e você novamente minha sereia.❤️🦋🧜🏻♀️❤️🦋🧜🏻♀️❤️🦋🧜🏻♀️❤️🦋🧜🏻♀️❤️🦋🧜🏻♀️❤️🦋🧜🏻♀️❤️🦋🧜🏻♀️.";
}
function moverBotao() {
let botao = document.getElementById("nao");
let x = Math.random() * (window.innerWidth - botao.offsetWidth);
let y = Math.random() * (window.innerHeight - botao.offsetHeight);
botao.style.left = `${x}px`;
botao.style.top = `${y}px`;
}
</script>
</body>
</html>I see you've shared an HTML page with a question in Portuguese. Let me recreate this interactive page with a cleaner implementation using Next.js and React.
This Next.js implementation recreates your interactive page with the following improvements:
Same Functionality:
To use this in your project:
The page is set up with the Portuguese language tag and maintains the same romantic message when the "Yes" button is clicked.
Você está certo, vamos corrigir o problema da imagem de fundo. Precisamos usar a URL da imagem diretamente no código em vez de usar um placeholder.
Agora a imagem de fundo das sereias deve aparecer corretamente! Fiz a seguinte alteração:
bg-cover
, bg-center
e bg-fixed
garantem que a imagem cubra toda a tela, fique centralizada e permaneça fixa durante a rolagemA imagem das sereias agora deve aparecer como fundo da sua página interativa. Se você tiver qualquer outro problema ou quiser fazer mais ajustes, me avise!