Spaces:
Running
<!DOCTYPE html>
Browse files<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 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>
<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>
so add an dummy e mail amnd passwoed in logi oppage before home pahge
add rthis code after it
- README.md +8 -5
- index.html +228 -18
- login.html +145 -0
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: LoveByte Chronicles π
|
| 3 |
+
colorFrom: gray
|
| 4 |
+
colorTo: green
|
| 5 |
+
emoji: π³
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
|
@@ -1,19 +1,229 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Malavika & Me β Our Love Story</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
|
| 10 |
+
<style>
|
| 11 |
+
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');
|
| 12 |
+
|
| 13 |
+
body {
|
| 14 |
+
font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
|
| 15 |
+
overflow-x: hidden;
|
| 16 |
+
-webkit-font-smoothing: antialiased;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.heart {
|
| 20 |
+
position: absolute;
|
| 21 |
+
pointer-events: none;
|
| 22 |
+
animation: float 6s ease-in-out infinite;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
@keyframes float {
|
| 26 |
+
0%, 100% { transform: translateY(0) rotate(0deg); }
|
| 27 |
+
50% { transform: translateY(-20px) rotate(5deg); }
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.gradient-bg {
|
| 31 |
+
background: linear-gradient(150deg, #F5F7FA 0%, #EBF2FF 100%);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.glow-text {
|
| 35 |
+
text-shadow: 0 0 16px rgba(0, 122, 255, 0.15);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.timeline-item::before {
|
| 39 |
+
content: '';
|
| 40 |
+
position: absolute;
|
| 41 |
+
left: -40px;
|
| 42 |
+
top: 0;
|
| 43 |
+
width: 20px;
|
| 44 |
+
height: 20px;
|
| 45 |
+
border-radius: 50%;
|
| 46 |
+
background: #007AFF;
|
| 47 |
+
border: 4px solid rgba(0, 122, 255, 0.1);
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.card {
|
| 51 |
+
backdrop-filter: saturate(180%) blur(20px);
|
| 52 |
+
background-color: rgba(255, 255, 255, 0.8);
|
| 53 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.card:hover {
|
| 57 |
+
background-color: rgba(255, 255, 255, 0.9);
|
| 58 |
+
transform: scale(1.03);
|
| 59 |
+
}
|
| 60 |
+
</style>
|
| 61 |
+
</head>
|
| 62 |
+
<body class="gradient-bg min-h-screen relative">
|
| 63 |
+
<div id="vanta-bg" class="absolute inset-0 z-0"></div>
|
| 64 |
+
|
| 65 |
+
<!-- Floating hearts -->
|
| 66 |
+
<div id="hearts-container"></div>
|
| 67 |
+
|
| 68 |
+
<div class="relative z-10 container mx-auto px-4 py-16">
|
| 69 |
+
<header class="text-center mb-16">
|
| 70 |
+
<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>
|
| 71 |
+
<p class="text-xl md:text-2xl text-gray-800 max-w-3xl mx-auto card rounded-3xl p-8">
|
| 72 |
+
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.
|
| 73 |
+
</p>
|
| 74 |
+
</header>
|
| 75 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 max-w-6xl mx-auto">
|
| 76 |
+
<a href="portraits.html" class="card rounded-2xl p-6 transition-all duration-300 hover:scale-105">
|
| 77 |
+
<div class="text-center">
|
| 78 |
+
<i data-feather="image" class="w-12 h-12 mx-auto text-[#007AFF] mb-4"></i>
|
| 79 |
+
<h3 class="text-2xl font-semibold text-gray-800 mb-2">Our Portraits</h3>
|
| 80 |
+
<p class="text-gray-600">Gallery of our beautiful moments</p>
|
| 81 |
+
</div>
|
| 82 |
+
</a>
|
| 83 |
+
|
| 84 |
+
<a href="story.html" class="card rounded-2xl p-6 transition-all duration-300 hover:scale-105">
|
| 85 |
+
<div class="text-center">
|
| 86 |
+
<i data-feather="heart" class="w-12 h-12 mx-auto text-[#007AFF] mb-4"></i>
|
| 87 |
+
<h3 class="text-2xl font-semibold text-gray-800 mb-2">Our Love Story</h3>
|
| 88 |
+
<p class="text-gray-600">Journey since April 14th</p>
|
| 89 |
+
</div>
|
| 90 |
+
</a>
|
| 91 |
+
<a href="reasons.html" class="card rounded-2xl p-6 transition-all duration-300 hover:scale-105">
|
| 92 |
+
<div class="text-center">
|
| 93 |
+
<i data-feather="list" class="w-12 h-12 mx-auto text-[#007AFF] mb-4"></i>
|
| 94 |
+
<h3 class="text-2xl font-semibold text-gray-800 mb-2">Why I Love You</h3>
|
| 95 |
+
<p class="text-gray-600">Endless reasons why</p>
|
| 96 |
+
</div>
|
| 97 |
+
</a>
|
| 98 |
+
<a href="chat.html" class="card rounded-2xl p-6 transition-all duration-300 hover:scale-105">
|
| 99 |
+
<div class="text-center">
|
| 100 |
+
<i data-feather="message-circle" class="w-12 h-12 mx-auto text-[#007AFF] mb-4"></i>
|
| 101 |
+
<h3 class="text-2xl font-bold text-white mb-2">Chat With Me</h3>
|
| 102 |
+
<p class="text-white">Share your thoughts with me</p>
|
| 103 |
+
</div>
|
| 104 |
+
</a>
|
| 105 |
+
</div>
|
| 106 |
+
<audio id="bgMusic" loop style="display: none;">
|
| 107 |
+
<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">
|
| 108 |
+
</audio>
|
| 109 |
+
<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()">
|
| 110 |
+
<div id="musicButton" class="relative">
|
| 111 |
+
<i id="musicIcon" data-feather="play" class="text-[#007AFF] w-6 h-6"></i>
|
| 112 |
+
<div id="playPulse" class="absolute inset-0 rounded-full bg-blue-100 opacity-0 scale-150 transition-all duration-300"></div>
|
| 113 |
+
</div>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
|
| 117 |
+
<script>
|
| 118 |
+
// Initialize Vanta.js globe background
|
| 119 |
+
VANTA.GLOBE({
|
| 120 |
+
el: "#vanta-bg",
|
| 121 |
+
mouseControls: true,
|
| 122 |
+
touchControls: true,
|
| 123 |
+
gyroControls: false,
|
| 124 |
+
minHeight: 200.00,
|
| 125 |
+
minWidth: 200.00,
|
| 126 |
+
scale: 1.00,
|
| 127 |
+
scaleMobile: 1.00,
|
| 128 |
+
color: 0x7bb4ff,
|
| 129 |
+
backgroundColor: 0xa7c7e7,
|
| 130 |
+
size: 0.8
|
| 131 |
+
});
|
| 132 |
+
|
| 133 |
+
// Create floating hearts
|
| 134 |
+
function createHearts() {
|
| 135 |
+
const container = document.getElementById('hearts-container');
|
| 136 |
+
const colors = ['#007AFF', '#B3D9FF', '#D6E6F2', '#FFFFFF'];
|
| 137 |
+
|
| 138 |
+
for (let i = 0; i < 15; i++) {
|
| 139 |
+
const heart = document.createElement('div');
|
| 140 |
+
heart.innerHTML = 'π';
|
| 141 |
+
heart.className = 'heart text-2xl md:text-4xl opacity-70';
|
| 142 |
+
heart.style.left = Math.random() * 100 + 'vw';
|
| 143 |
+
heart.style.top = Math.random() * 100 + 'vh';
|
| 144 |
+
heart.style.animationDelay = Math.random() * 5 + 's';
|
| 145 |
+
heart.style.animationDuration = 3 + Math.random() * 7 + 's';
|
| 146 |
+
container.appendChild(heart);
|
| 147 |
+
}
|
| 148 |
+
}
|
| 149 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 150 |
+
feather.replace();
|
| 151 |
+
createHearts();
|
| 152 |
+
// Handle music playback with user interaction
|
| 153 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 154 |
+
feather.replace();
|
| 155 |
+
createHearts();
|
| 156 |
+
|
| 157 |
+
const bgMusic = document.getElementById('bgMusic');
|
| 158 |
+
bgMusic.volume = 0.3;
|
| 159 |
+
|
| 160 |
+
// Modern browsers require user interaction before playing audio
|
| 161 |
+
document.body.addEventListener('click', function initAudio() {
|
| 162 |
+
bgMusic.play().catch(e => {
|
| 163 |
+
document.getElementById('musicIcon').setAttribute('data-feather', 'volume-x');
|
| 164 |
+
feather.replace();
|
| 165 |
+
});
|
| 166 |
+
document.body.removeEventListener('click', initAudio);
|
| 167 |
+
});
|
| 168 |
+
});
|
| 169 |
+
});
|
| 170 |
+
// Improved music playback handler
|
| 171 |
+
function handleMusicPlayback() {
|
| 172 |
+
const bgMusic = document.getElementById('bgMusic');
|
| 173 |
+
const musicIcon = document.getElementById('musicIcon');
|
| 174 |
+
const playPulse = document.getElementById('playPulse');
|
| 175 |
+
|
| 176 |
+
// Show pulse effect
|
| 177 |
+
playPulse.classList.add('opacity-50');
|
| 178 |
+
setTimeout(() => {
|
| 179 |
+
playPulse.classList.remove('opacity-50');
|
| 180 |
+
playPulse.classList.remove('scale-150');
|
| 181 |
+
void playPulse.offsetWidth; // Trigger reflow
|
| 182 |
+
playPulse.classList.add('scale-150');
|
| 183 |
+
}, 300);
|
| 184 |
+
|
| 185 |
+
if (bgMusic.paused) {
|
| 186 |
+
bgMusic.play()
|
| 187 |
+
.then(() => {
|
| 188 |
+
musicIcon.setAttribute('data-feather', 'volume-2');
|
| 189 |
+
feather.replace();
|
| 190 |
+
})
|
| 191 |
+
.catch(e => {
|
| 192 |
+
// If autoplay is blocked, show play icon
|
| 193 |
+
musicIcon.setAttribute('data-feather', 'play');
|
| 194 |
+
feather.replace();
|
| 195 |
+
});
|
| 196 |
+
} else {
|
| 197 |
+
bgMusic.pause();
|
| 198 |
+
musicIcon.setAttribute('data-feather', 'play');
|
| 199 |
+
feather.replace();
|
| 200 |
+
}
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
// Initialize music on first user interaction
|
| 204 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 205 |
+
const bgMusic = document.getElementById('bgMusic');
|
| 206 |
+
const musicIcon = document.getElementById('musicIcon');
|
| 207 |
+
|
| 208 |
+
// Set volume to 30% by default
|
| 209 |
+
bgMusic.volume = 0.3;
|
| 210 |
+
|
| 211 |
+
// Handle initial play on any user interaction
|
| 212 |
+
const initAudio = () => {
|
| 213 |
+
bgMusic.play()
|
| 214 |
+
.then(() => {
|
| 215 |
+
musicIcon.setAttribute('data-feather', 'volume-2');
|
| 216 |
+
feather.replace();
|
| 217 |
+
})
|
| 218 |
+
.catch(e => {
|
| 219 |
+
musicIcon.setAttribute('data-feather', 'play');
|
| 220 |
+
feather.replace();
|
| 221 |
+
});
|
| 222 |
+
document.removeEventListener('click', initAudio);
|
| 223 |
+
};
|
| 224 |
+
|
| 225 |
+
document.addEventListener('click', initAudio);
|
| 226 |
+
});
|
| 227 |
+
</script>
|
| 228 |
+
</body>
|
| 229 |
</html>
|
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Login - LoveByte Chronicles</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 9 |
+
<style>
|
| 10 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 11 |
+
|
| 12 |
+
body {
|
| 13 |
+
font-family: 'Inter', sans-serif;
|
| 14 |
+
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.login-card {
|
| 18 |
+
backdrop-filter: blur(16px);
|
| 19 |
+
background-color: rgba(255, 255, 255, 0.8);
|
| 20 |
+
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
.heart-float {
|
| 24 |
+
position: absolute;
|
| 25 |
+
animation: float 6s ease-in-out infinite;
|
| 26 |
+
opacity: 0.8;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
@keyframes float {
|
| 30 |
+
0%, 100% { transform: translateY(0) rotate(0deg); }
|
| 31 |
+
50% { transform: translateY(-20px) rotate(5deg); }
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.input-field:focus {
|
| 35 |
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.btn-primary {
|
| 39 |
+
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
|
| 40 |
+
transition: all 0.3s ease;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.btn-primary:hover {
|
| 44 |
+
transform: translateY(-2px);
|
| 45 |
+
box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
|
| 46 |
+
}
|
| 47 |
+
</style>
|
| 48 |
+
</head>
|
| 49 |
+
<body class="min-h-screen flex items-center justify-center p-4 relative overflow-hidden">
|
| 50 |
+
<!-- Floating hearts background -->
|
| 51 |
+
<div id="hearts-container" class="absolute inset-0 pointer-events-none"></div>
|
| 52 |
+
|
| 53 |
+
<div class="login-card rounded-2xl w-full max-w-md p-8 border border-gray-100 relative z-10">
|
| 54 |
+
<div class="text-center mb-8">
|
| 55 |
+
<h1 class="text-3xl font-bold text-gray-800 mb-2">Welcome Back</h1>
|
| 56 |
+
<p class="text-gray-600">Sign in to continue to your love story</p>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<form id="loginForm" class="space-y-6">
|
| 60 |
+
<div>
|
| 61 |
+
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
|
| 62 |
+
<input
|
| 63 |
+
type="email"
|
| 64 |
+
id="email"
|
| 65 |
+
name="email"
|
| 66 |
+
placeholder="your.email@example.com"
|
| 67 |
+
value="malavika.love@example.com"
|
| 68 |
+
class="input-field w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 transition"
|
| 69 |
+
required
|
| 70 |
+
>
|
| 71 |
+
</div>
|
| 72 |
+
|
| 73 |
+
<div>
|
| 74 |
+
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
|
| 75 |
+
<input
|
| 76 |
+
type="password"
|
| 77 |
+
id="password"
|
| 78 |
+
name="password"
|
| 79 |
+
placeholder="β’β’β’β’β’β’β’β’"
|
| 80 |
+
value="ILoveYou3000"
|
| 81 |
+
class="input-field w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 transition"
|
| 82 |
+
required
|
| 83 |
+
>
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<div class="flex items-center justify-between">
|
| 87 |
+
<div class="flex items-center">
|
| 88 |
+
<input id="remember" name="remember" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
|
| 89 |
+
<label for="remember" class="ml-2 block text-sm text-gray-700">Remember me</label>
|
| 90 |
+
</div>
|
| 91 |
+
|
| 92 |
+
<a href="#" class="text-sm text-blue-600 hover:text-blue-500">Forgot password?</a>
|
| 93 |
+
</div>
|
| 94 |
+
|
| 95 |
+
<button type="submit" class="btn-primary w-full py-3 px-4 text-white font-medium rounded-lg">
|
| 96 |
+
Sign In
|
| 97 |
+
</button>
|
| 98 |
+
</form>
|
| 99 |
+
|
| 100 |
+
<div class="mt-6 text-center">
|
| 101 |
+
<p class="text-sm text-gray-600">
|
| 102 |
+
Don't have an account?
|
| 103 |
+
<a href="#" class="text-blue-600 hover:text-blue-500 font-medium">Create one</a>
|
| 104 |
+
</p>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
|
| 108 |
+
<script>
|
| 109 |
+
// Create floating hearts
|
| 110 |
+
function createHearts() {
|
| 111 |
+
const container = document.getElementById('hearts-container');
|
| 112 |
+
const heartEmojis = ['β€οΈ', 'π', 'π', 'π', 'π'];
|
| 113 |
+
|
| 114 |
+
for (let i = 0; i < 15; i++) {
|
| 115 |
+
const heart = document.createElement('div');
|
| 116 |
+
heart.innerHTML = heartEmojis[Math.floor(Math.random() * heartEmojis.length)];
|
| 117 |
+
heart.className = 'heart-float text-2xl md:text-3xl';
|
| 118 |
+
heart.style.left = Math.random() * 100 + 'vw';
|
| 119 |
+
heart.style.top = Math.random() * 100 + 'vh';
|
| 120 |
+
heart.style.animationDelay = Math.random() * 5 + 's';
|
| 121 |
+
heart.style.animationDuration = 3 + Math.random() * 7 + 's';
|
| 122 |
+
container.appendChild(heart);
|
| 123 |
+
}
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
// Handle form submission
|
| 127 |
+
document.getElementById('loginForm').addEventListener('submit', function(e) {
|
| 128 |
+
e.preventDefault();
|
| 129 |
+
const email = document.getElementById('email').value;
|
| 130 |
+
const password = document.getElementById('password').value;
|
| 131 |
+
|
| 132 |
+
// Simple validation
|
| 133 |
+
if (email && password) {
|
| 134 |
+
// Redirect to main page after successful login
|
| 135 |
+
window.location.href = 'index.html';
|
| 136 |
+
}
|
| 137 |
+
});
|
| 138 |
+
|
| 139 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 140 |
+
feather.replace();
|
| 141 |
+
createHearts();
|
| 142 |
+
});
|
| 143 |
+
</script>
|
| 144 |
+
</body>
|
| 145 |
+
</html>
|