nmra / index.html
ayahid's picture
💖 Romantic Website Concept (For Someone Special) I want to create a visually stunning, aesthetic, and professional romantic website with the following exact features: ⸻ 💗 1. Background Design: • The background should feature a blurry, soft-focus aesthetic image of Lana Del Rey — giving it a dreamy, nostalgic, emotional vibe. • Over the background, there should be floating small hearts everywhere, gently moving to create a sense of love and warmth. • The whole look should feel like a beautiful love song — cinematic, soft, and full of emotion. ⸻ ❤️ 2. Main Heart Animation (Interactive Element): • In the center of the screen, there will be one large heart — clean, minimal, but visually powerful. • Only when I tap (or click) on the big heart, it should animate beautifully, with hearts floating outward and a soft glowing effect. • The heart then opens like a letter or unfolds smoothly, revealing a heartfelt message inside. ⸻ 💌 3. Message Display (Inside the Heart): • Once opened, a clean, elegant letter-style message appears, saying: “Hey Namra, how are you? Did you miss me? — From Ayan 💖🥺💌” • The message should be styled in a romantic and slightly handwritten font, with soft animations as it appears. ⸻ ✨ 4. Design Feel: • Everything must look professional, aesthetic, and emotionally powerful — not overdone or childish. • The color palette should be soft pinks, whites, and warm tones — to give a clean but romantic atmosphere. • Smooth animations, clean transitions, and modern front-end design are a must. • No clutter — just clean, cinematic love. ⸻ 📱 5. Fully Responsive: • It should work perfectly on mobile and desktop, keeping all animations smooth and all content centered and beautiful. - Initial Deployment
88060c2 verified
Raw History Blame Contribute Delete
10.4 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>For Namra 💖</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Pacifico&family=Dancing+Script:wght@400;700&display=swap" rel="stylesheet">
<style>
body {
overflow: hidden;
font-family: 'Dancing Script', cursive;
background-color: #fce4ec;
}
.bg-image {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('https://i.pinimg.com/originals/70/de/b8/70deb8db85e6cfeeecefb999f7588b20.jpg');
background-size: cover;
background-position: center;
filter: blur(8px) brightness(0.7);
z-index: -1;
}
.heart {
cursor: pointer;
transition: all 0.3s ease;
}
.heart:hover {
transform: scale(1.05);
}
.heart-beat {
animation: heartbeat 1.5s ease infinite;
}
@keyframes heartbeat {
0% { transform: scale(1); }
25% { transform: scale(1.1); }
50% { transform: scale(1); }
75% { transform: scale(1.1); }
100% { transform: scale(1); }
}
.heart-open {
animation: heartOpen 1s ease forwards;
}
@keyframes heartOpen {
0% { transform: scale(1); }
50% { transform: scale(1.2); }
100% {
transform: scale(1.5);
opacity: 0;
}
}
.message-container {
opacity: 0;
transition: all 1s ease;
transform: scale(0.8);
}
.message-show {
opacity: 1;
transform: scale(1);
}
.floating-heart {
position: absolute;
opacity: 0.6;
animation: float linear infinite;
}
@keyframes float {
0% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(10deg); }
100% { transform: translateY(0) rotate(0deg); }
}
.message-paper {
background: rgba(255, 255, 255, 0.9);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.3);
}
.hidden {
display: none;
}
</style>
</head>
<body class="relative h-screen w-full flex items-center justify-center">
<!-- Background -->
<div class="bg-image"></div>
<!-- Floating hearts -->
<div id="floatingHearts"></div>
<!-- Main content -->
<div class="relative z-10 flex flex-col items-center justify-center text-center px-4">
<!-- Heart Container -->
<div id="heartContainer" class="mb-8">
<svg id="mainHeart" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" class="heart w-32 h-32 text-pink-500 heart-beat">
<path d="M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z" />
</svg>
</div>
<!-- Message Container (initially hidden) -->
<div id="messageContainer" class="message-container max-w-md px-8 py-6 rounded-lg">
<div class="message-paper p-8 rounded-lg">
<h2 class="text-3xl font-bold mb-6 text-pink-600" style="font-family: 'Pacifico', cursive;">For Namra</h2>
<p class="text-xl mb-4 text-gray-800">Hey Namra, how are you?</p>
<p class="text-xl mb-6 text-gray-800">Did you miss me?</p>
<p class="text-xl text-pink-500">From Ayan <span class="inline-block">💖🥺💌</span></p>
</div>
<button id="closeBtn" class="mt-6 text-pink-500 hover:text-pink-600 transition-colors">
Close
</button>
</div>
<!-- Instruction text -->
<p id="instructionText" class="text-white text-xl mt-4">Click the heart to reveal a message</p>
</div>
<script>
// Create floating hearts
function createFloatingHearts() {
const container = document.getElementById('floatingHearts');
const heartCount = 30;
const colors = ['#f8a5c2', '#f78fb3', '#f8c4d8', '#fd79a8'];
for (let i = 0; i < heartCount; i++) {
const heart = document.createElement('div');
heart.innerHTML = '❤️';
heart.className = 'floating-heart';
// Random properties
const size = Math.random() * 20 + 10;
const duration = Math.random() * 5 + 10;
const delay = Math.random() * 5;
const left = Math.random() * 100;
const color = colors[Math.floor(Math.random() * colors.length)];
const animationDuration = Math.random() * 20 + 10;
heart.style.left = `${left}%`;
heart.style.top = `${Math.random() * 100}%`;
heart.style.fontSize = `${size}px`;
heart.style.color = color;
heart.style.animationDuration = `${duration}s`;
heart.style.animationDelay = `${delay}s`;
container.appendChild(heart);
}
}
// Main heart click handler
document.getElementById('mainHeart').addEventListener('click', function() {
const heart = this;
const messageContainer = document.getElementById('messageContainer');
const instructionText = document.getElementById('instructionText');
// Remove heartbeat animation and add open animation
heart.classList.remove('heart-beat');
heart.classList.add('heart-open');
// After opening animation completes
setTimeout(() => {
heart.classList.add('hidden');
instructionText.classList.add('hidden');
// Show message with fade in effect
messageContainer.classList.add('message-show');
// Create burst hearts
createHeartBurst();
}, 1000);
});
// Close button handler
document.getElementById('closeBtn').addEventListener('click', function() {
const messageContainer = document.getElementById('messageContainer');
const heart = document.getElementById('mainHeart');
const instructionText = document.getElementById('instructionText');
messageContainer.classList.remove('message-show');
setTimeout(() => {
heart.classList.remove('hidden', 'heart-open');
heart.classList.add('heart-beat');
instructionText.classList.remove('hidden');
}, 300);
});
// Create burst hearts effect
function createHeartBurst() {
const container = document.getElementById('heartContainer');
const burstCount = 15;
for (let i = 0; i < burstCount; i++) {
const heart = document.createElement('div');
heart.innerHTML = '❤️';
heart.className = 'absolute';
// Random direction and animation
const angle = Math.random() * Math.PI * 2;
const distance = Math.random() * 100 + 50;
const duration = Math.random() * 1 + 0.5;
const size = Math.random() * 20 + 10;
const delay = Math.random() * 0.5;
const x = Math.cos(angle) * distance;
const y = Math.sin(angle) * distance;
heart.style.transform = `translate(${x}px, ${y}px)`;
heart.style.fontSize = `${size}px`;
heart.style.animation = `fadeOut ${duration}s ease-out ${delay}s forwards`;
heart.style.color = '#fd79a8';
document.styleSheets[0].insertRule(`
@keyframes fadeOut {
to {
opacity: 0;
transform: translate(${x*2}px, ${y*2}px);
}
}
`, document.styleSheets[0].cssRules.length);
container.appendChild(heart);
// Remove after animation
setTimeout(() => {
if (heart.parentNode) {
heart.parentNode.removeChild(heart);
}
}, (duration + delay) * 1000);
}
}
// Initialize
document.addEventListener('DOMContentLoaded', function() {
createFloatingHearts();
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=ayahid/nmra" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>