nepu_29_love_notes.html
Anonymous
HTML
08/26/2025 11:53 PM
10.3 KB
15
Indexable
Never
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Nepu’s 29 Love Notes 💌</title>
<style>
:root{
--bg1:#ffdde1; --bg2:#ee9ca7; --front:#ff6f91; --front2:#ff9671; --back:#ffffff; --text:#333;
--accent:#b5179e;
}
*{box-sizing:border-box}
body{
margin:0;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
min-height:100vh;
background: linear-gradient(135deg,var(--bg1),var(--bg2));
display:flex; flex-direction:column; align-items:center;
}
header{
text-align:center; padding:24px 16px 8px;
color:#4a244e;
}
header h1{ margin:0 0 6px; font-size:clamp(24px, 4vw, 40px);}
header p{ margin:0; opacity:.9}
.controls{
display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin:16px 0 8px;
}
button{
border:none; padding:10px 14px; border-radius:10px; cursor:pointer; font-weight:600;
background:#fff; color:#5a1c64; box-shadow:0 6px 16px rgba(0,0,0,.12);
transition: transform .08s ease;
}
button:active{ transform: scale(.98) }
.grid{
width:min(1100px, 96%); display:grid; gap:14px; padding:16px 0 40px;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.card{
height:130px; perspective:1000px; cursor:pointer; position:relative;
}
.card .inner{
position:relative; width:100%; height:100%;
transform-style:preserve-3d; transition: transform .6s;
}
.card.open .inner{ transform: rotateY(180deg) }
.face{
position:absolute; inset:0; border-radius:14px; padding:12px;
display:flex; align-items:center; justify-content:center; text-align:center;
backface-visibility:hidden; -webkit-backface-visibility:hidden;
box-shadow: 0 10px 24px rgba(0,0,0,.15);
}
.front{
background: linear-gradient(135deg, var(--front), var(--front2));
color:#fff; font-weight:700;
}
.front span{ display:block; font-size:14px; opacity:.95; margin-top:6px; font-weight:600}
.back{
background:var(--back); color:var(--text); transform: rotateY(180deg);
font-size:14px; line-height:1.35; padding:14px;
}
footer{
color:#4a244e; opacity:.7; padding: 0 0 24px; text-align:center;
}
.legend{ font-size:12px; opacity:.8; margin-top:6px;}
</style>
</head>
<body>
<canvas id="confetti"></canvas>
<header>
<h1>Nepu’s 29 Love Notes 💌</h1>
<p>Tap a card to flip it. Each one starts with “Open when…”.</p>
<div class="controls">
<button id="randomBtn" title="Open a random card">🎲 Open a random card</button>
<button id="closeAllBtn" title="Close all cards">🔄 Reset all</button>
<button id="shuffleBtn" title="Shuffle cards">🔀 Shuffle order</button>
</div>
<div class="legend">Made with love by Joy for Nepu 🦋</div>
</header>
<section class="grid" id="grid"></section>
<footer>Forever is the plan. Baby steps, always. — Joy</footer>
<script>
// ===== Data: 29 personalized notes =====
const notes = [
{title:"When you miss me 💌", text:"Close your eyes and think of our mountain—our Dubai. That’s where you’ll always find me waiting for you."},
{title:"When you’re feeling happy 😍", text:"Your smile reminds me of the day we laughed like kids, all wet in the rain, drinking cold coffee on the mountain."},
{title:"When you feel sad 😔", text:"Remember how we took baby steps together, you telling me ‘Joy, baby steps’? We’ll walk through sadness the same way—slow but together."},
{title:"When you need motivation 💪", text:"Think of the climb we made on that rainy mountain. If we can do that, you can do anything, my Nepu."},
{title:"When you want to smile 😊", text:"I still laugh remembering when we were so close to kissing… and you pointed at a building and said, ‘That’s so good!’"},
{title:"When you can’t sleep 🌙", text:"Imagine us under the stars on Dubai, hand in hand, whispering dreams of forever."},
{title:"When you feel lonely 🫂", text:"You’re never alone, Nepu. You’re my butterfly, and I’ll always fly with you—even from far away."},
{title:"When you doubt yourself ✨", text:"You’ve been my strength since school days when we secretly crushed on each other. Believe me, you’ve always been magical."},
{title:"When you want to feel loved ❤️", text:"Every ‘sware’ you gave me to quit smoking and drinking was love in its purest form. I felt it."},
{title:"When you need to laugh 😂", text:"Do you remember calling me Nepali and me calling you colourful? We’re our own comedy show."},
{title:"When you want to remember us 🌄", text:"Our Dubai isn’t just a mountain—it’s the birthplace of us. It will always be ours."},
{title:"When you’re angry 😡", text:"Even when you’re mad, I only see the girl who made rain feel like sunshine in my life."},
{title:"When you want a surprise 🎁", text:"Surprise! I’m still the boy who had a crush on you in school and never stopped loving you."},
{title:"When you’re overthinking 🤯", text:"Stop overthinking, baby. Just remember this: you and me, married, forever happy—that’s the ending I see."},
{title:"When you need peace ☮️", text:"Think of that cold coffee after rain, our clothes soaked, our hearts warm—that’s peace."},
{title:"When you want to dream 💤", text:"Dream of us saying ‘I do,’ building a home together, laughing every day like we did in Dubai."},
{title:"When you’re proud of yourself 👑", text:"I’m proud of you, Nepu. Always. From the shy girl in school to the butterfly who owns my heart."},
{title:"When you feel stressed 😵", text:"Remember our baby steps. No rush. We’ll take life slowly, hand in hand."},
{title:"When you want to travel in memories ✈️", text:"January 8th—you and me, meeting again. That day is my passport to happiness."},
{title:"When you want to feel special 💃", text:"You’re my queen, my butterfly, my forever dream. No one could ever be more special."},
{title:"When you want to laugh at my silliness 🤪", text:"Imagine me saying ‘Let’s kiss’ and you saying ‘Look at that building!’—still the funniest heartbreak of my life 😂."},
{title:"When you want a warm hug 🫶", text:"Pretend this note is me wrapping you in the tightest hug, whispering ‘I love you, Nepu.’"},
{title:"When you want to know how much I love you 💕", text:"I love you more than the rain on our mountain, more than the cold coffee, more than forever."},
{title:"When you need courage 🦁", text:"Whenever you’re scared, remember: even storms couldn’t stop us from climbing Dubai together."},
{title:"When you want to feel like my queen 👸", text:"In my heart, you already wear the crown. You’re my queen, my Nepu, forever."},
{title:"When you’re bored 😴", text:"Think about us laughing in the rain, soaked to the skin, but happier than anyone else alive."},
{title:"When you want to remember your beauty 🌹", text:"Your beauty isn’t just in your face—it’s in the way you care, the way you love, the way you say ‘baby steps.’"},
{title:"When you want to feel ‘us’ 💑", text:"Us is simple: Joy and Nepu, mountain and rain, butterfly and forever."},
{title:"On your birthday 🎂", text:"Happy Birthday, my love! From our Dubai to our forever dreams, from baby steps to marriage—I want every tomorrow with you. ❤️🎉"}
];
// ===== Helpers =====
const grid = document.getElementById('grid');
function makeCard({title, text}, idx){
const card = document.createElement('div');
card.className = 'card';
card.setAttribute('data-index', idx);
card.innerHTML = `
<div class="inner">
<div class="face front">
<div>
<div>Open when…</div>
<span>${title.replace('When ','').replace('On ','')}</span>
</div>
</div>
<div class="face back">${text}</div>
</div>
`;
card.addEventListener('click', () => toggleCard(card, true));
return card;
}
function renderCards(list){
grid.innerHTML = '';
list.forEach((n,i)=> grid.appendChild(makeCard(n,i)));
}
// ===== Confetti (tiny, inline) =====
const canvas = document.getElementById('confetti');
const ctx = canvas.getContext('2d');
let confettiPieces = [];
function resizeCanvas(){
canvas.width = innerWidth; canvas.height = innerHeight;
}
addEventListener('resize', resizeCanvas); resizeCanvas();
function spawnConfetti(x, y, count=80){
for(let i=0;i<count;i++){
confettiPieces.push({
x, y,
vx: (Math.random()*4-2),
vy: (Math.random()*-3-2),
g: 0.05 + Math.random()*0.05,
size: 2 + Math.random()*4,
life: 80 + Math.random()*40,
hue: Math.floor(Math.random()*360)
});
}
}
function confettiLoop(){
ctx.clearRect(0,0,canvas.width, canvas.height);
confettiPieces = confettiPieces.filter(p => p.life>0);
confettiPieces.forEach(p=>{
p.vy += p.g; p.x += p.vx; p.y += p.vy; p.life--;
ctx.fillStyle = `hsl(${p.hue},90%,60%)`;
ctx.fillRect(p.x, p.y, p.size, p.size);
});
requestAnimationFrame(confettiLoop);
}
confettiLoop();
// ===== Interactions =====
function toggleCard(card, withConfetti=false){
const opened = card.classList.toggle('open');
if(opened && withConfetti){
const rect = card.getBoundingClientRect();
spawnConfetti(rect.left + rect.width/2, rect.top + rect.height/2, 90);
}
}
function openRandom(){
const cards = Array.from(document.querySelectorAll('.card'));
const closed = cards.filter(c => !c.classList.contains('open'));
const pool = closed.length ? closed : cards;
const pick = pool[Math.floor(Math.random()*pool.length)];
pick.scrollIntoView({behavior:'smooth', block:'center'});
setTimeout(()=> toggleCard(pick, true), 350);
}
function closeAll(){
document.querySelectorAll('.card.open').forEach(c => c.classList.remove('open'));
spawnConfetti(innerWidth/2, -10, 50); // playful puff
}
function shuffleNotes(){
for (let i = notes.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[notes[i], notes[j]] = [notes[j], notes[i]];
}
renderCards(notes);
}
document.getElementById('randomBtn').addEventListener('click', openRandom);
document.getElementById('closeAllBtn').addEventListener('click', closeAll);
document.getElementById('shuffleBtn').addEventListener('click', () => { shuffleNotes(); spawnConfetti(innerWidth/2, 0, 60); });
// Initial render
renderCards(notes);
</script>
</body>
</html>
Editor is loading...
Leave a Comment