Meta Description" name="description" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Valentine</title>
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Poppins:wght@300;400&display=swap" rel="stylesheet">
<style>
:root {
--primary-pink: #ffb7c5;
--soft-rose: #ff8fa3;
--glass-white: rgba(255, 255, 255, 0.25);
--text-color: #5e4b4e;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(135deg, #fce4ec 0%, #ffe0e9 50%, #f3e5f5 100%);
font-family: 'Poppins', sans-serif;
color: var(--text-color);
padding: 20px;
}
/* Glassmorphism Container */
.glass-card {
background: var(--glass-white);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 20px;
padding: 40px;
max-width: 600px;
width: 100%;
box-shadow: 0 8px 32px 0 rgba(255, 182, 193, 0.37);
text-align: center;
}
/* Beating Heart Animation */
.heart-container {
margin-bottom: 20px;
}
.heart {
background-color: var(--soft-rose);
display: inline-block;
height: 50px;
margin: 0 10px;
position: relative;
top: 0;
transform: rotate(-45deg);
width: 50px;
animation: beat 1.2s infinite;
}
.heart:before, .heart:after {
content: "";
background-color: var(--soft-rose);
border-radius: 50%;
height: 50px;
position: absolute;
width: 50px;
}
.heart:before { top: -25px; left: 0; }
.heart:after { left: 25px; top: 0; }
@keyframes beat {
0% { transform: scale(1) rotate(-45deg); }
15% { transform: scale(1.2) rotate(-45deg); }
30% { transform: scale(1) rotate(-45deg); }
45% { transform: scale(1.1) rotate(-45deg); }
60% { transform: scale(1) rotate(-45deg); }
}
h1 {
font-family: 'Dancing Script', cursive;
font-size: 3rem;
color: #d81b60;
margin-bottom: 15px;
}
.poem {
font-style: italic;
line-height: 1.6;
margin-bottom: 30px;
font-size: 1.1rem;
}
/* 2x2 Photo Gallery */
.gallery {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 15px;
margin-top: 20px;
}
.photo-slot {
aspect-ratio: 1 / 1;
background: #fff;
border-radius: 10px;
overflow: hidden;
border: 5px solid white;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.photo-slot img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.photo-slot:hover img {
transform: scale(1.15);
}
@media (max-width: 480px) {
h1 { font-size: 2.2rem; }
.glass-card { padding: 25px; }
}
</style>
</head>
<body>
<div class="glass-card">
<div class="heart-container">
<div class="heart"></div>
</div>
<h1>To My Valentine</h1>
<div class="poem">
<p>Roses are red, violets are blue,<br>
The world is much brighter<br>
whenever I'm with you.</p>
</div>
<div class="gallery">
<div class="photo-slot">
<img src="https://picsum.photos/id/101/300/300" alt="Memory 1">
</div>
<div class="photo-slot">
<img src="https://picsum.photos/id/102/300/300" alt="Memory 2">
</div>
<div class="photo-slot">
<img src="https://picsum.photos/id/103/300/300" alt="Memory 3">
</div>
<div class="photo-slot">
<img src="https://picsum.photos/id/104/300/300" alt="Memory 4">
</div>
</div>
</div>
</body>
</html>12
5
90KB
92KB
169.0ms
248.0ms
420.0ms