Spiketop commited on
Commit
289a19e
·
verified ·
1 Parent(s): deedca2

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +7 -5
  2. index.html +219 -19
  3. prompts.txt +1 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Menu 1
3
- emoji: 🔥
4
- colorFrom: yellow
5
- colorTo: pink
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: menu-1
3
+ emoji: 🐳
4
+ colorFrom: gray
5
+ colorTo: gray
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,219 @@
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>Animated Responsive Navigation</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
+ <style>
10
+ /* Custom animations */
11
+ @keyframes fadeIn {
12
+ from { opacity: 0; transform: translateY(-10px); }
13
+ to { opacity: 1; transform: translateY(0); }
14
+ }
15
+
16
+ @keyframes slideIn {
17
+ from { transform: translateX(100%); }
18
+ to { transform: translateX(0); }
19
+ }
20
+
21
+ @keyframes pulse {
22
+ 0% { transform: scale(1); }
23
+ 50% { transform: scale(1.05); }
24
+ 100% { transform: scale(1); }
25
+ }
26
+
27
+ .nav-item {
28
+ position: relative;
29
+ transition: all 0.3s ease;
30
+ }
31
+
32
+ .nav-item::after {
33
+ content: '';
34
+ position: absolute;
35
+ bottom: -2px;
36
+ left: 0;
37
+ width: 0;
38
+ height: 2px;
39
+ background: linear-gradient(90deg, #3b82f6, #8b5cf6);
40
+ transition: width 0.3s ease;
41
+ }
42
+
43
+ .nav-item:hover::after {
44
+ width: 100%;
45
+ }
46
+
47
+ .mobile-menu {
48
+ animation: slideIn 0.5s forwards;
49
+ }
50
+
51
+ .mobile-menu.closing {
52
+ animation: slideIn 0.5s reverse forwards;
53
+ }
54
+
55
+ .nav-link {
56
+ animation: fadeIn 0.5s ease-out forwards;
57
+ animation-delay: calc(var(--order) * 0.1s);
58
+ }
59
+
60
+ .logo {
61
+ animation: pulse 2s infinite;
62
+ }
63
+ </style>
64
+ </head>
65
+ <body class="bg-gray-100 font-sans">
66
+ <!-- Navigation -->
67
+ <nav class="bg-white shadow-lg fixed w-full z-50">
68
+ <div class="max-w-7xl mx-auto px-4">
69
+ <div class="flex justify-between items-center h-16">
70
+ <!-- Logo -->
71
+ <div class="flex-shrink-0 flex items-center logo">
72
+ <i class="fas fa-rocket text-indigo-600 text-2xl mr-2"></i>
73
+ <span class="text-xl font-bold text-gray-900">CosmoNav</span>
74
+ </div>
75
+
76
+ <!-- Desktop Menu -->
77
+ <div class="hidden md:flex space-x-8">
78
+ <a href="#home" class="nav-item text-gray-900 hover:text-indigo-600 px-3 py-2 rounded-md text-sm font-medium nav-link" style="--order: 1">Home</a>
79
+ <a href="#features" class="nav-item text-gray-900 hover:text-indigo-600 px-3 py-2 rounded-md text-sm font-medium nav-link" style="--order: 2">Features</a>
80
+ <a href="#pricing" class="nav-item text-gray-900 hover:text-indigo-600 px-3 py-2 rounded-md text-sm font-medium nav-link" style="--order: 3">Pricing</a>
81
+ <a href="#about" class="nav-item text-gray-900 hover:text-indigo-600 px-3 py-2 rounded-md text-sm font-medium nav-link" style="--order: 4">About</a>
82
+ <a href="#contact" class="nav-item text-gray-900 hover:text-indigo-600 px-3 py-2 rounded-md text-sm font-medium nav-link" style="--order: 5">Contact</a>
83
+ </div>
84
+
85
+ <!-- Mobile menu button -->
86
+ <div class="md:hidden flex items-center">
87
+ <button id="mobile-menu-button" class="text-gray-900 hover:text-indigo-600 focus:outline-none">
88
+ <i class="fas fa-bars text-2xl"></i>
89
+ </button>
90
+ </div>
91
+ </div>
92
+ </div>
93
+
94
+ <!-- Mobile Menu -->
95
+ <div id="mobile-menu" class="mobile-menu hidden md:hidden absolute top-16 left-0 right-0 bg-white shadow-lg rounded-b-lg overflow-hidden">
96
+ <div class="px-2 pt-2 pb-3 space-y-1 sm:px-3 flex flex-col">
97
+ <a href="#home" class="nav-item text-gray-900 hover:text-indigo-600 block px-3 py-2 rounded-md text-base font-medium mobile-nav-link" style="--order: 1">Home</a>
98
+ <a href="#features" class="nav-item text-gray-900 hover:text-indigo-600 block px-3 py-2 rounded-md text-base font-medium mobile-nav-link" style="--order: 2">Features</a>
99
+ <a href="#pricing" class="nav-item text-gray-900 hover:text-indigo-600 block px-3 py-2 rounded-md text-base font-medium mobile-nav-link" style="--order: 3">Pricing</a>
100
+ <a href="#about" class="nav-item text-gray-900 hover:text-indigo-600 block px-3 py-2 rounded-md text-base font-medium mobile-nav-link" style="--order: 4">About</a>
101
+ <a href="#contact" class="nav-item text-gray-900 hover:text-indigo-600 block px-3 py-2 rounded-md text-base font-medium mobile-nav-link" style="--order: 5">Contact</a>
102
+ </div>
103
+ </div>
104
+ </nav>
105
+
106
+ <!-- Page Content -->
107
+ <div class="pt-16 px-4">
108
+ <section id="home" class="min-h-screen flex items-center justify-center bg-gradient-to-r from-indigo-100 to-purple-100">
109
+ <div class="text-center">
110
+ <h1 class="text-5xl font-bold text-gray-900 mb-6">Welcome to CosmoNav</h1>
111
+ <p class="text-xl text-gray-700 mb-8">Experience the future of navigation with our animated menu</p>
112
+ <button class="bg-indigo-600 hover:bg-indigo-700 text-white font-bold py-3 px-6 rounded-full transition-all duration-300 transform hover:scale-105 shadow-lg">
113
+ Get Started
114
+ </button>
115
+ </div>
116
+ </section>
117
+
118
+ <section id="features" class="min-h-screen flex items-center justify-center bg-white">
119
+ <div class="text-center">
120
+ <h2 class="text-4xl font-bold text-gray-900 mb-12">Features</h2>
121
+ <div class="grid md:grid-cols-3 gap-8">
122
+ <div class="feature-card p-6 rounded-lg bg-gray-50 hover:bg-indigo-50 transition-all duration-300 transform hover:-translate-y-2">
123
+ <i class="fas fa-bolt text-indigo-600 text-4xl mb-4"></i>
124
+ <h3 class="text-xl font-semibold mb-2">Lightning Fast</h3>
125
+ <p class="text-gray-600">Optimized animations for smooth performance on all devices.</p>
126
+ </div>
127
+ <div class="feature-card p-6 rounded-lg bg-gray-50 hover:bg-indigo-50 transition-all duration-300 transform hover:-translate-y-2">
128
+ <i class="fas fa-mobile-alt text-indigo-600 text-4xl mb-4"></i>
129
+ <h3 class="text-xl font-semibold mb-2">Fully Responsive</h3>
130
+ <p class="text-gray-600">Looks great on phones, tablets, and desktop computers.</p>
131
+ </div>
132
+ <div class="feature-card p-6 rounded-lg bg-gray-50 hover:bg-indigo-50 transition-all duration-300 transform hover:-translate-y-2">
133
+ <i class="fas fa-paint-brush text-indigo-600 text-4xl mb-4"></i>
134
+ <h3 class="text-xl font-semibold mb-2">Beautiful Animations</h3>
135
+ <p class="text-gray-600">Subtle but impressive animations that delight users.</p>
136
+ </div>
137
+ </div>
138
+ </div>
139
+ </section>
140
+ </div>
141
+
142
+ <script>
143
+ // Mobile menu toggle
144
+ const mobileMenuButton = document.getElementById('mobile-menu-button');
145
+ const mobileMenu = document.getElementById('mobile-menu');
146
+ let isMenuOpen = false;
147
+
148
+ mobileMenuButton.addEventListener('click', () => {
149
+ if (isMenuOpen) {
150
+ // Close menu
151
+ mobileMenu.classList.add('closing');
152
+ setTimeout(() => {
153
+ mobileMenu.classList.add('hidden');
154
+ mobileMenu.classList.remove('closing');
155
+ }, 500);
156
+ } else {
157
+ // Open menu
158
+ mobileMenu.classList.remove('hidden');
159
+ // Animate mobile menu items
160
+ const links = document.querySelectorAll('.mobile-nav-link');
161
+ links.forEach(link => {
162
+ link.style.animation = 'none';
163
+ setTimeout(() => {
164
+ link.style.animation = '';
165
+ }, 10);
166
+ });
167
+ }
168
+ isMenuOpen = !isMenuOpen;
169
+ });
170
+
171
+ // Smooth scrolling for navigation links
172
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
173
+ anchor.addEventListener('click', function (e) {
174
+ e.preventDefault();
175
+
176
+ const targetId = this.getAttribute('href');
177
+ const targetElement = document.querySelector(targetId);
178
+
179
+ if (targetElement) {
180
+ // Close mobile menu if open
181
+ if (isMenuOpen) {
182
+ mobileMenu.classList.add('closing');
183
+ setTimeout(() => {
184
+ mobileMenu.classList.add('hidden');
185
+ mobileMenu.classList.remove('closing');
186
+ isMenuOpen = false;
187
+ }, 500);
188
+ }
189
+
190
+ // Scroll to target
191
+ window.scrollTo({
192
+ top: targetElement.offsetTop - 60,
193
+ behavior: 'smooth'
194
+ });
195
+ }
196
+ });
197
+ });
198
+
199
+ // Add scroll animation to feature cards
200
+ const featureCards = document.querySelectorAll('.feature-card');
201
+
202
+ const observer = new IntersectionObserver((entries) => {
203
+ entries.forEach(entry => {
204
+ if (entry.isIntersecting) {
205
+ entry.target.style.opacity = '1';
206
+ entry.target.style.transform = 'translateY(0)';
207
+ }
208
+ });
209
+ }, { threshold: 0.1 });
210
+
211
+ featureCards.forEach(card => {
212
+ card.style.opacity = '0';
213
+ card.style.transform = 'translateY(20px)';
214
+ card.style.transition = 'all 0.5s ease-out';
215
+ observer.observe(card);
216
+ });
217
+ </script>
218
+ <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Spiketop/menu-1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
219
+ </html>
prompts.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ Create a navigation menu that works on all devices. High end animations when navigating the menu options.