okochilraphael commited on
Commit
edfe2e9
·
verified ·
1 Parent(s): 153fd2a

Create an interactive landing page that looks like a starry galaxy. The central glowing star should be named “Felly Ndinda” surrounded by a slightly smaller star named “Raphael Okochil”. The galaxy should be filled with constellations made of affectionate words, like “princess,” “my love,” and “beautiful.”

Browse files

The effect should be that when you zoom in on the galaxy, more words appear, starting with bigger constellations (like “Queen,” “Light of My Life”) and then smaller details (like “smile,” “sunshine,” “my star”). The deeper you zoom, the more intimate and hidden words are revealed, almost like secret messages.

Use glowing pastel colors (purples, blues, pinks, and gold) to make it dreamy and romantic. The stars should softly twinkle, and constellations should connect with faint glowing lines. Include smooth zoom-in and zoom-out animations, with a gentle background music option (optional).

The landing page should work on both desktop and mobile.

✨ Word Suggestions for the Constellations

Level 1 (Visible at first glance – Big Constellations):

Princess

Queen

My Love

Beautiful

Angel

Sunshine

Darling

My Star

Treasure

Soulmate

Level 2 (Zoom in once – Medium Constellations):

Light of My Life

Forever Mine

Magic

Dream Girl

Sweetheart

Jewel

Blossom

Pearl

Rose

Destiny

Level 3 (Zoom in deeper – Hidden constellations):

Heartbeat

Glow

My Universe

Starlight

Honey

Miracle

Hope

Joy

Melody

Moonlight

Level 4 (Closest zoom – Secret messages):

Always & Forever

My Safe Place

My Favorite Hello

My Forever Person

You & Me, Always

I Found Home in You

Eternity With You

My Galaxy is You You can make it more creative the way you deem fit. I want it that when someone zooms in, they find these beautiful words, and stuff like that. - Initial Deployment

Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +347 -18
  3. prompts.txt +93 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Constellations
3
- emoji: 📉
4
- colorFrom: gray
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: constellations
3
+ emoji: 🐳
4
+ colorFrom: green
5
+ colorTo: red
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,348 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Starry Galaxy for Felly & Raphael</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
12
+ <style>
13
+ body {
14
+ margin: 0;
15
+ overflow: hidden;
16
+ font-family: 'Arial', sans-serif;
17
+ }
18
+ #galaxy-container {
19
+ position: absolute;
20
+ width: 100%;
21
+ height: 100%;
22
+ z-index: 1;
23
+ }
24
+ .star {
25
+ position: absolute;
26
+ border-radius: 50%;
27
+ pointer-events: none;
28
+ animation: twinkle 3s infinite alternate;
29
+ }
30
+ .constellation {
31
+ position: absolute;
32
+ color: white;
33
+ font-weight: bold;
34
+ text-shadow: 0 0 10px currentColor;
35
+ pointer-events: none;
36
+ opacity: 0;
37
+ transition: opacity 0.5s;
38
+ }
39
+ .constellation-line {
40
+ position: absolute;
41
+ height: 2px;
42
+ background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.5), rgba(255,255,255,0));
43
+ transform-origin: 0 0;
44
+ pointer-events: none;
45
+ }
46
+ .zoom-controls {
47
+ position: fixed;
48
+ bottom: 20px;
49
+ right: 20px;
50
+ z-index: 100;
51
+ display: flex;
52
+ gap: 10px;
53
+ }
54
+ .zoom-btn {
55
+ width: 40px;
56
+ height: 40px;
57
+ border-radius: 50%;
58
+ background: rgba(255,255,255,0.2);
59
+ backdrop-filter: blur(5px);
60
+ display: flex;
61
+ align-items: center;
62
+ justify-content: center;
63
+ color: white;
64
+ cursor: pointer;
65
+ transition: all 0.3s;
66
+ }
67
+ .zoom-btn:hover {
68
+ background: rgba(255,255,255,0.4);
69
+ }
70
+ .music-control {
71
+ position: fixed;
72
+ bottom: 20px;
73
+ left: 20px;
74
+ z-index: 100;
75
+ width: 40px;
76
+ height: 40px;
77
+ border-radius: 50%;
78
+ background: rgba(255,255,255,0.2);
79
+ backdrop-filter: blur(5px);
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: center;
83
+ color: white;
84
+ cursor: pointer;
85
+ transition: all 0.3s;
86
+ }
87
+ .music-control:hover {
88
+ background: rgba(255,255,255,0.4);
89
+ }
90
+ @keyframes twinkle {
91
+ 0% { opacity: 0.5; }
92
+ 100% { opacity: 1; }
93
+ }
94
+ .title {
95
+ position: fixed;
96
+ top: 50%;
97
+ left: 50%;
98
+ transform: translate(-50%, -50%);
99
+ color: white;
100
+ font-size: 3rem;
101
+ text-align: center;
102
+ z-index: 10;
103
+ text-shadow: 0 0 20px rgba(255,255,255,0.7);
104
+ pointer-events: none;
105
+ }
106
+ .subtitle {
107
+ position: fixed;
108
+ top: 60%;
109
+ left: 50%;
110
+ transform: translate(-50%, -50%);
111
+ color: rgba(255,255,255,0.8);
112
+ font-size: 1.5rem;
113
+ text-align: center;
114
+ z-index: 10;
115
+ text-shadow: 0 0 10px rgba(255,255,255,0.5);
116
+ pointer-events: none;
117
+ }
118
+ </style>
119
+ </head>
120
+ <body>
121
+ <div id="galaxy-container"></div>
122
+ <div class="title">Felly Ndinda</div>
123
+ <div class="subtitle">Raphael Okochil</div>
124
+
125
+ <div class="zoom-controls">
126
+ <div class="zoom-btn" id="zoom-in">
127
+ <i data-feather="plus"></i>
128
+ </div>
129
+ <div class="zoom-btn" id="zoom-out">
130
+ <i data-feather="minus"></i>
131
+ </div>
132
+ </div>
133
+
134
+ <div class="music-control" id="music-control">
135
+ <i data-feather="music"></i>
136
+ </div>
137
+
138
+ <audio id="bg-music" loop>
139
+ <source src="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" type="audio/mpeg">
140
+ </audio>
141
+
142
+ <script>
143
+ // Initialize Vanta.js galaxy background
144
+ const vantaEffect = VANTA.GLOBE({
145
+ el: "#galaxy-container",
146
+ mouseControls: true,
147
+ touchControls: true,
148
+ gyroControls: false,
149
+ minHeight: 200.00,
150
+ minWidth: 200.00,
151
+ scale: 1.00,
152
+ scaleMobile: 1.00,
153
+ color: 0x9d65c9,
154
+ backgroundColor: 0x0,
155
+ size: 0.8,
156
+ points: 6.00
157
+ });
158
+
159
+ // Create stars and constellations
160
+ const container = document.getElementById('galaxy-container');
161
+ const colors = ['#ff9ff3', '#feca57', '#ff6b6b', '#48dbfb', '#1dd1a1', '#f368e0'];
162
+ let zoomLevel = 1;
163
+ let musicPlaying = false;
164
+ const music = document.getElementById('bg-music');
165
+ const musicControl = document.getElementById('music-control');
166
+
167
+ // Constellation words by level
168
+ const constellations = {
169
+ 1: ["Princess", "Queen", "My Love", "Beautiful", "Angel", "Sunshine", "Darling", "My Star", "Treasure", "Soulmate"],
170
+ 2: ["Light of My Life", "Forever Mine", "Magic", "Dream Girl", "Sweetheart", "Jewel", "Blossom", "Pearl", "Rose", "Destiny"],
171
+ 3: ["Heartbeat", "Glow", "My Universe", "Starlight", "Honey", "Miracle", "Hope", "Joy", "Melody", "Moonlight"],
172
+ 4: ["Always & Forever", "My Safe Place", "My Favorite Hello", "My Forever Person", "You & Me, Always", "I Found Home in You", "Eternity With You", "My Galaxy is You"]
173
+ };
174
+
175
+ // Create stars
176
+ function createStars() {
177
+ // Main stars
178
+ createStar('Felly Ndinda', 0, 0, 20, '#ff9ff3');
179
+ createStar('Raphael Okochil', 100, 50, 15, '#feca57');
180
+
181
+ // Random stars
182
+ for (let i = 0; i < 100; i++) {
183
+ const x = (Math.random() - 0.5) * 2000;
184
+ const y = (Math.random() - 0.5) * 2000;
185
+ const size = Math.random() * 3 + 1;
186
+ const color = colors[Math.floor(Math.random() * colors.length)];
187
+ createStar('', x, y, size, color);
188
+ }
189
+ }
190
+
191
+ function createStar(name, x, y, size, color) {
192
+ const star = document.createElement('div');
193
+ star.className = 'star';
194
+ star.style.width = `${size}px`;
195
+ star.style.height = `${size}px`;
196
+ star.style.left = `calc(50% + ${x}px)`;
197
+ star.style.top = `calc(50% + ${y}px)`;
198
+ star.style.backgroundColor = color;
199
+ star.style.boxShadow = `0 0 ${size*2}px ${size}px ${color}`;
200
+ star.style.animationDelay = `${Math.random() * 3}s`;
201
+
202
+ if (name) {
203
+ star.setAttribute('data-name', name);
204
+ star.style.boxShadow = `0 0 ${size*4}px ${size*2}px ${color}`;
205
+ }
206
+
207
+ container.appendChild(star);
208
+ }
209
+
210
+ // Create constellations
211
+ function createConstellations() {
212
+ for (const level in constellations) {
213
+ const words = constellations[level];
214
+ const count = words.length;
215
+ const radius = 200 + (level * 100);
216
+
217
+ for (let i = 0; i < count; i++) {
218
+ const angle = (i / count) * Math.PI * 2;
219
+ const x = Math.cos(angle) * radius;
220
+ const y = Math.sin(angle) * radius;
221
+
222
+ // Create word
223
+ const word = document.createElement('div');
224
+ word.className = 'constellation';
225
+ word.textContent = words[i];
226
+ word.style.color = colors[i % colors.length];
227
+ word.style.left = `calc(50% + ${x}px)`;
228
+ word.style.top = `calc(50% + ${y}px)`;
229
+ word.style.fontSize = `${1.5 - (level * 0.2)}rem`;
230
+ word.setAttribute('data-level', level);
231
+ container.appendChild(word);
232
+
233
+ // Create lines (connect to next word)
234
+ if (i < count - 1) {
235
+ const nextAngle = ((i + 1) / count) * Math.PI * 2;
236
+ const nextX = Math.cos(nextAngle) * radius;
237
+ const nextY = Math.sin(nextAngle) * radius;
238
+
239
+ createConstellationLine(x, y, nextX, nextY, colors[i % colors.length], level);
240
+ }
241
+ }
242
+ }
243
+ }
244
+
245
+ function createConstellationLine(x1, y1, x2, y2, color, level) {
246
+ const dx = x2 - x1;
247
+ const dy = y2 - y1;
248
+ const length = Math.sqrt(dx * dx + dy * dy);
249
+ const angle = Math.atan2(dy, dx) * 180 / Math.PI;
250
+
251
+ const line = document.createElement('div');
252
+ line.className = 'constellation-line';
253
+ line.style.width = `${length}px`;
254
+ line.style.left = `calc(50% + ${x1}px)`;
255
+ line.style.top = `calc(50% + ${y1}px)`;
256
+ line.style.transform = `rotate(${angle}deg)`;
257
+ line.style.opacity = '0';
258
+ line.setAttribute('data-level', level);
259
+ container.appendChild(line);
260
+ }
261
+
262
+ // Update visibility based on zoom level
263
+ function updateVisibility() {
264
+ const constellations = document.querySelectorAll('.constellation, .constellation-line');
265
+ constellations.forEach(el => {
266
+ const level = parseInt(el.getAttribute('data-level'));
267
+ el.style.opacity = zoomLevel >= level ? '1' : '0';
268
+ });
269
+
270
+ // Scale the container to simulate zoom
271
+ container.style.transform = `scale(${zoomLevel})`;
272
+ }
273
+
274
+ // Event listeners
275
+ document.getElementById('zoom-in').addEventListener('click', () => {
276
+ if (zoomLevel < 4) {
277
+ zoomLevel += 0.5;
278
+ updateVisibility();
279
+ }
280
+ });
281
+
282
+ document.getElementById('zoom-out').addEventListener('click', () => {
283
+ if (zoomLevel > 1) {
284
+ zoomLevel -= 0.5;
285
+ updateVisibility();
286
+ }
287
+ });
288
+
289
+ musicControl.addEventListener('click', () => {
290
+ musicPlaying = !musicPlaying;
291
+ if (musicPlaying) {
292
+ music.play();
293
+ musicControl.innerHTML = '<i data-feather="pause"></i>';
294
+ } else {
295
+ music.pause();
296
+ musicControl.innerHTML = '<i data-feather="music"></i>';
297
+ }
298
+ feather.replace();
299
+ });
300
+
301
+ // Handle touch events for pinch zoom
302
+ let initialDistance = null;
303
+ container.addEventListener('touchstart', (e) => {
304
+ if (e.touches.length === 2) {
305
+ initialDistance = Math.hypot(
306
+ e.touches[0].clientX - e.touches[1].clientX,
307
+ e.touches[0].clientY - e.touches[1].clientY
308
+ );
309
+ }
310
+ });
311
+
312
+ container.addEventListener('touchmove', (e) => {
313
+ if (e.touches.length === 2 && initialDistance) {
314
+ const currentDistance = Math.hypot(
315
+ e.touches[0].clientX - e.touches[1].clientX,
316
+ e.touches[0].clientY - e.touches[1].clientY
317
+ );
318
+
319
+ if (currentDistance > initialDistance + 50) {
320
+ // Zoom in
321
+ if (zoomLevel < 4) {
322
+ zoomLevel += 0.1;
323
+ updateVisibility();
324
+ }
325
+ initialDistance = currentDistance;
326
+ } else if (currentDistance < initialDistance - 50) {
327
+ // Zoom out
328
+ if (zoomLevel > 1) {
329
+ zoomLevel -= 0.1;
330
+ updateVisibility();
331
+ }
332
+ initialDistance = currentDistance;
333
+ }
334
+ }
335
+ });
336
+
337
+ container.addEventListener('touchend', () => {
338
+ initialDistance = null;
339
+ });
340
+
341
+ // Initialize
342
+ createStars();
343
+ createConstellations();
344
+ updateVisibility();
345
+ feather.replace();
346
+ </script>
347
+ </body>
348
  </html>
prompts.txt ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Create an interactive landing page that looks like a starry galaxy. The central glowing star should be named “Felly Ndinda” surrounded by a slightly smaller star named “Raphael Okochil”. The galaxy should be filled with constellations made of affectionate words, like “princess,” “my love,” and “beautiful.”
2
+
3
+ The effect should be that when you zoom in on the galaxy, more words appear, starting with bigger constellations (like “Queen,” “Light of My Life”) and then smaller details (like “smile,” “sunshine,” “my star”). The deeper you zoom, the more intimate and hidden words are revealed, almost like secret messages.
4
+
5
+ Use glowing pastel colors (purples, blues, pinks, and gold) to make it dreamy and romantic. The stars should softly twinkle, and constellations should connect with faint glowing lines. Include smooth zoom-in and zoom-out animations, with a gentle background music option (optional).
6
+
7
+ The landing page should work on both desktop and mobile.
8
+
9
+ ✨ Word Suggestions for the Constellations
10
+
11
+ Level 1 (Visible at first glance – Big Constellations):
12
+
13
+ Princess
14
+
15
+ Queen
16
+
17
+ My Love
18
+
19
+ Beautiful
20
+
21
+ Angel
22
+
23
+ Sunshine
24
+
25
+ Darling
26
+
27
+ My Star
28
+
29
+ Treasure
30
+
31
+ Soulmate
32
+
33
+ Level 2 (Zoom in once – Medium Constellations):
34
+
35
+ Light of My Life
36
+
37
+ Forever Mine
38
+
39
+ Magic
40
+
41
+ Dream Girl
42
+
43
+ Sweetheart
44
+
45
+ Jewel
46
+
47
+ Blossom
48
+
49
+ Pearl
50
+
51
+ Rose
52
+
53
+ Destiny
54
+
55
+ Level 3 (Zoom in deeper – Hidden constellations):
56
+
57
+ Heartbeat
58
+
59
+ Glow
60
+
61
+ My Universe
62
+
63
+ Starlight
64
+
65
+ Honey
66
+
67
+ Miracle
68
+
69
+ Hope
70
+
71
+ Joy
72
+
73
+ Melody
74
+
75
+ Moonlight
76
+
77
+ Level 4 (Closest zoom – Secret messages):
78
+
79
+ Always & Forever
80
+
81
+ My Safe Place
82
+
83
+ My Favorite Hello
84
+
85
+ My Forever Person
86
+
87
+ You & Me, Always
88
+
89
+ I Found Home in You
90
+
91
+ Eternity With You
92
+
93
+ My Galaxy is You You can make it more creative the way you deem fit. I want it that when someone zooms in, they find these beautiful words, and stuff like that.