Spaces:
Running
Running
Review revise and update.
Browse files- README.md +8 -5
- components/footer.js +173 -0
- components/header.js +132 -0
- index.html +151 -19
- script.js +47 -0
- style.css +54 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: EcoGrove Adventures
|
| 3 |
+
colorFrom: pink
|
| 4 |
+
colorTo: red
|
| 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,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
.footer {
|
| 11 |
+
background-color: #1f2937;
|
| 12 |
+
border-top: 1px solid #374151;
|
| 13 |
+
padding: 3rem 1rem 2rem;
|
| 14 |
+
margin-top: 4rem;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
.footer-container {
|
| 18 |
+
max-width: 1280px;
|
| 19 |
+
margin: 0 auto;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.footer-grid {
|
| 23 |
+
display: grid;
|
| 24 |
+
grid-template-columns: repeat(1, 1fr);
|
| 25 |
+
gap: 2rem;
|
| 26 |
+
margin-bottom: 3rem;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
@media (min-width: 768px) {
|
| 30 |
+
.footer-grid {
|
| 31 |
+
grid-template-columns: repeat(4, 1fr);
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
.footer-column h3 {
|
| 36 |
+
font-size: 1.25rem;
|
| 37 |
+
font-weight: 600;
|
| 38 |
+
margin-bottom: 1.5rem;
|
| 39 |
+
color: #10b981;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.footer-column ul {
|
| 43 |
+
list-style: none;
|
| 44 |
+
padding: 0;
|
| 45 |
+
margin: 0;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.footer-column ul li {
|
| 49 |
+
margin-bottom: 0.75rem;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.footer-column ul li a {
|
| 53 |
+
color: #9ca3af;
|
| 54 |
+
text-decoration: none;
|
| 55 |
+
transition: color 0.3s;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
.footer-column ul li a:hover {
|
| 59 |
+
color: #10b981;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
.social-links {
|
| 63 |
+
display: flex;
|
| 64 |
+
gap: 1rem;
|
| 65 |
+
margin-top: 1rem;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
.social-link {
|
| 69 |
+
display: flex;
|
| 70 |
+
align-items: center;
|
| 71 |
+
justify-content: center;
|
| 72 |
+
width: 40px;
|
| 73 |
+
height: 40px;
|
| 74 |
+
border-radius: 50%;
|
| 75 |
+
background-color: #374151;
|
| 76 |
+
color: #d1d5db;
|
| 77 |
+
transition: all 0.3s;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
.social-link:hover {
|
| 81 |
+
background-color: #10b981;
|
| 82 |
+
color: white;
|
| 83 |
+
transform: translateY(-3px);
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.copyright {
|
| 87 |
+
border-top: 1px solid #374151;
|
| 88 |
+
padding-top: 2rem;
|
| 89 |
+
text-align: center;
|
| 90 |
+
color: #9ca3af;
|
| 91 |
+
font-size: 0.875rem;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.feather {
|
| 95 |
+
width: 20px;
|
| 96 |
+
height: 20px;
|
| 97 |
+
}
|
| 98 |
+
</style>
|
| 99 |
+
|
| 100 |
+
<footer class="footer">
|
| 101 |
+
<div class="footer-container">
|
| 102 |
+
<div class="footer-grid">
|
| 103 |
+
<div class="footer-column">
|
| 104 |
+
<h3>EcoGrove</h3>
|
| 105 |
+
<p style="color: #d1d5db; margin-bottom: 1rem;">Sustainable adventures for conscious travelers. Explore the world while protecting it.</p>
|
| 106 |
+
<div class="social-links">
|
| 107 |
+
<a href="#" class="social-link">
|
| 108 |
+
<i data-feather="facebook"></i>
|
| 109 |
+
</a>
|
| 110 |
+
<a href="#" class="social-link">
|
| 111 |
+
<i data-feather="twitter"></i>
|
| 112 |
+
</a>
|
| 113 |
+
<a href="#" class="social-link">
|
| 114 |
+
<i data-feather="instagram"></i>
|
| 115 |
+
</a>
|
| 116 |
+
<a href="#" class="social-link">
|
| 117 |
+
<i data-feather="youtube"></i>
|
| 118 |
+
</a>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
|
| 122 |
+
<div class="footer-column">
|
| 123 |
+
<h3>Destinations</h3>
|
| 124 |
+
<ul>
|
| 125 |
+
<li><a href="#">Amazon Rainforest</a></li>
|
| 126 |
+
<li><a href="#">Himalayas</a></li>
|
| 127 |
+
<li><a href="#">Great Barrier Reef</a></li>
|
| 128 |
+
<li><a href="#">Sahara Desert</a></li>
|
| 129 |
+
<li><a href="#">Patagonia</a></li>
|
| 130 |
+
</ul>
|
| 131 |
+
</div>
|
| 132 |
+
|
| 133 |
+
<div class="footer-column">
|
| 134 |
+
<h3>Activities</h3>
|
| 135 |
+
<ul>
|
| 136 |
+
<li><a href="#">Wildlife Safaris</a></li>
|
| 137 |
+
<li><a href="#">Mountain Trekking</a></li>
|
| 138 |
+
<li><a href="#">Scuba Diving</a></li>
|
| 139 |
+
<li><a href="#">Cultural Tours</a></li>
|
| 140 |
+
<li><a href="#">Volunteer Programs</a></li>
|
| 141 |
+
</ul>
|
| 142 |
+
</div>
|
| 143 |
+
|
| 144 |
+
<div class="footer-column">
|
| 145 |
+
<h3>Contact Us</h3>
|
| 146 |
+
<ul>
|
| 147 |
+
<li style="color: #9ca3af; margin-bottom: 0.75rem;">123 Green Street, Eco City</li>
|
| 148 |
+
<li style="color: #9ca3af; margin-bottom: 0.75rem;">contact@ecogrove.com</li>
|
| 149 |
+
<li style="color: #9ca3af; margin-bottom: 0.75rem;">+1 (555) 123-4567</li>
|
| 150 |
+
</ul>
|
| 151 |
+
</div>
|
| 152 |
+
</div>
|
| 153 |
+
|
| 154 |
+
<div class="copyright">
|
| 155 |
+
<p>© 2023 EcoGrove Adventures. All rights reserved. | Committed to 150% carbon offset</p>
|
| 156 |
+
</div>
|
| 157 |
+
</div>
|
| 158 |
+
</footer>
|
| 159 |
+
`;
|
| 160 |
+
|
| 161 |
+
// Initialize feather icons
|
| 162 |
+
const script = document.createElement('script');
|
| 163 |
+
script.src = "https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js";
|
| 164 |
+
script.onload = () => {
|
| 165 |
+
if (this.shadowRoot) {
|
| 166 |
+
feather.replace();
|
| 167 |
+
}
|
| 168 |
+
};
|
| 169 |
+
this.shadowRoot.appendChild(script);
|
| 170 |
+
}
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
customElements.define('custom-footer', CustomFooter);
|
components/header.js
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomHeader extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
.header {
|
| 11 |
+
background-color: rgba(17, 24, 39, 0.9);
|
| 12 |
+
backdrop-filter: blur(10px);
|
| 13 |
+
border-bottom: 1px solid #374151;
|
| 14 |
+
position: sticky;
|
| 15 |
+
top: 0;
|
| 16 |
+
z-index: 50;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
.nav-container {
|
| 20 |
+
max-width: 1280px;
|
| 21 |
+
margin: 0 auto;
|
| 22 |
+
padding: 0 1rem;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
.nav {
|
| 26 |
+
display: flex;
|
| 27 |
+
justify-content: space-between;
|
| 28 |
+
align-items: center;
|
| 29 |
+
padding: 1rem 0;
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.logo {
|
| 33 |
+
font-size: 1.5rem;
|
| 34 |
+
font-weight: 700;
|
| 35 |
+
background: linear-gradient(to right, #10b981, #f97316);
|
| 36 |
+
-webkit-background-clip: text;
|
| 37 |
+
background-clip: text;
|
| 38 |
+
color: transparent;
|
| 39 |
+
text-decoration: none;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
.nav-links {
|
| 43 |
+
display: flex;
|
| 44 |
+
gap: 2rem;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.nav-link {
|
| 48 |
+
color: #d1d5db;
|
| 49 |
+
text-decoration: none;
|
| 50 |
+
font-weight: 500;
|
| 51 |
+
transition: color 0.3s;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
.nav-link:hover {
|
| 55 |
+
color: #10b981;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
.nav-button {
|
| 59 |
+
background-color: #10b981;
|
| 60 |
+
color: white;
|
| 61 |
+
border: none;
|
| 62 |
+
padding: 0.5rem 1.5rem;
|
| 63 |
+
border-radius: 9999px;
|
| 64 |
+
font-weight: 600;
|
| 65 |
+
cursor: pointer;
|
| 66 |
+
transition: background-color 0.3s;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.nav-button:hover {
|
| 70 |
+
background-color: #059669;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.mobile-menu-button {
|
| 74 |
+
display: none;
|
| 75 |
+
background: none;
|
| 76 |
+
border: none;
|
| 77 |
+
color: #d1d5db;
|
| 78 |
+
cursor: pointer;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
@media (max-width: 768px) {
|
| 82 |
+
.nav-links {
|
| 83 |
+
display: none;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.mobile-menu-button {
|
| 87 |
+
display: block;
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.feather {
|
| 92 |
+
width: 20px;
|
| 93 |
+
height: 20px;
|
| 94 |
+
}
|
| 95 |
+
</style>
|
| 96 |
+
|
| 97 |
+
<header class="header">
|
| 98 |
+
<div class="nav-container">
|
| 99 |
+
<nav class="nav">
|
| 100 |
+
<a href="#" class="logo">EcoGrove</a>
|
| 101 |
+
|
| 102 |
+
<div class="nav-links">
|
| 103 |
+
<a href="#" class="nav-link">Home</a>
|
| 104 |
+
<a href="#" class="nav-link">Tours</a>
|
| 105 |
+
<a href="#" class="nav-link">Destinations</a>
|
| 106 |
+
<a href="#" class="nav-link">About</a>
|
| 107 |
+
<a href="#" class="nav-link">Contact</a>
|
| 108 |
+
</div>
|
| 109 |
+
|
| 110 |
+
<button class="nav-button">Book Now</button>
|
| 111 |
+
|
| 112 |
+
<button class="mobile-menu-button">
|
| 113 |
+
<i data-feather="menu"></i>
|
| 114 |
+
</button>
|
| 115 |
+
</nav>
|
| 116 |
+
</div>
|
| 117 |
+
</header>
|
| 118 |
+
`;
|
| 119 |
+
|
| 120 |
+
// Initialize feather icons
|
| 121 |
+
const script = document.createElement('script');
|
| 122 |
+
script.src = "https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js";
|
| 123 |
+
script.onload = () => {
|
| 124 |
+
if (this.shadowRoot) {
|
| 125 |
+
feather.replace();
|
| 126 |
+
}
|
| 127 |
+
};
|
| 128 |
+
this.shadowRoot.appendChild(script);
|
| 129 |
+
}
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
customElements.define('custom-header', CustomHeader);
|
index.html
CHANGED
|
@@ -1,19 +1,151 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>EcoGrove Adventures</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 12 |
+
</head>
|
| 13 |
+
<body class="bg-gray-900 text-white">
|
| 14 |
+
<custom-header></custom-header>
|
| 15 |
+
|
| 16 |
+
<main class="container mx-auto px-4 py-8">
|
| 17 |
+
<section class="mb-16">
|
| 18 |
+
<div class="relative rounded-xl overflow-hidden">
|
| 19 |
+
<div class="bg-gradient-to-r from-green-500 to-orange-500 h-64 flex items-center justify-center">
|
| 20 |
+
<div class="text-center p-8">
|
| 21 |
+
<h1 class="text-4xl md:text-6xl font-bold mb-4">Discover Nature's Wonders</h1>
|
| 22 |
+
<p class="text-xl mb-8">Eco-friendly adventures for the conscious traveler</p>
|
| 23 |
+
<a href="#explore" class="bg-white text-gray-900 px-6 py-3 rounded-full font-bold hover:bg-gray-200 transition duration-300">Explore Tours</a>
|
| 24 |
+
</div>
|
| 25 |
+
</div>
|
| 26 |
+
</div>
|
| 27 |
+
</section>
|
| 28 |
+
|
| 29 |
+
<section id="explore" class="mb-16">
|
| 30 |
+
<h2 class="text-3xl font-bold mb-8 text-center">Popular Eco Adventures</h2>
|
| 31 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 32 |
+
<div class="bg-gray-800 rounded-xl overflow-hidden shadow-lg hover:shadow-2xl transition duration-300">
|
| 33 |
+
<img src="http://static.photos/nature/640x360/1" alt="Rainforest Trek" class="w-full h-48 object-cover">
|
| 34 |
+
<div class="p-6">
|
| 35 |
+
<h3 class="text-xl font-bold mb-2">Amazon Rainforest Trek</h3>
|
| 36 |
+
<p class="text-gray-400 mb-4">Experience the biodiversity of the Amazon with our guided eco-tours.</p>
|
| 37 |
+
<div class="flex justify-between items-center">
|
| 38 |
+
<span class="text-green-500 font-bold">$299</span>
|
| 39 |
+
<a href="#" class="text-orange-500 hover:text-orange-400 flex items-center">
|
| 40 |
+
Book Now <i data-feather="arrow-right" class="ml-2"></i>
|
| 41 |
+
</a>
|
| 42 |
+
</div>
|
| 43 |
+
</div>
|
| 44 |
+
</div>
|
| 45 |
+
|
| 46 |
+
<div class="bg-gray-800 rounded-xl overflow-hidden shadow-lg hover:shadow-2xl transition duration-300">
|
| 47 |
+
<img src="http://static.photos/mountain/640x360/2" alt="Mountain Hike" class="w-full h-48 object-cover">
|
| 48 |
+
<div class="p-6">
|
| 49 |
+
<h3 class="text-xl font-bold mb-2">Himalayan Mountain Hike</h3>
|
| 50 |
+
<p class="text-gray-400 mb-4">Challenge yourself with our sustainable high-altitude expeditions.</p>
|
| 51 |
+
<div class="flex justify-between items-center">
|
| 52 |
+
<span class="text-green-500 font-bold">$449</span>
|
| 53 |
+
<a href="#" class="text-orange-500 hover:text-orange-400 flex items-center">
|
| 54 |
+
Book Now <i data-feather="arrow-right" class="ml-2"></i>
|
| 55 |
+
</a>
|
| 56 |
+
</div>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
|
| 60 |
+
<div class="bg-gray-800 rounded-xl overflow-hidden shadow-lg hover:shadow-2xl transition duration-300">
|
| 61 |
+
<img src="http://static.photos/ocean/640x360/3" alt="Coral Reef Dive" class="w-full h-48 object-cover">
|
| 62 |
+
<div class="p-6">
|
| 63 |
+
<h3 class="text-xl font-bold mb-2">Coral Reef Conservation Dive</h3>
|
| 64 |
+
<p class="text-gray-400 mb-4">Dive with purpose to protect and restore marine ecosystems.</p>
|
| 65 |
+
<div class="flex justify-between items-center">
|
| 66 |
+
<span class="text-green-500 font-bold">$399</span>
|
| 67 |
+
<a href="#" class="text-orange-500 hover:text-orange-400 flex items-center">
|
| 68 |
+
Book Now <i data-feather="arrow-right" class="ml-2"></i>
|
| 69 |
+
</a>
|
| 70 |
+
</div>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
+
</div>
|
| 74 |
+
</section>
|
| 75 |
+
|
| 76 |
+
<section class="mb-16">
|
| 77 |
+
<div class="bg-gradient-to-r from-green-900 to-orange-900 rounded-2xl p-8">
|
| 78 |
+
<div class="max-w-3xl mx-auto text-center">
|
| 79 |
+
<h2 class="text-3xl font-bold mb-4">Our Sustainability Commitment</h2>
|
| 80 |
+
<p class="text-xl mb-8">We offset 150% of our carbon footprint and support local conservation projects</p>
|
| 81 |
+
<div class="flex flex-wrap justify-center gap-8">
|
| 82 |
+
<div class="flex items-center">
|
| 83 |
+
<i data-feather="droplet" class="text-green-500 mr-2"></i>
|
| 84 |
+
<span>Water Conservation</span>
|
| 85 |
+
</div>
|
| 86 |
+
<div class="flex items-center">
|
| 87 |
+
<i data-feather="wind" class="text-green-500 mr-2"></i>
|
| 88 |
+
<span>Carbon Neutral</span>
|
| 89 |
+
</div>
|
| 90 |
+
<div class="flex items-center">
|
| 91 |
+
<i data-feather="users" class="text-orange-500 mr-2"></i>
|
| 92 |
+
<span>Local Communities</span>
|
| 93 |
+
</div>
|
| 94 |
+
</div>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
</section>
|
| 98 |
+
|
| 99 |
+
<section>
|
| 100 |
+
<h2 class="text-3xl font-bold mb-8 text-center">Traveler Testimonials</h2>
|
| 101 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
| 102 |
+
<div class="bg-gray-800 p-6 rounded-xl">
|
| 103 |
+
<div class="flex items-center mb-4">
|
| 104 |
+
<div class="w-12 h-12 rounded-full bg-green-500 flex items-center justify-center mr-4">
|
| 105 |
+
<span class="font-bold">JD</span>
|
| 106 |
+
</div>
|
| 107 |
+
<div>
|
| 108 |
+
<h4 class="font-bold">John Doe</h4>
|
| 109 |
+
<div class="flex text-orange-500">
|
| 110 |
+
<i data-feather="star"></i>
|
| 111 |
+
<i data-feather="star"></i>
|
| 112 |
+
<i data-feather="star"></i>
|
| 113 |
+
<i data-feather="star"></i>
|
| 114 |
+
<i data-feather="star"></i>
|
| 115 |
+
</div>
|
| 116 |
+
</div>
|
| 117 |
+
</div>
|
| 118 |
+
<p class="text-gray-400">"The Amazon trek was life-changing. Our guide was incredibly knowledgeable about the ecosystem and the local community initiatives were inspiring."</p>
|
| 119 |
+
</div>
|
| 120 |
+
|
| 121 |
+
<div class="bg-gray-800 p-6 rounded-xl">
|
| 122 |
+
<div class="flex items-center mb-4">
|
| 123 |
+
<div class="w-12 h-12 rounded-full bg-orange-500 flex items-center justify-center mr-4">
|
| 124 |
+
<span class="font-bold">AS</span>
|
| 125 |
+
</div>
|
| 126 |
+
<div>
|
| 127 |
+
<h4 class="font-bold">Alice Smith</h4>
|
| 128 |
+
<div class="flex text-orange-500">
|
| 129 |
+
<i data-feather="star"></i>
|
| 130 |
+
<i data-feather="star"></i>
|
| 131 |
+
<i data-feather="star"></i>
|
| 132 |
+
<i data-feather="star"></i>
|
| 133 |
+
<i data-feather="star"></i>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
</div>
|
| 137 |
+
<p class="text-gray-400">"The coral reef dive was beyond my expectations. It felt great knowing our trip directly supported reef restoration efforts."</p>
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</section>
|
| 141 |
+
</main>
|
| 142 |
+
|
| 143 |
+
<custom-footer></custom-footer>
|
| 144 |
+
|
| 145 |
+
<script src="components/header.js"></script>
|
| 146 |
+
<script src="components/footer.js"></script>
|
| 147 |
+
<script src="script.js"></script>
|
| 148 |
+
<script>feather.replace();</script>
|
| 149 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 150 |
+
</body>
|
| 151 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Smooth scrolling for anchor links
|
| 2 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 3 |
+
anchor.addEventListener('click', function (e) {
|
| 4 |
+
e.preventDefault();
|
| 5 |
+
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
| 6 |
+
behavior: 'smooth'
|
| 7 |
+
});
|
| 8 |
+
});
|
| 9 |
+
});
|
| 10 |
+
|
| 11 |
+
// Simple animation on scroll
|
| 12 |
+
const observerOptions = {
|
| 13 |
+
root: null,
|
| 14 |
+
rootMargin: '0px',
|
| 15 |
+
threshold: 0.1
|
| 16 |
+
};
|
| 17 |
+
|
| 18 |
+
const observer = new IntersectionObserver((entries) => {
|
| 19 |
+
entries.forEach(entry => {
|
| 20 |
+
if (entry.isIntersecting) {
|
| 21 |
+
entry.target.classList.add('animate-fade-in');
|
| 22 |
+
}
|
| 23 |
+
});
|
| 24 |
+
}, observerOptions);
|
| 25 |
+
|
| 26 |
+
document.querySelectorAll('section').forEach(section => {
|
| 27 |
+
observer.observe(section);
|
| 28 |
+
});
|
| 29 |
+
|
| 30 |
+
// Theme toggle functionality
|
| 31 |
+
function toggleTheme() {
|
| 32 |
+
const html = document.documentElement;
|
| 33 |
+
if (html.classList.contains('dark')) {
|
| 34 |
+
html.classList.remove('dark');
|
| 35 |
+
localStorage.theme = 'light';
|
| 36 |
+
} else {
|
| 37 |
+
html.classList.add('dark');
|
| 38 |
+
localStorage.theme = 'dark';
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
// Initialize theme based on system preference or localStorage
|
| 43 |
+
if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
| 44 |
+
document.documentElement.classList.add('dark');
|
| 45 |
+
} else {
|
| 46 |
+
document.documentElement.classList.remove('dark');
|
| 47 |
+
}
|
style.css
CHANGED
|
@@ -1,28 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
font-size: 15px;
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
|
| 2 |
+
|
| 3 |
+
:root {
|
| 4 |
+
--primary-green: #10b981;
|
| 5 |
+
--secondary-orange: #f97316;
|
| 6 |
+
--dark-bg: #111827;
|
| 7 |
+
--card-bg: #1f2937;
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
body {
|
| 11 |
+
font-family: 'Poppins', sans-serif;
|
| 12 |
+
background-color: var(--dark-bg);
|
| 13 |
+
color: #f9fafb;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
.feather {
|
| 17 |
+
width: 20px;
|
| 18 |
+
height: 20px;
|
| 19 |
}
|
| 20 |
|
| 21 |
+
/* Custom scrollbar */
|
| 22 |
+
::-webkit-scrollbar {
|
| 23 |
+
width: 8px;
|
| 24 |
}
|
| 25 |
|
| 26 |
+
::-webkit-scrollbar-track {
|
| 27 |
+
background: #1f2937;
|
|
|
|
|
|
|
|
|
|
| 28 |
}
|
| 29 |
|
| 30 |
+
::-webkit-scrollbar-thumb {
|
| 31 |
+
background: var(--primary-green);
|
| 32 |
+
border-radius: 4px;
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
|
| 35 |
+
::-webkit-scrollbar-thumb:hover {
|
| 36 |
+
background: var(--secondary-orange);
|
| 37 |
}
|
| 38 |
+
|
| 39 |
+
/* Animation for cards */
|
| 40 |
+
@keyframes fadeIn {
|
| 41 |
+
from {
|
| 42 |
+
opacity: 0;
|
| 43 |
+
transform: translateY(20px);
|
| 44 |
+
}
|
| 45 |
+
to {
|
| 46 |
+
opacity: 1;
|
| 47 |
+
transform: translateY(0);
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
.animate-fade-in {
|
| 52 |
+
animation: fadeIn 0.5s ease-out;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
/* Responsive adjustments */
|
| 56 |
+
@media (max-width: 768px) {
|
| 57 |
+
.hero-content {
|
| 58 |
+
padding: 2rem 1rem;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
.grid-cols-3 {
|
| 62 |
+
grid-template-columns: repeat(1, minmax(0, 1fr));
|
| 63 |
+
}
|
| 64 |
+
}
|