merge everything and make it live and give me the link
I'll merge the files and provide you with a link to deploy the project live. Here's how we'll do it:
Here's the merged content:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Will You Be My Valentine?</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Pacifico&family=Roboto:wght@300&display=swap">
<style>
body {
background: linear-gradient(135deg, #ff9a9e, #fad0c4);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: 'Roboto', sans-serif;
flex-direction: column;
text-align: center;
}
h1 {
font-size: 3em;
color: #fff;
margin-bottom: 30px;
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
font-family: 'Pacifico', cursive;
}
.buttons {
margin-top: 30px;
}
button {
font-size: 1.5em;
padding: 15px 40px;
margin: 15px;
background-color: #ff6f61;
color: white;
border: none;
border-radius: 30px;
cursor: pointer;
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
transition: transform 0.2s, background-color 0.3s;
}
button:hover {
transform: scale(1.15);
background-color: #ff8a80;
}
.no-button {
background-color: #ff1744;
}
.gif-container img {
max-width: 80%;
height: auto;
border-radius: 25px;
margin-top: 35px;
display: none;
box-shadow: 7px 7px 18px rgba(0, 0, 0, 0.3);
}
</style>
</head>
<body>
<div>
<h1>Will You Be My Valentine?</h1>
<div class="buttons">
<button id="yes-button">Yes</button>
<button id="no-button" class="no-button">No</button>
</div>
<div class="gif-container">
<img id="no-gif" src="https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExbW5lenZyZHI5OXM2eW95b3pmMG40cWVrMDhtNjVuM3A4dGNxa2g2dSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/VM1fcpu2bKs1e2Kdbj/giphy.gif" alt="Cute GIF" style="display:none;">
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const yesButton = document.getElementById('yes-button');
const noButton = document.getElementById('no-button');
const noGif = document.getElementById('no-gif');
const messages = [
"Are you sure?",
"Really sure??",
"Are you positive?",
"Pookie please...",
"Just think about it!",
"If you say no, I will be really sad...",
"I will be very sad...",
"I will be very very very sad...",
"Ok fine, I will stop asking...",
"Just kidding, say yes please! ❤"
];
let messageIndex = 0;
let clickedYes = false;
function handleYes() {
if (clickedYes) return;
clickedYes = true;
document.body.innerHTML = '<h1>Knew you would say that... ❤</h1><p>because my heart always knew we were meant to be together</p><img src="https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExMmo3c3l5ODh3ZGN6NHhhaDE2Mjg1ZjkwOXczdDFxbWM3dTBtaW9zaiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/9XY4f3FgFTT4QlaYqa/giphy.gif" alt="Valentine GIF" style="max-width: 80%; border-radius: 25px; margin-top: 20px; box-shadow: 7px 7px 18px rgba(0, 0, 0, 0.3);">';
document.body.style.display = 'flex';
document.body.style.flexDirection = 'column';
document.body.style.justifyContent = 'center';
document.body.style.alignItems = 'center';
document.body.style.background = 'linear-gradient(135deg, #ffd1dc, #ffe4e1)';
document.body.style.color = '#ff69b4';
document.body.style.fontFamily = 'Pacifico, cursive';
document.body.style.height = '100vh';
}
function handleNoClick(event) {
event.preventDefault();
noButton.textContent = messages[messageIndex];
messageIndex = (messageIndex + 1) % messages.length;
noGif.style.display = 'block';
}
['click', 'touchstart'].forEach(evt => {
yesButton.addEventListener(evt, handleYes);
noButton.addEventListener(evt, handleNoClick);
});
// Debugging code to log events
yesButton.addEventListener('click', () => console.log('Yes button clicked'));
yesButton.addEventListener('touchstart', () => console.log('Yes button touched'));
noButton.addEventListener('click', () => console.log('No button clicked'));
noButton.addEventListener('touchstart', () => console.log('No button touched'));
});
</script>
</body>
</html>
Now, to make this live, you can use a service like Vercel to deploy it. Here's how you can do it:
index.html
and paste the merged content into it.Once the deployment is finished, Vercel will provide you with a URL where your Valentine's Day page is live.
If you prefer a quicker method without using GitHub, you can use Vercel's drag-and-drop feature:
index.html
on your local machine.index.html
file onto the Vercel dashboard.After following either of these methods, you'll receive a URL where your Valentine's Day page is live and accessible to anyone on the internet.