Doctype HTML
Doctype HTML
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
margin: 0;
padding: 0;
background: url('https://scontent.fmnl33-2.fna.fbcdn.net/v/t1.15752-
9/481156118_1323558908790936_3788110898679596636_n.jpg?
_nc_cat=104&ccb=1-
7&_nc_sid=9f807c&_nc_eui2=AeFnpi1LeNOKd_k7s9N_EBfp4lOs1Qq4XtfiU6zV
Crhe15BjUqRgRGYI_I3N_JmB3O2XSWafIpJjMoBO1FXuRIr8&_nc_ohc=fg8DywL
aVDMQ7kNvgFyKKMQ&_nc_oc=AdjITyeMHBPtrnraaFb8MdoSAbv1B-
mIXtgy37elKGOWSf7QNOJNlYcj8vVYhjRurYw&_nc_zt=23&_nc_ht=scontent.f
mnl33-
2.fna&oh=03_Q7cD1gHiVin3D86eSkMViq58m9toXYALsMs6JNZmRVWL2oZ96
A&oe=67E6989B') no-repeat center center fixed;
background-size: cover;
color: pink;
text-align: center;
height: 150vh;
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
header {
font-size: 6em;
margin-bottom: 20px;
.heart {
font-size: 8em;
color: #ff4c4c;
@keyframes heartbeat {
0% {
transform: scale(1);
25% {
transform: scale(1.1);
50% {
transform: scale(1);
}
75% {
transform: scale(1.1);
100% {
transform: scale(1);
.message {
font-size: 1.5em;
margin-top: 20px;
.love-time {
font-size: 1.3em;
font-weight: bold;
margin-top: 20px;
color: #ff4c4c;
.button {
margin-top: 30px;
font-size: 1.2em;
background-color: #ff4c4c;
color: white;
text-decoration: none;
border-radius: 30px;
.button:hover {
background-color: #ff1f1f;
transform: scale(1.1);
footer {
position: absolute;
bottom: 10px;
font-size: 1.2em;
</style>
</head>
<body>
<div class="container">
<header>
</header>
<div class="heart"> ♡ </div>
<div class="message">
</div>
</div>
<footer>
</div>
</footer>
</div>
<script>
// Replace this with the actual date you started your relationship
function calculateTime() {
// Get the current date and time in the local timezone
// Calculate the time difference between the start date and now
document.getElementById("time-running").textContent = `${years}
years, ${months} months, ${remainingDays} days`;
// Call the function to update the time when the page loads
calculateTime();
setInterval(calculateTime, 1000);
</script>
</body>
</html>