Daskstyles commited on
Commit
df9c8a3
·
verified ·
1 Parent(s): 80e711d

Create a travel blog with full-width destination photos, travel stories grid, interactive world map showing visited places, travel tips section, gear recommendations, and subscription form.

Browse files
Files changed (6) hide show
  1. README.md +8 -5
  2. components/footer.js +153 -0
  3. components/navbar.js +135 -0
  4. index.html +217 -19
  5. script.js +144 -0
  6. style.css +17 -19
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Wanderlust Chronicles
3
- emoji: 🐢
4
- colorFrom: yellow
5
- colorTo: yellow
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: WanderLust Chronicles ✈️
3
+ colorFrom: gray
4
+ colorTo: pink
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://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background-color: #0f172a;
8
+ color: #e2e8f0;
9
+ padding: 4rem 2rem;
10
+ }
11
+ .footer-container {
12
+ max-width: 1200px;
13
+ margin: 0 auto;
14
+ display: grid;
15
+ grid-template-columns: repeat(1, 1fr);
16
+ gap: 3rem;
17
+ }
18
+ .footer-logo {
19
+ font-size: 1.5rem;
20
+ font-weight: 700;
21
+ display: flex;
22
+ align-items: center;
23
+ gap: 0.5rem;
24
+ margin-bottom: 1rem;
25
+ }
26
+ .footer-logo-icon {
27
+ color: #0ea5e9;
28
+ }
29
+ .footer-description {
30
+ color: #94a3b8;
31
+ margin-bottom: 2rem;
32
+ max-width: 300px;
33
+ }
34
+ .footer-links {
35
+ display: grid;
36
+ grid-template-columns: repeat(2, 1fr);
37
+ gap: 2rem;
38
+ }
39
+ .footer-column h3 {
40
+ font-size: 1.125rem;
41
+ font-weight: 600;
42
+ margin-bottom: 1.25rem;
43
+ color: white;
44
+ }
45
+ .footer-column ul {
46
+ list-style: none;
47
+ margin: 0;
48
+ padding: 0;
49
+ display: flex;
50
+ flex-direction: column;
51
+ gap: 0.75rem;
52
+ }
53
+ .footer-column a {
54
+ color: #94a3b8;
55
+ text-decoration: none;
56
+ transition: color 0.2s;
57
+ display: flex;
58
+ align-items: center;
59
+ gap: 0.5rem;
60
+ }
61
+ .footer-column a:hover {
62
+ color: #0ea5e9;
63
+ }
64
+ .footer-social {
65
+ display: flex;
66
+ gap: 1rem;
67
+ margin-top: 1.5rem;
68
+ }
69
+ .social-icon {
70
+ width: 2.5rem;
71
+ height: 2.5rem;
72
+ border-radius: 50%;
73
+ background-color: #1e293b;
74
+ display: flex;
75
+ align-items: center;
76
+ justify-content: center;
77
+ transition: background-color 0.2s;
78
+ }
79
+ .social-icon:hover {
80
+ background-color: #0ea5e9;
81
+ }
82
+ .footer-bottom {
83
+ border-top: 1px solid #1e293b;
84
+ padding-top: 2rem;
85
+ margin-top: 3rem;
86
+ text-align: center;
87
+ color: #64748b;
88
+ font-size: 0.875rem;
89
+ }
90
+ @media (min-width: 768px) {
91
+ .footer-container {
92
+ grid-template-columns: repeat(3, 1fr);
93
+ }
94
+ .footer-links {
95
+ grid-template-columns: repeat(3, 1fr);
96
+ }
97
+ }
98
+ </style>
99
+ <footer>
100
+ <div class="footer-container">
101
+ <div>
102
+ <div class="footer-logo">
103
+ <i data-feather="compass" class="footer-logo-icon"></i>
104
+ WanderLust
105
+ </div>
106
+ <p class="footer-description">
107
+ Sharing travel stories and tips to inspire your next adventure around the world.
108
+ </p>
109
+ <div class="footer-social">
110
+ <a href="#" class="social-icon" aria-label="Instagram">
111
+ <i data-feather="instagram"></i>
112
+ </a>
113
+ <a href="#" class="social-icon" aria-label="Twitter">
114
+ <i data-feather="twitter"></i>
115
+ </a>
116
+ <a href="#" class="social-icon" aria-label="YouTube">
117
+ <i data-feather="youtube"></i>
118
+ </a>
119
+ <a href="#" class="social-icon" aria-label="Pinterest">
120
+ <i data-feather="pinterest"></i>
121
+ </a>
122
+ </div>
123
+ </div>
124
+ <div class="footer-links">
125
+ <div class="footer-column">
126
+ <h3>Explore</h3>
127
+ <ul>
128
+ <li><a href="#stories"><i data-feather="chevron-right"></i> Stories</a></li>
129
+ <li><a href="#map"><i data-feather="chevron-right"></i> Destinations</a></li>
130
+ <li><a href="#tips"><i data-feather="chevron-right"></i> Travel Tips</a></li>
131
+ <li><a href="#gear"><i data-feather="chevron-right"></i> Gear Guide</a></li>
132
+ </ul>
133
+ </div>
134
+ <div class="footer-column">
135
+ <h3>About</h3>
136
+ <ul>
137
+ <li><a href="#"><i data-feather="chevron-right"></i> About Me</a></li>
138
+ <li><a href="#"><i data-feather="chevron-right"></i> Contact</a></li>
139
+ <li><a href="#"><i data-feather="chevron-right"></i> FAQ</a></li>
140
+ <li><a href="#"><i data-feather="chevron-right"></i> Privacy Policy</a></li>
141
+ </ul>
142
+ </div>
143
+ </div>
144
+ </div>
145
+ <div class="footer-bottom">
146
+ <p>&copy; ${new Date().getFullYear()} WanderLust Chronicles. All rights reserved.</p>
147
+ </div>
148
+ </footer>
149
+ `;
150
+ }
151
+ }
152
+
153
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ nav {
7
+ background-color: rgba(15, 23, 42, 0.8);
8
+ backdrop-filter: blur(8px);
9
+ padding: 1rem 2rem;
10
+ display: flex;
11
+ justify-content: space-between;
12
+ align-items: center;
13
+ position: fixed;
14
+ top: 0;
15
+ left: 0;
16
+ right: 0;
17
+ z-index: 50;
18
+ border-bottom: 1px solid rgba(71, 85, 105, 0.3);
19
+ }
20
+ .nav-container {
21
+ width: 100%;
22
+ max-width: 1200px;
23
+ margin: 0 auto;
24
+ display: flex;
25
+ justify-content: space-between;
26
+ align-items: center;
27
+ }
28
+ .logo {
29
+ color: white;
30
+ font-weight: 700;
31
+ font-size: 1.25rem;
32
+ display: flex;
33
+ align-items: center;
34
+ gap: 0.5rem;
35
+ }
36
+ .logo-icon {
37
+ color: #0ea5e9;
38
+ }
39
+ ul {
40
+ display: flex;
41
+ gap: 2rem;
42
+ list-style: none;
43
+ margin: 0;
44
+ padding: 0;
45
+ align-items: center;
46
+ }
47
+ a {
48
+ color: white;
49
+ text-decoration: none;
50
+ font-weight: 500;
51
+ transition: color 0.2s;
52
+ display: flex;
53
+ align-items: center;
54
+ gap: 0.5rem;
55
+ }
56
+ a:hover {
57
+ color: #0ea5e9;
58
+ }
59
+ .theme-toggle {
60
+ background: none;
61
+ border: none;
62
+ color: white;
63
+ cursor: pointer;
64
+ padding: 0.5rem;
65
+ border-radius: 50%;
66
+ transition: background-color 0.2s;
67
+ }
68
+ .theme-toggle:hover {
69
+ background-color: rgba(255, 255, 255, 0.1);
70
+ }
71
+ .mobile-menu-button {
72
+ display: none;
73
+ background: none;
74
+ border: none;
75
+ color: white;
76
+ cursor: pointer;
77
+ }
78
+ @media (max-width: 768px) {
79
+ ul {
80
+ display: none;
81
+ }
82
+ .mobile-menu-button {
83
+ display: block;
84
+ }
85
+ }
86
+ </style>
87
+ <nav>
88
+ <div class="nav-container">
89
+ <a href="/" class="logo">
90
+ <i data-feather="compass" class="logo-icon"></i>
91
+ WanderLust
92
+ </a>
93
+ <ul>
94
+ <li><a href="#stories"><i data-feather="book"></i> Stories</a></li>
95
+ <li><a href="#map"><i data-feather="map"></i> Map</a></li>
96
+ <li><a href="#tips"><i data-feather="info"></i> Tips</a></li>
97
+ <li><a href="#gear"><i data-feather="package"></i> Gear</a></li>
98
+ <li>
99
+ <button class="theme-toggle" id="theme-toggle" aria-label="Toggle dark mode">
100
+ <i data-feather="moon" id="theme-icon"></i>
101
+ </button>
102
+ </li>
103
+ </ul>
104
+ <button class="mobile-menu-button" aria-label="Menu">
105
+ <i data-feather="menu"></i>
106
+ </button>
107
+ </div>
108
+ </nav>
109
+ `;
110
+
111
+ // Add event listener for theme toggle
112
+ const themeToggle = this.shadowRoot.getElementById('theme-toggle');
113
+ if (themeToggle) {
114
+ themeToggle.addEventListener('click', this.toggleTheme);
115
+ }
116
+ }
117
+
118
+ toggleTheme() {
119
+ const html = document.documentElement;
120
+ html.classList.toggle('dark');
121
+
122
+ // Store preference in localStorage
123
+ const isDark = html.classList.contains('dark');
124
+ localStorage.setItem('darkMode', isDark);
125
+
126
+ // Update button icon
127
+ const icon = this.shadowRoot.getElementById('theme-icon');
128
+ if (icon) {
129
+ icon.setAttribute('data-feather', isDark ? 'sun' : 'moon');
130
+ feather.replace();
131
+ }
132
+ }
133
+ }
134
+
135
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,217 @@
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" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>WanderLust Chronicles | Travel Blog</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
10
+ <script src="https://unpkg.com/feather-icons"></script>
11
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
12
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
13
+ <script>
14
+ tailwind.config = {
15
+ darkMode: 'class',
16
+ theme: {
17
+ extend: {
18
+ colors: {
19
+ primary: {
20
+ 500: '#0ea5e9',
21
+ },
22
+ secondary: {
23
+ 500: '#737373',
24
+ }
25
+ }
26
+ }
27
+ }
28
+ }
29
+ </script>
30
+ </head>
31
+ <body class="bg-neutral-900 text-neutral-100 min-h-screen flex flex-col">
32
+ <custom-navbar></custom-navbar>
33
+
34
+ <!-- Hero Section -->
35
+ <section id="hero" class="relative h-screen w-full overflow-hidden">
36
+ <div id="vanta-globe" class="absolute inset-0 w-full h-full"></div>
37
+ <div class="absolute inset-0 bg-black/50 flex items-center justify-center">
38
+ <div class="text-center px-4">
39
+ <h1 class="text-5xl md:text-7xl font-bold mb-6 text-primary-500">WanderLust Chronicles</h1>
40
+ <p class="text-xl md:text-2xl mb-8 max-w-2xl mx-auto">Discover breathtaking destinations and inspiring travel stories from around the globe</p>
41
+ <a href="#stories" class="inline-flex items-center px-8 py-3 bg-primary-500 hover:bg-primary-600 rounded-full font-medium transition-colors">
42
+ Explore Stories
43
+ <i data-feather="arrow-down" class="ml-2"></i>
44
+ </a>
45
+ </div>
46
+ </div>
47
+ </section>
48
+
49
+ <!-- Featured Destinations -->
50
+ <section class="py-16 bg-neutral-800">
51
+ <div class="container mx-auto px-4">
52
+ <h2 class="text-3xl font-bold text-center mb-12">Featured Destinations</h2>
53
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
54
+ <div class="relative group overflow-hidden rounded-xl h-96">
55
+ <img src="http://static.photos/travel/1200x630/1" alt="Santorini" class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110">
56
+ <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-transparent flex flex-col justify-end p-6">
57
+ <h3 class="text-2xl font-bold text-white">Santorini, Greece</h3>
58
+ <p class="text-neutral-300 mt-2">Whitewashed buildings with blue domes overlooking the Aegean Sea</p>
59
+ </div>
60
+ </div>
61
+ <div class="relative group overflow-hidden rounded-xl h-96">
62
+ <img src="http://static.photos/travel/1200x630/2" alt="Kyoto" class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110">
63
+ <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-transparent flex flex-col justify-end p-6">
64
+ <h3 class="text-2xl font-bold text-white">Kyoto, Japan</h3>
65
+ <p class="text-neutral-300 mt-2">Ancient temples and cherry blossoms in the cultural heart of Japan</p>
66
+ </div>
67
+ </div>
68
+ <div class="relative group overflow-hidden rounded-xl h-96">
69
+ <img src="http://static.photos/travel/1200x630/3" alt="Patagonia" class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110">
70
+ <div class="absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-transparent flex flex-col justify-end p-6">
71
+ <h3 class="text-2xl font-bold text-white">Patagonia, Chile</h3>
72
+ <p class="text-neutral-300 mt-2">Towering mountains, glaciers and pristine wilderness at the end of the world</p>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </section>
78
+
79
+ <!-- Travel Stories -->
80
+ <section id="stories" class="py-16 bg-neutral-900">
81
+ <div class="container mx-auto px-4">
82
+ <h2 class="text-3xl font-bold text-center mb-12">Latest Travel Stories</h2>
83
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
84
+ <!-- Story cards will be populated by JavaScript -->
85
+ <div id="stories-container"></div>
86
+ </div>
87
+ </div>
88
+ </section>
89
+
90
+ <!-- Interactive Map -->
91
+ <section class="py-16 bg-neutral-800">
92
+ <div class="container mx-auto px-4">
93
+ <h2 class="text-3xl font-bold text-center mb-12">Where I've Been</h2>
94
+ <div class="relative bg-neutral-700 rounded-xl overflow-hidden h-96">
95
+ <div id="map" class="w-full h-full"></div>
96
+ <div class="absolute bottom-4 left-4 bg-black/70 text-white p-3 rounded-lg">
97
+ <p>Click on markers to see travel stories</p>
98
+ </div>
99
+ </div>
100
+ </div>
101
+ </section>
102
+
103
+ <!-- Travel Tips -->
104
+ <section class="py-16 bg-neutral-900">
105
+ <div class="container mx-auto px-4">
106
+ <h2 class="text-3xl font-bold text-center mb-12">Essential Travel Tips</h2>
107
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
108
+ <div class="bg-neutral-800 p-6 rounded-xl hover:bg-neutral-700 transition-colors">
109
+ <i data-feather="compass" class="text-primary-500 w-8 h-8 mb-4"></i>
110
+ <h3 class="text-xl font-bold mb-2">Navigation</h3>
111
+ <p class="text-neutral-400">Always download offline maps and learn basic local phrases for directions.</p>
112
+ </div>
113
+ <div class="bg-neutral-800 p-6 rounded-xl hover:bg-neutral-700 transition-colors">
114
+ <i data-feather="dollar-sign" class="text-primary-500 w-8 h-8 mb-4"></i>
115
+ <h3 class="text-xl font-bold mb-2">Budgeting</h3>
116
+ <p class="text-neutral-400">Use local ATMs for best exchange rates and always carry small bills.</p>
117
+ </div>
118
+ <div class="bg-neutral-800 p-6 rounded-xl hover:bg-neutral-700 transition-colors">
119
+ <i data-feather="shield" class="text-primary-500 w-8 h-8 mb-4"></i>
120
+ <h3 class="text-xl font-bold mb-2">Safety</h3>
121
+ <p class="text-neutral-400">Keep copies of important documents and be aware of common scams.</p>
122
+ </div>
123
+ <div class="bg-neutral-800 p-6 rounded-xl hover:bg-neutral-700 transition-colors">
124
+ <i data-feather="heart" class="text-primary-500 w-8 h-8 mb-4"></i>
125
+ <h3 class="text-xl font-bold mb-2">Health</h3>
126
+ <p class="text-neutral-400">Research required vaccinations and pack a basic medical kit.</p>
127
+ </div>
128
+ </div>
129
+ </div>
130
+ </section>
131
+
132
+ <!-- Gear Recommendations -->
133
+ <section class="py-16 bg-neutral-800">
134
+ <div class="container mx-auto px-4">
135
+ <h2 class="text-3xl font-bold text-center mb-12">Must-Have Travel Gear</h2>
136
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
137
+ <div class="bg-neutral-700 rounded-xl overflow-hidden hover:shadow-lg transition-shadow">
138
+ <img src="http://static.photos/technology/640x360/1" alt="Travel Backpack" class="w-full h-48 object-cover">
139
+ <div class="p-6">
140
+ <h3 class="text-xl font-bold mb-2">Ultralight Backpack</h3>
141
+ <p class="text-neutral-400 mb-4">The perfect carry-on sized backpack with anti-theft features.</p>
142
+ <a href="#" class="text-primary-500 hover:text-primary-400 font-medium inline-flex items-center">
143
+ View Details
144
+ <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
145
+ </a>
146
+ </div>
147
+ </div>
148
+ <div class="bg-neutral-700 rounded-xl overflow-hidden hover:shadow-lg transition-shadow">
149
+ <img src="http://static.photos/technology/640x360/2" alt="Travel Adapter" class="w-full h-48 object-cover">
150
+ <div class="p-6">
151
+ <h3 class="text-xl font-bold mb-2">Universal Adapter</h3>
152
+ <p class="text-neutral-400 mb-4">Works in 150+ countries with multiple USB ports.</p>
153
+ <a href="#" class="text-primary-500 hover:text-primary-400 font-medium inline-flex items-center">
154
+ View Details
155
+ <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
156
+ </a>
157
+ </div>
158
+ </div>
159
+ <div class="bg-neutral-700 rounded-xl overflow-hidden hover:shadow-lg transition-shadow">
160
+ <img src="http://static.photos/technology/640x360/3" alt="Packing Cubes" class="w-full h-48 object-cover">
161
+ <div class="p-6">
162
+ <h3 class="text-xl font-bold mb-2">Packing Cubes</h3>
163
+ <p class="text-neutral-400 mb-4">Keep your luggage organized and maximize space.</p>
164
+ <a href="#" class="text-primary-500 hover:text-primary-400 font-medium inline-flex items-center">
165
+ View Details
166
+ <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
167
+ </a>
168
+ </div>
169
+ </div>
170
+ </div>
171
+ </div>
172
+ </section>
173
+
174
+ <!-- Newsletter -->
175
+ <section class="py-16 bg-gradient-to-r from-primary-700 to-primary-900">
176
+ <div class="container mx-auto px-4">
177
+ <div class="max-w-3xl mx-auto text-center">
178
+ <h2 class="text-3xl font-bold mb-4">Get Travel Inspiration</h2>
179
+ <p class="text-primary-200 mb-8">Subscribe to our newsletter for weekly travel stories, tips, and exclusive content.</p>
180
+ <form class="flex flex-col sm:flex-row gap-4 max-w-lg mx-auto">
181
+ <input type="email" placeholder="Your email address" class="flex-grow px-4 py-3 rounded-lg bg-white/10 text-white placeholder-primary-300 focus:outline-none focus:ring-2 focus:ring-primary-500">
182
+ <button type="submit" class="px-6 py-3 bg-white text-primary-800 font-medium rounded-lg hover:bg-primary-100 transition-colors">
183
+ Subscribe
184
+ </button>
185
+ </form>
186
+ </div>
187
+ </div>
188
+ </section>
189
+
190
+ <custom-footer></custom-footer>
191
+
192
+ <!-- Scripts -->
193
+ <script src="components/navbar.js"></script>
194
+ <script src="components/footer.js"></script>
195
+ <script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
196
+ <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
197
+ <script src="script.js"></script>
198
+ <script>
199
+ feather.replace();
200
+
201
+ // Initialize Vanta.js globe
202
+ VANTA.GLOBE({
203
+ el: "#vanta-globe",
204
+ mouseControls: true,
205
+ touchControls: true,
206
+ gyroControls: false,
207
+ minHeight: 200.00,
208
+ minWidth: 200.00,
209
+ scale: 1.00,
210
+ scaleMobile: 1.00,
211
+ color: 0x0ea5e9,
212
+ backgroundColor: 0x0
213
+ });
214
+ </script>
215
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
216
+ </body>
217
+ </html>
script.js ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Main JavaScript for the travel blog
2
+ document.addEventListener('DOMContentLoaded', function() {
3
+ // Initialize map
4
+ initMap();
5
+
6
+ // Load travel stories
7
+ loadStories();
8
+
9
+ // Theme toggle functionality
10
+ const themeToggle = document.getElementById('theme-toggle');
11
+ if (themeToggle) {
12
+ themeToggle.addEventListener('click', toggleTheme);
13
+ }
14
+ });
15
+
16
+ function initMap() {
17
+ const map = L.map('map').setView([20, 0], 2);
18
+
19
+ // Add marker clusters
20
+ const markers = L.markerClusterGroup();
21
+
22
+ // Sample visited locations
23
+ const locations = [
24
+ { lat: 36.2048, lng: 138.2529, title: 'Japan', story: 'Explored ancient temples in Kyoto' },
25
+ { lat: 36.3932, lng: 25.4615, title: 'Santorini', story: 'Sunset views in Oia' },
26
+ { lat: 40.7128, lng: -74.0060, title: 'New York', story: 'Concrete jungle where dreams are made' },
27
+ { lat: -13.1631, lng: -72.5450, title: 'Machu Picchu', story: 'Hiked the Inca Trail to the lost city' },
28
+ { lat: -22.9519, lng: -43.2105, title: 'Rio de Janeiro', story: 'Christ the Redeemer and Copacabana' },
29
+ { lat: 51.5074, lng: -0.1278, title: 'London', story: 'Afternoon tea and Big Ben' },
30
+ { lat: 48.8566, lng: 2.3522, title: 'Paris', story: 'Croissants and the Eiffel Tower' },
31
+ { lat: -33.8688, lng: 151.2093, title: 'Sydney', story: 'Opera House and Bondi Beach' }
32
+ ];
33
+
34
+ locations.forEach(loc => {
35
+ const marker = L.marker([loc.lat, loc.lng]).bindPopup(`
36
+ <div class="text-neutral-900">
37
+ <h3 class="font-bold text-lg">${loc.title}</h3>
38
+ <p class="text-sm">${loc.story}</p>
39
+ <a href="#" class="text-primary-500 text-sm hover:underline">Read story</a>
40
+ </div>
41
+ `);
42
+ markers.addLayer(marker);
43
+ });
44
+
45
+ map.addLayer(markers);
46
+
47
+ // Disable default map tiles since we're using a custom background
48
+ map.attributionControl.setPrefix('');
49
+ }
50
+
51
+ function loadStories() {
52
+ const storiesContainer = document.getElementById('stories-container');
53
+
54
+ if (!storiesContainer) return;
55
+
56
+ const stories = [
57
+ {
58
+ title: "Hiking the Inca Trail",
59
+ excerpt: "My 4-day journey to Machu Picchu through ancient paths and stunning scenery.",
60
+ location: "Peru",
61
+ date: "May 2023",
62
+ image: "http://static.photos/travel/640x360/4"
63
+ },
64
+ {
65
+ title: "Island Hopping in Greece",
66
+ excerpt: "Discovering the hidden gems of the Cyclades beyond Santorini and Mykonos.",
67
+ location: "Greece",
68
+ date: "August 2022",
69
+ image: "http://static.photos/travel/640x360/5"
70
+ },
71
+ {
72
+ title: "Tokyo's Hidden Izakayas",
73
+ excerpt: "An insider's guide to the best small bars and local drinking spots in Tokyo.",
74
+ location: "Japan",
75
+ date: "November 2022",
76
+ image: "http://static.photos/travel/640x360/6"
77
+ },
78
+ {
79
+ title: "Road Tripping Iceland's Ring Road",
80
+ excerpt: "8 days of waterfalls, glaciers, and midnight sun around Iceland's Route 1.",
81
+ location: "Iceland",
82
+ date: "June 2021",
83
+ image: "http://static.photos/travel/640x360/7"
84
+ },
85
+ {
86
+ title: "Safari in the Serengeti",
87
+ excerpt: "Witnessing the Great Migration and staying in luxury tented camps.",
88
+ location: "Tanzania",
89
+ date: "September 2021",
90
+ image: "http://static.photos/travel/640x360/8"
91
+ },
92
+ {
93
+ title: "Culinary Tour of Vietnam",
94
+ excerpt: "From pho in Hanoi to banh mi in Saigon - a food lover's paradise.",
95
+ location: "Vietnam",
96
+ date: "March 2022",
97
+ image: "http://static.photos/travel/640x360/9"
98
+ }
99
+ ];
100
+
101
+ let html = '';
102
+ stories.forEach(story => {
103
+ html += `
104
+ <div class="bg-neutral-800 rounded-xl overflow-hidden hover:shadow-lg transition-shadow">
105
+ <div class="relative h-48 overflow-hidden">
106
+ <img src="${story.image}" alt="${story.title}" class="w-full h-full object-cover">
107
+ <div class="absolute top-4 right-4 bg-black/70 text-white px-3 py-1 rounded-full text-sm">
108
+ ${story.location}
109
+ </div>
110
+ </div>
111
+ <div class="p-6">
112
+ <div class="flex justify-between items-start mb-2">
113
+ <h3 class="text-xl font-bold">${story.title}</h3>
114
+ <span class="text-sm text-neutral-400">${story.date}</span>
115
+ </div>
116
+ <p class="text-neutral-400 mb-4">${story.excerpt}</p>
117
+ <a href="#" class="text-primary-500 hover:text-primary-400 font-medium inline-flex items-center">
118
+ Read More
119
+ <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
120
+ </a>
121
+ </div>
122
+ </div>
123
+ `;
124
+ });
125
+
126
+ storiesContainer.innerHTML = html;
127
+ feather.replace();
128
+ }
129
+
130
+ function toggleTheme() {
131
+ const html = document.documentElement;
132
+ html.classList.toggle('dark');
133
+
134
+ // Store preference in localStorage
135
+ const isDark = html.classList.contains('dark');
136
+ localStorage.setItem('darkMode', isDark);
137
+
138
+ // Update button icon
139
+ const icon = document.getElementById('theme-icon');
140
+ if (icon) {
141
+ icon.setAttribute('data-feather', isDark ? 'sun' : 'moon');
142
+ feather.replace();
143
+ }
144
+ }
style.css CHANGED
@@ -1,28 +1,26 @@
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
 
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
1
+ /* Custom styles for the travel blog */
2
+ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
3
+
4
  body {
5
+ font-family: 'Inter', sans-serif;
6
+ scroll-behavior: smooth;
7
  }
8
 
9
+ #map {
10
+ background-color: #1e293b;
11
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 800 800"><rect width="800" height="800" fill="%231e293b"/><path d="M0 0h800v800H0z" fill="none"/><path d="M400 0v800M0 400h800" stroke="%23374756" stroke-width="1"/></svg>');
12
+ background-size: 40px 40px;
13
  }
14
 
15
+ .leaflet-container {
16
+ background-color: #1e293b !important;
 
 
 
17
  }
18
 
19
+ .leaflet-popup-content-wrapper, .leaflet-popup-tip {
20
+ background-color: #334155 !important;
21
+ color: #f8fafc !important;
 
 
 
22
  }
23
 
24
+ .leaflet-container a {
25
+ color: #0ea5e9 !important;
26
+ }