harsh-77 commited on
Commit
b8077d3
·
verified ·
1 Parent(s): 83a7938

navbar does not work on clincking - Initial Deployment

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +349 -18
  3. prompts.txt +2 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Bmw Webisite
3
- emoji: 🌖
4
- colorFrom: indigo
5
  colorTo: gray
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: bmw-webisite
3
+ emoji: 🐳
4
+ colorFrom: green
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,350 @@
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>BMW | The Ultimate Driving Machine</title>
7
+ <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
10
+ <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
11
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
12
+ <script src="https://unpkg.com/feather-icons"></script>
13
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
14
+ <style>
15
+ .hero-section {
16
+ background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('http://static.photos/automotive/1200x630/1');
17
+ background-size: cover;
18
+ background-position: center;
19
+ }
20
+ .bmw-blue {
21
+ color: #0066b1;
22
+ }
23
+ .bg-bmw-blue {
24
+ background-color: #0066b1;
25
+ }
26
+ .border-bmw-blue {
27
+ border-color: #0066b1;
28
+ }
29
+ .car-card:hover {
30
+ transform: translateY(-10px);
31
+ box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
32
+ }
33
+ .vanta-container {
34
+ position: absolute;
35
+ top: 0;
36
+ left: 0;
37
+ width: 100%;
38
+ height: 100%;
39
+ z-index: -1;
40
+ }
41
+ </style>
42
+ </head>
43
+ <body class="font-sans antialiased">
44
+ <!-- Navigation -->
45
+ <nav class="bg-white shadow-lg sticky top-0 z-50">
46
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
47
+ <div class="flex justify-between h-16">
48
+ <div class="flex items-center">
49
+ <div class="flex-shrink-0 flex items-center">
50
+ <img class="h-8 w-auto" src="https://www.bmw.com/etc.clientlibs/ds2-webcomponents/clientlibs/clientlib/resources/img/BMW_White_Logo.svg" alt="BMW Logo">
51
+ </div>
52
+ <div class="hidden sm:ml-6 sm:flex sm:space-x-8">
53
+ <a href="#models" class="border-bmw-blue text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Models</a>
54
+ <a href="#electric" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Electric</a>
55
+ <a href="#shop" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Shop</a>
56
+ <a href="#discover" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">Discover</a>
57
+ </div>
58
+ </div>
59
+ <div class="hidden sm:ml-6 sm:flex sm:items-center">
60
+ <button class="bg-bmw-blue px-4 py-2 rounded-md text-white text-sm font-medium hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
61
+ Build Your BMW
62
+ </button>
63
+ <button class="ml-4 p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
64
+ <i data-feather="search"></i>
65
+ </button>
66
+ </div>
67
+ <div class="-mr-2 flex items-center sm:hidden">
68
+ <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500" aria-controls="mobile-menu" aria-expanded="false">
69
+ <i data-feather="menu"></i>
70
+ </button>
71
+ </div>
72
+ </div>
73
+ </div>
74
+
75
+ <!-- Mobile menu -->
76
+ <div class="sm:hidden hidden" id="mobile-menu">
77
+ <div class="pt-2 pb-3 space-y-1">
78
+ <a href="#models" class="bg-blue-50 border-bmw-blue text-blue-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Models</a>
79
+ <a href="#electric" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Electric</a>
80
+ <a href="#shop" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Shop</a>
81
+ <a href="#discover" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Discover</a>
82
+ <div class="mt-4 pl-3">
83
+ <button class="bg-bmw-blue px-4 py-2 rounded-md text-white text-sm font-medium hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
84
+ Build Your BMW
85
+ </button>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ </nav>
90
+
91
+ <!-- Hero Section -->
92
+ <div class="relative">
93
+ <div class="vanta-container" id="vanta-bg"></div>
94
+ <div class="hero-section min-h-screen flex items-center justify-center text-center px-4 sm:px-6 lg:px-8">
95
+ <div class="max-w-3xl mx-auto text-white" data-aos="fade-up">
96
+ <h1 class="text-4xl md:text-6xl font-bold mb-6">THE FUTURE IS ELECTRIC</h1>
97
+ <p class="text-xl md:text-2xl mb-8">Experience the new BMW i7 with groundbreaking technology and sustainable luxury.</p>
98
+ <div class="flex flex-col sm:flex-row justify-center gap-4">
99
+ <button class="bg-bmw-blue hover:bg-blue-700 text-white font-bold py-3 px-8 rounded-full transition duration-300">
100
+ Discover More
101
+ </button>
102
+ <button class="bg-transparent hover:bg-white hover:text-gray-900 text-white font-bold py-3 px-8 border-2 border-white rounded-full transition duration-300">
103
+ Book a Test Drive
104
+ </button>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ </div>
109
+
110
+ <!-- Models Section -->
111
+ <section id="models" class="py-20 bg-gray-50">
112
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
113
+ <div class="text-center mb-16" data-aos="fade-up">
114
+ <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-4">BMW MODELS</h2>
115
+ <p class="text-xl text-gray-600 max-w-3xl mx-auto">From sporty sedans to spacious SUVs, find the perfect BMW for your lifestyle.</p>
116
+ </div>
117
+
118
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
119
+ <!-- Car 1 -->
120
+ <div class="car-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-aos="fade-up" data-aos-delay="100">
121
+ <img class="w-full h-64 object-cover" src="http://static.photos/automotive/640x360/2" alt="BMW 3 Series">
122
+ <div class="p-6">
123
+ <h3 class="text-xl font-bold text-gray-900 mb-2">3 Series</h3>
124
+ <p class="text-gray-600 mb-4">The sporty sedan with dynamic performance and modern luxury.</p>
125
+ <div class="flex justify-between items-center">
126
+ <span class="text-lg font-bold bmw-blue">From $41,450</span>
127
+ <button class="text-bmw-blue hover:text-blue-700 font-medium">Explore <i data-feather="arrow-right" class="inline"></i></button>
128
+ </div>
129
+ </div>
130
+ </div>
131
+
132
+ <!-- Car 2 -->
133
+ <div class="car-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-aos="fade-up" data-aos-delay="200">
134
+ <img class="w-full h-64 object-cover" src="http://static.photos/automotive/640x360/3" alt="BMW X5">
135
+ <div class="p-6">
136
+ <h3 class="text-xl font-bold text-gray-900 mb-2">X5</h3>
137
+ <p class="text-gray-600 mb-4">The Sports Activity Vehicle that defines modern versatility.</p>
138
+ <div class="flex justify-between items-center">
139
+ <span class="text-lg font-bold bmw-blue">From $60,600</span>
140
+ <button class="text-bmw-blue hover:text-blue-700 font-medium">Explore <i data-feather="arrow-right" class="inline"></i></button>
141
+ </div>
142
+ </div>
143
+ </div>
144
+
145
+ <!-- Car 3 -->
146
+ <div class="car-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300" data-aos="fade-up" data-aos-delay="300">
147
+ <img class="w-full h-64 object-cover" src="http://static.photos/automotive/640x360/4" alt="BMW i4">
148
+ <div class="p-6">
149
+ <h3 class="text-xl font-bold text-gray-900 mb-2">i4</h3>
150
+ <p class="text-gray-600 mb-4">The all-electric Gran Coupé with impressive range and performance.</p>
151
+ <div class="flex justify-between items-center">
152
+ <span class="text-lg font-bold bmw-blue">From $51,400</span>
153
+ <button class="text-bmw-blue hover:text-blue-700 font-medium">Explore <i data-feather="arrow-right" class="inline"></i></button>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ </div>
158
+
159
+ <div class="text-center mt-12" data-aos="fade-up">
160
+ <button class="bg-bmw-blue hover:bg-blue-700 text-white font-bold py-3 px-8 rounded-full transition duration-300">
161
+ View All Models
162
+ </button>
163
+ </div>
164
+ </div>
165
+ </section>
166
+
167
+ <!-- Electric Section -->
168
+ <section id="electric" class="py-20 bg-white">
169
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
170
+ <div class="flex flex-col lg:flex-row items-center">
171
+ <div class="lg:w-1/2 mb-10 lg:mb-0 lg:pr-12" data-aos="fade-right">
172
+ <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-6">ELECTRIFYING PERFORMANCE</h2>
173
+ <p class="text-xl text-gray-600 mb-6">BMW i represents visionary electric vehicles that combine sustainable mobility with sheer driving pleasure.</p>
174
+ <ul class="space-y-4 mb-8">
175
+ <li class="flex items-start">
176
+ <i data-feather="zap" class="text-bmw-blue mr-3 mt-1"></i>
177
+ <span class="text-lg">Instant electric torque for thrilling acceleration</span>
178
+ </li>
179
+ <li class="flex items-start">
180
+ <i data-feather="battery" class="text-bmw-blue mr-3 mt-1"></i>
181
+ <span class="text-lg">Impressive range for everyday usability</span>
182
+ </li>
183
+ <li class="flex items-start">
184
+ <i data-feather="leaf" class="text-bmw-blue mr-3 mt-1"></i>
185
+ <span class="text-lg">Sustainable materials and production</span>
186
+ </li>
187
+ </ul>
188
+ <button class="bg-bmw-blue hover:bg-blue-700 text-white font-bold py-3 px-8 rounded-full transition duration-300">
189
+ Discover BMW i
190
+ </button>
191
+ </div>
192
+ <div class="lg:w-1/2" data-aos="fade-left">
193
+ <img class="rounded-lg shadow-xl" src="http://static.photos/automotive/1024x576/5" alt="BMW Electric Vehicle">
194
+ </div>
195
+ </div>
196
+ </div>
197
+ </section>
198
+
199
+ <!-- Experience Section -->
200
+ <section id="discover" class="py-20 bg-gray-900 text-white">
201
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
202
+ <div class="text-center mb-16" data-aos="fade-up">
203
+ <h2 class="text-3xl md:text-4xl font-bold mb-4">THE BMW EXPERIENCE</h2>
204
+ <p class="text-xl text-gray-300 max-w-3xl mx-auto">More than just a car - it's a way of life.</p>
205
+ </div>
206
+
207
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
208
+ <div class="bg-gray-800 p-8 rounded-lg text-center" data-aos="fade-up" data-aos-delay="100">
209
+ <div class="bg-bmw-blue rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-6">
210
+ <i data-feather="calendar" class="text-white w-8 h-8"></i>
211
+ </div>
212
+ <h3 class="text-xl font-bold mb-4">Book a Test Drive</h3>
213
+ <p class="text-gray-300 mb-6">Experience the thrill of driving a BMW at your nearest dealership.</p>
214
+ <button class="text-bmw-blue hover:text-blue-400 font-medium">Schedule Now</button>
215
+ </div>
216
+
217
+ <div class="bg-gray-800 p-8 rounded-lg text-center" data-aos="fade-up" data-aos-delay="200">
218
+ <div class="bg-bmw-blue rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-6">
219
+ <i data-feather="tool" class="text-white w-8 h-8"></i>
220
+ </div>
221
+ <h3 class="text-xl font-bold mb-4">Service & Support</h3>
222
+ <p class="text-gray-300 mb-6">Premium service and maintenance to keep your BMW in perfect condition.</p>
223
+ <button class="text-bmw-blue hover:text-blue-400 font-medium">Learn More</button>
224
+ </div>
225
+
226
+ <div class="bg-gray-800 p-8 rounded-lg text-center" data-aos="fade-up" data-aos-delay="300">
227
+ <div class="bg-bmw-blue rounded-full w-16 h-16 flex items-center justify-center mx-auto mb-6">
228
+ <i data-feather="credit-card" class="text-white w-8 h-8"></i>
229
+ </div>
230
+ <h3 class="text-xl font-bold mb-4">Financial Services</h3>
231
+ <p class="text-gray-300 mb-6">Flexible financing and leasing options tailored to your needs.</p>
232
+ <button class="text-bmw-blue hover:text-blue-400 font-medium">Explore Options</button>
233
+ </div>
234
+ </div>
235
+ </div>
236
+ </section>
237
+
238
+ <!-- Newsletter Section -->
239
+ <section id="shop" class="py-20 bg-white">
240
+ <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 text-center" data-aos="fade-up">
241
+ <h2 class="text-3xl md:text-4xl font-bold text-gray-900 mb-6">STAY CONNECTED</h2>
242
+ <p class="text-xl text-gray-600 mb-8">Subscribe to our newsletter for the latest news, offers, and BMW experiences.</p>
243
+ <div class="flex flex-col sm:flex-row gap-4 max-w-md mx-auto">
244
+ <input type="email" placeholder="Your email address" class="flex-grow px-4 py-3 border border-gray-300 rounded-full focus:outline-none focus:ring-2 focus:ring-bmw-blue focus:border-transparent">
245
+ <button class="bg-bmw-blue hover:bg-blue-700 text-white font-bold py-3 px-8 rounded-full transition duration-300 whitespace-nowrap">
246
+ Subscribe
247
+ </button>
248
+ </div>
249
+ </div>
250
+ </section>
251
+
252
+ <!-- Footer -->
253
+ <footer class="bg-gray-900 text-white pt-16 pb-8">
254
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
255
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-8 mb-12">
256
+ <div>
257
+ <h3 class="text-lg font-bold mb-4">Models</h3>
258
+ <ul class="space-y-2">
259
+ <li><a href="#" class="text-gray-400 hover:text-white">All Models</a></li>
260
+ <li><a href="#" class="text-gray-400 hover:text-white">Electric Vehicles</a></li>
261
+ <li><a href="#" class="text-gray-400 hover:text-white">Plug-in Hybrids</a></li>
262
+ <li><a href="#" class="text-gray-400 hover:text-white">M Models</a></li>
263
+ </ul>
264
+ </div>
265
+ <div>
266
+ <h3 class="text-lg font-bold mb-4">Shopping</h3>
267
+ <ul class="space-y-2">
268
+ <li><a href="#" class="text-gray-400 hover:text-white">Build Your Own</a></li>
269
+ <li><a href="#" class="text-gray-400 hover:text-white">Search Inventory</a></li>
270
+ <li><a href="#" class="text-gray-400 hover:text-white">Current Offers</a></li>
271
+ <li><a href="#" class="text-gray-400 hover:text-white">Certified Pre-Owned</a></li>
272
+ </ul>
273
+ </div>
274
+ <div>
275
+ <h3 class="text-lg font-bold mb-4">Support</h3>
276
+ <ul class="space-y-2">
277
+ <li><a href="#" class="text-gray-400 hover:text-white">Contact Us</a></li>
278
+ <li><a href="#" class="text-gray-400 hover:text-white">Find a Dealer</a></li>
279
+ <li><a href="#" class="text-gray-400 hover:text-white">Service & Parts</a></li>
280
+ <li><a href="#" class="text-gray-400 hover:text-white">Roadside Assistance</a></li>
281
+ </ul>
282
+ </div>
283
+ <div>
284
+ <h3 class="text-lg font-bold mb-4">Company</h3>
285
+ <ul class="space-y-2">
286
+ <li><a href="#" class="text-gray-400 hover:text-white">About BMW</a></li>
287
+ <li><a href="#" class="text-gray-400 hover:text-white">Careers</a></li>
288
+ <li><a href="#" class="text-gray-400 hover:text-white">Sustainability</a></li>
289
+ <li><a href="#" class="text-gray-400 hover:text-white">Press</a></li>
290
+ </ul>
291
+ </div>
292
+ </div>
293
+
294
+ <div class="border-t border-gray-800 pt-8 flex flex-col md:flex-row justify-between items-center">
295
+ <div class="flex items-center mb-4 md:mb-0">
296
+ <img class="h-8 w-auto mr-4" src="https://www.bmw.com/etc.clientlibs/ds2-webcomponents/clientlibs/clientlib/resources/img/BMW_White_Logo.svg" alt="BMW Logo">
297
+ <span class="text-gray-400">© 2023 BMW of North America, LLC</span>
298
+ </div>
299
+ <div class="flex space-x-6">
300
+ <a href="#" class="text-gray-400 hover:text-white">
301
+ <i data-feather="facebook"></i>
302
+ </a>
303
+ <a href="#" class="text-gray-400 hover:text-white">
304
+ <i data-feather="twitter"></i>
305
+ </a>
306
+ <a href="#" class="text-gray-400 hover:text-white">
307
+ <i data-feather="instagram"></i>
308
+ </a>
309
+ <a href="#" class="text-gray-400 hover:text-white">
310
+ <i data-feather="youtube"></i>
311
+ </a>
312
+ </div>
313
+ </div>
314
+ </div>
315
+ </footer>
316
+
317
+ <script>
318
+ AOS.init({
319
+ duration: 800,
320
+ easing: 'ease-in-out',
321
+ once: true
322
+ });
323
+
324
+ feather.replace();
325
+
326
+ // Mobile menu toggle
327
+ const mobileMenuButton = document.querySelector('button[aria-controls="mobile-menu"]');
328
+ const mobileMenu = document.getElementById('mobile-menu');
329
+
330
+ mobileMenuButton.addEventListener('click', () => {
331
+ mobileMenu.classList.toggle('hidden');
332
+ });
333
+
334
+ // Vanta.js background
335
+ VANTA.GLOBE({
336
+ el: "#vanta-bg",
337
+ mouseControls: true,
338
+ touchControls: true,
339
+ gyroControls: false,
340
+ minHeight: 200.00,
341
+ minWidth: 200.00,
342
+ scale: 1.00,
343
+ scaleMobile: 1.00,
344
+ color: 0x0066b1,
345
+ backgroundColor: 0x0,
346
+ size: 0.8
347
+ });
348
+ </script>
349
+ </body>
350
  </html>
prompts.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ create a bmw website
2
+ navbar does not work on clincking