<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Kopel Gemas - Ruang Gemas</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Quicksand:wght@300;500;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Quicksand', sans-serif;
background-color: #fff5f5;
scroll-behavior: smooth;
}
.font-romance {
font-family: 'Dancing Script', cursive;
}
.glass {
background: rgba(255, 255, 255, 0.7);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 182, 193, 0.3);
}
.heart-beat {
animation: beat 1.5s infinite;
}
@keyframes beat {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
.floating {
animation: floating 3s ease-in-out infinite;
}
@keyframes floating {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
</style>
</head>
<body class="text-gray-800">
<!-- Header / Navbar -->
<nav class="fixed top-0 w-full z-50 glass py-4 px-6 flex justify-between items-center">
<h1 class="text-2xl font-romance text-pink-500">Kopel Gemas</h1>
<div class="space-x-4 text-sm font-medium">
<a href="#home" class="hover:text-pink-500">Home</a>
<a href="#cerita" class="hover:text-pink-500">Cerita</a>
<a href="#wishlist" class="hover:text-pink-500">Wishlist</a>
</div>
</nav>
<!-- Hero Section -->
<section id="home" class="min-h-screen flex flex-col items-center justify-center pt-20 px-6 text-center">
<div class="relative mb-8">
<div class="w-40 h-40 md:w-56 md:h-56 rounded-full overflow-hidden border-4 border-white shadow-xl floating">
<img src="https://images.unsplash.com/photo-1516589174184-c68526572af0?q=80&w=500&auto=format&fit=crop" alt="Foto Pasangan" class="w-full h-full object-cover">
</div>
<div class="absolute -bottom-4 -right-4 bg-pink-500 text-white p-3 rounded-full shadow-lg heart-beat">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>
</div>
</div>
<h2 class="text-4xl md:text-6xl font-romance text-pink-600 mb-2">Andi & Sasa</h2>
<p class="text-gray-500 italic mb-8">"Sejak hari itu, duniaku jauh lebih indah."</p>
<!-- Counter Section -->
<div class="glass p-6 rounded-2xl shadow-sm w-full max-w-md">
<h3 class="text-lg font-bold mb-4 text-pink-400">Kita Sudah Bersama Selama:</h3>
<div id="counter" class="grid grid-cols-3 gap-2">
<div class="bg-white p-3 rounded-lg shadow-inner">
<span id="days" class="block text-2xl font-bold text-pink-600">0</span>
<span class="text-xs uppercase text-gray-400">Hari</span>
</div>
<div class="bg-white p-3 rounded-lg shadow-inner">
<span id="hours" class="block text-2xl font-bold text-pink-600">0</span>
<span class="text-xs uppercase text-gray-400">Jam</span>
</div>
<div class="bg-white p-3 rounded-lg shadow-inner">
<span id="minutes" class="block text-2xl font-bold text-pink-600">0</span>
<span class="text-xs uppercase text-gray-400">Menit</span>
</div>
</div>
</div>
</section>
<!-- Gallery / Cerita -->
<section id="cerita" class="py-20 px-6 bg-white">
<div class="max-w-4xl mx-auto">
<h3 class="text-3xl font-romance text-center text-pink-500 mb-12">Momen Gemas Kita</h3>
<div class="grid grid-cols-2 md:grid-cols-3 gap-4">
<div class="h-48 bg-gray-200 rounded-xl overflow-hidden hover:scale-105 transition-transform duration-300">
<img src="https://images.unsplash.com/photo-1522673607200-1648832cee98?q=80&w=400&auto=format&fit=crop" class="w-full h-full object-cover" alt="Momen 1">
</div>
<div class="h-48 bg-gray-200 rounded-xl overflow-hidden hover:scale-105 transition-transform duration-300">
<img src="https://images.unsplash.com/photo-1518199266791-5375a83190b7?q=80&w=400&auto=format&fit=crop" class="w-full h-full object-cover" alt="Momen 2">
</div>
<div class="h-48 bg-gray-200 rounded-xl overflow-hidden hover:scale-105 transition-transform duration-300">
<img src="https://images.unsplash.com/photo-1494774157365-9e04c6720e47?q=80&w=400&auto=format&fit=crop" class="w-full h-full object-cover" alt="Momen 3">
</div>
</div>
</div>
</section>
<!-- Wishlist Section -->
<section id="wishlist" class="py-20 px-6 bg-pink-50">
<div class="max-w-2xl mx-auto">
<div class="glass p-8 rounded-3xl shadow-lg">
<h3 class="text-2xl font-bold text-pink-600 mb-6 text-center">Daftar Keinginan Kita ✨</h3>
<ul id="wishlist-container" class="space-y-4">
<!-- Dinamis Wishlist -->
</ul>
<div class="mt-8 flex gap-2">
<input type="text" id="wish-input" placeholder="Tulis mimpi kita..." class="flex-1 p-3 rounded-full border-none focus:ring-2 focus:ring-pink-300 outline-none">
<button onclick="addWish()" class="bg-pink-500 text-white px-6 py-3 rounded-full hover:bg-pink-600 transition shadow-md">Tambah</button>
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer class="py-10 text-center text-gray-400 text-sm">
<p>Dibuat dengan ❤️ oleh Kopel Gemas</p>
</footer>
<script>
// --- KONFIGURASI TANGGAL JADIAN ---
// Format: (Tahun, Bulan-1, Tanggal) -> Januari itu 0, Februari 1, dst.
const anniversaryDate = new Date(2025, 0, 17); // Contoh: 15 Januari 2023
function updateCounter() {
const now = new Date();
const diff = now - anniversaryDate;
const days = Math.floor(diff / (1000 * 60 * 60 * 24));
const hours = Math.floor((diff / (1000 * 60 * 60)) % 24);
const minutes = Math.floor((diff / 1000 / 60) % 60);
document.getElementById('days').innerText = days;
document.getElementById('hours').innerText = hours;
document.getElementById('minutes').innerText = minutes;
}
setInterval(updateCounter, 1000);
updateCounter();
// --- WISHLIST LOGIC ---
let wishes = [
"Liburan ke Bali bareng",
"Nonton konser band favorit",
"Makan malem romantis di pinggir laut"
];
function renderWishes() {
const container = document.getElementById('wishlist-container');
container.innerHTML = '';
wishes.forEach((wish, index) => {
const li = document.createElement('li');
li.className = "flex items-center gap-3 bg-white p-4 rounded-xl shadow-sm";
li.innerHTML = `
<input type="checkbox" class="w-5 h-5 accent-pink-500">
<span class="text-gray-700">${wish}</span>
`;
container.appendChild(li);
});
}
function addWish() {
const input = document.getElementById('wish-input');
if (input.value.trim() !== "") {
wishes.push(input.value);
input.value = "";
renderWishes();
}
}
renderWishes();
</script>
</body>
</html>