lovebyte-chronicles / index.html
wafflebrain's picture
MAKE LOGIN AND INDEX . HTML TO SINGLE FILE
ca2e78c verified
Raw History Blame Contribute Delete
12.9 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Malavika & Me β€” Our Love Story</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');
body {
font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}
.heart {
position: absolute;
pointer-events: none;
animation: float 6s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(5deg); }
}
.gradient-bg {
background: linear-gradient(150deg, #F5F7FA 0%, #EBF2FF 100%);
}
.glow-text {
text-shadow: 0 0 16px rgba(0, 122, 255, 0.15);
}
.timeline-item::before {
content: '';
position: absolute;
left: -40px;
top: 0;
width: 20px;
height: 20px;
border-radius: 50%;
background: #007AFF;
border: 4px solid rgba(0, 122, 255, 0.1);
}
.card {
backdrop-filter: saturate(180%) blur(20px);
background-color: rgba(255, 255, 255, 0.8);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.card:hover {
background-color: rgba(255, 255, 255, 0.9);
transform: scale(1.03);
}
</style>
</head>
<body class="gradient-bg min-h-screen relative">
<div id="vanta-bg" class="absolute inset-0 z-0"></div>
<!-- Floating hearts -->
<div id="hearts-container"></div>
<div class="relative z-10 container mx-auto px-4 py-16">
<header class="text-center mb-16">
<h1 class="text-5xl md:text-7xl font-semibold text-[#007AFF] glow-text mb-6">I LOVE MY GF <span class="text-[#FF2D55]">πŸ’™</span></h1>
<p class="text-xl md:text-2xl text-gray-800 max-w-3xl mx-auto card rounded-3xl p-8">
Hi Malavika <span class="text-[#007AFF]">πŸ’™</span> β€” this is a piece of my heart made just for you, wrapped in your favorite color and playing our song.
</p>
</header>
<div id="loginSection" class="login-card rounded-2xl w-full max-w-md mx-auto p-8 border border-gray-100 relative z-10 hidden">
<div class="text-center mb-8">
<h1 class="text-3xl font-bold text-gray-800 mb-2">Welcome Back</h1>
<p class="text-gray-600">Sign in to continue to your love story</p>
</div>
<form id="loginForm" class="space-y-6">
<div>
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
<input
type="email"
id="email"
name="email"
placeholder="your.email@example.com"
value="malavika.love@example.com"
class="input-field w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 transition"
required
>
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
<input
type="password"
id="password"
name="password"
placeholder="β€’β€’β€’β€’β€’β€’β€’β€’"
value="ILoveYou3000"
class="input-field w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 transition"
required
>
</div>
<button type="submit" class="btn-primary w-full py-3 px-4 text-white font-medium rounded-lg bg-[#007AFF] hover:bg-[#0066CC]">
Sign In
</button>
</form>
</div>
<div id="mainContent" class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 max-w-6xl mx-auto">
<a href="portraits.html" class="card rounded-2xl p-6 transition-all duration-300 hover:scale-105">
<div class="text-center">
<i data-feather="image" class="w-12 h-12 mx-auto text-[#007AFF] mb-4"></i>
<h3 class="text-2xl font-semibold text-gray-800 mb-2">Our Portraits</h3>
<p class="text-gray-600">Gallery of our beautiful moments</p>
</div>
</a>
<a href="story.html" class="card rounded-2xl p-6 transition-all duration-300 hover:scale-105">
<div class="text-center">
<i data-feather="heart" class="w-12 h-12 mx-auto text-[#007AFF] mb-4"></i>
<h3 class="text-2xl font-semibold text-gray-800 mb-2">Our Love Story</h3>
<p class="text-gray-600">Journey since April 14th</p>
</div>
</a>
<a href="reasons.html" class="card rounded-2xl p-6 transition-all duration-300 hover:scale-105">
<div class="text-center">
<i data-feather="list" class="w-12 h-12 mx-auto text-[#007AFF] mb-4"></i>
<h3 class="text-2xl font-semibold text-gray-800 mb-2">Why I Love You</h3>
<p class="text-gray-600">Endless reasons why</p>
</div>
</a>
<a href="chat.html" class="card rounded-2xl p-6 transition-all duration-300 hover:scale-105">
<div class="text-center">
<i data-feather="message-circle" class="w-12 h-12 mx-auto text-[#007AFF] mb-4"></i>
<h3 class="text-2xl font-bold text-white mb-2">Chat With Me</h3>
<p class="text-white">Share your thoughts with me</p>
</div>
</a>
</div>
<audio id="bgMusic" loop style="display: none;">
<source src="https://soundcloud.com/tr-ng-qu-nh-19002005/i-think-they-call-this-love?in=sobrefilohd/sets/all-i-dream-of-is-your-eyes&utm_source=clipboard&utm_medium=text&utm_campaign=social_sharing" type="audio/mpeg">
</audio>
<script>
// Check if user is logged in (simple implementation)
const isLoggedIn = localStorage.getItem('isLoggedIn');
const loginSection = document.getElementById('loginSection');
const mainContent = document.getElementById('mainContent');
if (!isLoggedIn) {
loginSection.classList.remove('hidden');
mainContent.classList.add('hidden');
}
// Handle form submission
document.getElementById('loginForm').addEventListener('submit', function(e) {
e.preventDefault();
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;
// Simple validation
if (email && password) {
localStorage.setItem('isLoggedIn', 'true');
loginSection.classList.add('hidden');
mainContent.classList.remove('hidden');
}
});
</script>
<div class="fixed bottom-6 right-6 bg-white rounded-full p-4 backdrop-blur-sm cursor-pointer shadow-lg hover:scale-110 transition-transform border border-gray-200" onclick="handleMusicPlayback()">
<div id="musicButton" class="relative">
<i id="musicIcon" data-feather="play" class="text-[#007AFF] w-6 h-6"></i>
<div id="playPulse" class="absolute inset-0 rounded-full bg-blue-100 opacity-0 scale-150 transition-all duration-300"></div>
</div>
</div>
</div>
<script>
// Initialize Vanta.js globe background
VANTA.GLOBE({
el: "#vanta-bg",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x7bb4ff,
backgroundColor: 0xa7c7e7,
size: 0.8
});
// Create floating hearts
function createHearts() {
const container = document.getElementById('hearts-container');
const colors = ['#007AFF', '#B3D9FF', '#D6E6F2', '#FFFFFF'];
for (let i = 0; i < 15; i++) {
const heart = document.createElement('div');
heart.innerHTML = 'πŸ’™';
heart.className = 'heart text-2xl md:text-4xl opacity-70';
heart.style.left = Math.random() * 100 + 'vw';
heart.style.top = Math.random() * 100 + 'vh';
heart.style.animationDelay = Math.random() * 5 + 's';
heart.style.animationDuration = 3 + Math.random() * 7 + 's';
container.appendChild(heart);
}
}
document.addEventListener('DOMContentLoaded', () => {
feather.replace();
createHearts();
// Handle music playback with user interaction
document.addEventListener('DOMContentLoaded', () => {
feather.replace();
createHearts();
const bgMusic = document.getElementById('bgMusic');
bgMusic.volume = 0.3;
// Modern browsers require user interaction before playing audio
document.body.addEventListener('click', function initAudio() {
bgMusic.play().catch(e => {
document.getElementById('musicIcon').setAttribute('data-feather', 'volume-x');
feather.replace();
});
document.body.removeEventListener('click', initAudio);
});
});
});
// Improved music playback handler
function handleMusicPlayback() {
const bgMusic = document.getElementById('bgMusic');
const musicIcon = document.getElementById('musicIcon');
const playPulse = document.getElementById('playPulse');
// Show pulse effect
playPulse.classList.add('opacity-50');
setTimeout(() => {
playPulse.classList.remove('opacity-50');
playPulse.classList.remove('scale-150');
void playPulse.offsetWidth; // Trigger reflow
playPulse.classList.add('scale-150');
}, 300);
if (bgMusic.paused) {
bgMusic.play()
.then(() => {
musicIcon.setAttribute('data-feather', 'volume-2');
feather.replace();
})
.catch(e => {
// If autoplay is blocked, show play icon
musicIcon.setAttribute('data-feather', 'play');
feather.replace();
});
} else {
bgMusic.pause();
musicIcon.setAttribute('data-feather', 'play');
feather.replace();
}
}
// Initialize music on first user interaction
document.addEventListener('DOMContentLoaded', () => {
const bgMusic = document.getElementById('bgMusic');
const musicIcon = document.getElementById('musicIcon');
// Set volume to 30% by default
bgMusic.volume = 0.3;
// Handle initial play on any user interaction
const initAudio = () => {
bgMusic.play()
.then(() => {
musicIcon.setAttribute('data-feather', 'volume-2');
feather.replace();
})
.catch(e => {
musicIcon.setAttribute('data-feather', 'play');
feather.replace();
});
document.removeEventListener('click', initAudio);
};
document.addEventListener('click', initAudio);
});
</script>
</body>
</html>