-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhome.html
More file actions
208 lines (178 loc) · 10.3 KB
/
home.html
File metadata and controls
208 lines (178 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale-1.0">
<title>Welcome to Genie ✨</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
font-family: 'Inter', sans-serif;
scroll-behavior: smooth;
overflow: hidden; /* Prevent scrollbars from floating objects */
}
/* A subtle glow effect for the main button */
.glow-button {
box-shadow: 0 0 5px theme('colors.pink.500'), 0 0 10px theme('colors.pink.500'), 0 0 15px theme('colors.purple.500');
}
/* Animation for content fading in */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
animation: fadeIn 0.8s ease-out forwards;
}
/* Animation delay classes */
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-400 { animation-delay: 400ms; }
.animation-delay-600 { animation-delay: 600ms; }
/* Genie-related floating objects */
@keyframes float {
0% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-20px) rotate(5deg); }
100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes shimmer {
0% { opacity: 0.7; }
50% { opacity: 1; }
100% { opacity: 0.7; }
}
.floating-object {
position: absolute;
pointer-events: none; /* Allow clicks on content below */
z-index: 0; /* Keep behind text */
opacity: 0; /* Hidden initially, JS will fade them in */
animation: fadeIn 1s ease-out forwards, float 6s ease-in-out infinite alternate;
}
.genie-lamp {
width: 80px;
height: 80px;
background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/Genie_lamp_icon.svg/1200px-Genie_lamp_icon.svg.png') no-repeat center center / contain; /* Placeholder image */
filter: drop-shadow(0 0 8px rgba(147, 51, 234, 0.7)); /* Purple shadow */
animation-duration: 8s; /* Slower float for the lamp */
}
.magic-orb {
width: 30px;
height: 30px;
background: radial-gradient(circle at center, rgba(236, 72, 153, 0.8), rgba(147, 51, 234, 0.8));
border-radius: 50%;
box-shadow: 0 0 15px rgba(236, 72, 153, 0.8), 0 0 25px rgba(147, 51, 234, 0.8);
animation-duration: 5s; /* Faster float for orbs */
animation-delay: var(--delay); /* Use CSS variable for delay */
animation-name: float, shimmer; /* Combine float and shimmer */
}
.magic-dust {
width: 5px;
height: 5px;
background-color: rgba(255, 255, 255, 0.6);
border-radius: 50%;
box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
animation: float 3s ease-in-out infinite alternate, shimmer 2s ease-in-out infinite;
animation-delay: var(--delay);
}
</style>
</head>
<body class="bg-gray-900 text-white">
<nav class="bg-gray-900/80 backdrop-blur-lg sticky top-0 z-50 border-b border-gray-700/50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16">
<div class="flex-shrink-0">
<a href="#" class="text-2xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-pink-500">Genie ✨</a>
</div>
<div class="hidden md:block">
<div class="ml-10 flex items-baseline space-x-4">
<a href="index.html" class="text-gray-300 bg-gray-800 px-3 py-2 rounded-md text-sm font-medium">Mood-buddy</a>
<a href="chai-time.html" class="text-gray-400 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">chai-time</a>
<a href="recipe.html" class="text-gray-400 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">recipe</a>
<a href="expenses.html" class="text-gray-400 hover:bg-gray-700 hover:text-white px-3 py-2 rounded-md text-sm font-medium">expenses</a>
</div>
</div>
<div class="-mr-2 flex md:hidden">
<button id="hamburger-btn" type="button" class="bg-gray-800 inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-white hover:bg-gray-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 focus:ring-white">
<span class="sr-only">Open main menu</span>
<svg id="hamburger-open-icon" class="block h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
<svg id="hamburger-close-icon" class="hidden h-6 w-6" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
</div>
</div>
<div id="mobile-menu" class="hidden md:hidden">
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
<a href="index.html" class="text-gray-300 bg-gray-800 block px-3 py-2 rounded-md text-base font-medium">Mood-buddy</a>
<a href="chai-time.html" class="text-gray-400 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">chai-time</a>
<a href="recipe.html" class="text-gray-400 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">recipe</a>
<a href="expenses.html" class="text-gray-400 hover:bg-gray-700 hover:text-white block px-3 py-2 rounded-md text-base font-medium">expenses</a>
</div>
</div>
</nav>
<main class="relative flex items-center justify-center overflow-hidden" style="min-height: calc(100vh - 4rem);">
<div class="text-center px-4 z-10"> <h1 class="text-5xl md:text-7xl font-black text-white leading-tight animate-fade-in opacity-0">
Welcome to <span class="text-transparent bg-clip-text bg-gradient-to-r from-purple-400 to-pink-500">Genie</span>
</h1>
<p class="mt-4 text-xl md:text-2xl text-gray-400 animate-fade-in opacity-0 animation-delay-200">
Your home's vibe manager. <span class="font-semibold text-gray-300">IYKYK.</span>
</p>
<p class="mt-6 max-w-2xl mx-auto text-lg text-gray-500 animate-fade-in opacity-0 animation-delay-400">
Genie is here to sort the whole scene—from figuring out what to cook with your leftovers to reminding you about bills. Your home just got a major glow-up.
</p>
<div class="mt-10 animate-fade-in opacity-0 animation-delay-600">
<a href="index.html" class="inline-block bg-gradient-to-r from-purple-500 to-pink-500 text-white font-bold text-lg px-8 py-4 rounded-full shadow-lg transform transition-transform hover:scale-105 glow-button">
Enter the Vibe
</a>
</div>
</div>
<div id="floating-objects-container" class="absolute inset-0">
</div>
</main>
<script>
document.addEventListener('DOMContentLoaded', () => {
const hamburgerBtn = document.getElementById('hamburger-btn');
const mobileMenu = document.getElementById('mobile-menu');
const openIcon = document.getElementById('hamburger-open-icon');
const closeIcon = document.getElementById('hamburger-close-icon');
hamburgerBtn.addEventListener('click', () => {
// Toggle the 'hidden' class on the mobile menu
mobileMenu.classList.toggle('hidden');
// Toggle the icons
openIcon.classList.toggle('hidden');
closeIcon.classList.toggle('hidden');
});
// --- Floating Objects Logic ---
const floatingObjectsContainer = document.getElementById('floating-objects-container');
function createFloatingObject(type, count) {
for (let i = 0; i < count; i++) {
const obj = document.createElement('div');
obj.classList.add('floating-object', type);
// Random positioning
obj.style.left = `${Math.random() * 100}%`;
obj.style.top = `${Math.random() * 100}%`;
// Random size variation (for orbs and dust)
if (type === 'magic-orb' || type === 'magic-dust') {
const size = Math.random() * (type === 'magic-orb' ? 20 : 3) + (type === 'magic-orb' ? 20 : 2); // Orbs between 20-40px, dust between 2-5px
obj.style.width = `${size}px`;
obj.style.height = `${size}px`;
}
// Random animation delay for variety
obj.style.setProperty('--delay', `${Math.random() * 5}s`);
obj.style.animationDelay = `${Math.random() * 2}s`; // Initial fade-in delay
floatingObjectsContainer.appendChild(obj);
}
}
// Create one genie lamp
createFloatingObject('genie-lamp', 1);
// Create several magic orbs
createFloatingObject('magic-orb', 8);
// Create many magic dust particles
createFloatingObject('magic-dust', 20);
});
</script>
</body>
</html>