Spaces:
Running
Running
https://www.holisticbeautyrn.com/
Browse files- README.md +8 -5
- components/navbar.js +66 -0
- index.html +213 -19
- script.js +42 -0
- style.css +45 -19
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Holistic Glow Haven
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Holistic Glow Haven ✨
|
| 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/navbar.js
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.nav-link {
|
| 7 |
+
position: relative;
|
| 8 |
+
}
|
| 9 |
+
.nav-link:after {
|
| 10 |
+
content: '';
|
| 11 |
+
position: absolute;
|
| 12 |
+
width: 0;
|
| 13 |
+
height: 2px;
|
| 14 |
+
bottom: -2px;
|
| 15 |
+
left: 0;
|
| 16 |
+
background-color: #0d9488;
|
| 17 |
+
transition: width 0.3s ease;
|
| 18 |
+
}
|
| 19 |
+
.nav-link:hover:after {
|
| 20 |
+
width: 100%;
|
| 21 |
+
}
|
| 22 |
+
#mobile-menu {
|
| 23 |
+
transition: all 0.3s ease;
|
| 24 |
+
}
|
| 25 |
+
</style>
|
| 26 |
+
<nav class="fixed w-full bg-white shadow-sm z-50">
|
| 27 |
+
<div class="container mx-auto px-6 py-4">
|
| 28 |
+
<div class="flex justify-between items-center">
|
| 29 |
+
<!-- Logo -->
|
| 30 |
+
<a href="/" class="flex items-center">
|
| 31 |
+
<i data-feather="feather" class="text-teal-600 w-8 h-8 mr-2"></i>
|
| 32 |
+
<span class="text-xl font-bold text-teal-800">Holistic Glow</span>
|
| 33 |
+
</a>
|
| 34 |
+
|
| 35 |
+
<!-- Desktop Menu -->
|
| 36 |
+
<div class="hidden md:flex space-x-8">
|
| 37 |
+
<a href="/" class="nav-link text-gray-700 hover:text-teal-600">Home</a>
|
| 38 |
+
<a href="#services" class="nav-link text-gray-700 hover:text-teal-600">Services</a>
|
| 39 |
+
<a href="#about" class="nav-link text-gray-700 hover:text-teal-600">About</a>
|
| 40 |
+
<a href="#" class="nav-link text-gray-700 hover:text-teal-600">Blog</a>
|
| 41 |
+
<a href="#" class="nav-link text-gray-700 hover:text-teal-600">Contact</a>
|
| 42 |
+
</div>
|
| 43 |
+
|
| 44 |
+
<!-- Mobile menu button -->
|
| 45 |
+
<div class="md:hidden">
|
| 46 |
+
<button onclick="toggleMobileMenu()" class="text-gray-700 focus:outline-none">
|
| 47 |
+
<i data-feather="menu" class="w-6 h-6"></i>
|
| 48 |
+
</button>
|
| 49 |
+
</div>
|
| 50 |
+
</div>
|
| 51 |
+
|
| 52 |
+
<!-- Mobile Menu -->
|
| 53 |
+
<div id="mobile-menu" class="hidden md:hidden mt-4 pb-4">
|
| 54 |
+
<a href="/" class="block py-2 text-gray-700 hover:text-teal-600">Home</a>
|
| 55 |
+
<a href="#services" class="block py-2 text-gray-700 hover:text-teal-600">Services</a>
|
| 56 |
+
<a href="#about" class="block py-2 text-gray-700 hover:text-teal-600">About</a>
|
| 57 |
+
<a href="#" class="block py-2 text-gray-700 hover:text-teal-600">Blog</a>
|
| 58 |
+
<a href="#" class="block py-2 text-gray-700 hover:text-teal-600">Contact</a>
|
| 59 |
+
</div>
|
| 60 |
+
</div>
|
| 61 |
+
</nav>
|
| 62 |
+
`;
|
| 63 |
+
}
|
| 64 |
+
}
|
| 65 |
+
|
| 66 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,213 @@
|
|
| 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>Holistic Glow Haven | Natural Beauty & Wellness</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="components/navbar.js"></script>
|
| 12 |
+
<script src="components/footer.js"></script>
|
| 13 |
+
</head>
|
| 14 |
+
<body class="bg-white text-gray-800 font-sans">
|
| 15 |
+
<custom-navbar></custom-navbar>
|
| 16 |
+
|
| 17 |
+
<!-- Hero Section -->
|
| 18 |
+
<section class="relative h-screen flex items-center justify-center bg-gradient-to-r from-green-50 to-teal-50">
|
| 19 |
+
<div class="container mx-auto px-6 text-center">
|
| 20 |
+
<h1 class="text-5xl md:text-6xl font-bold text-teal-800 mb-6">Holistic Beauty Redefined</h1>
|
| 21 |
+
<p class="text-xl md:text-2xl text-teal-600 mb-8 max-w-2xl mx-auto">
|
| 22 |
+
Discover natural radiance through our plant-powered treatments and wellness rituals
|
| 23 |
+
</p>
|
| 24 |
+
<div class="flex flex-col sm:flex-row justify-center gap-4">
|
| 25 |
+
<a href="#services" class="bg-teal-600 hover:bg-teal-700 text-white px-8 py-3 rounded-full font-medium transition duration-300">
|
| 26 |
+
Our Services
|
| 27 |
+
</a>
|
| 28 |
+
<a href="#about" class="border-2 border-teal-600 text-teal-600 hover:bg-teal-50 px-8 py-3 rounded-full font-medium transition duration-300">
|
| 29 |
+
Learn More
|
| 30 |
+
</a>
|
| 31 |
+
</div>
|
| 32 |
+
</div>
|
| 33 |
+
<div class="absolute bottom-10 left-1/2 transform -translate-x-1/2">
|
| 34 |
+
<a href="#services" class="animate-bounce">
|
| 35 |
+
<i data-feather="chevron-down" class="text-teal-700 w-10 h-10"></i>
|
| 36 |
+
</a>
|
| 37 |
+
</div>
|
| 38 |
+
</section>
|
| 39 |
+
|
| 40 |
+
<!-- Services Section -->
|
| 41 |
+
<section id="services" class="py-20 bg-white">
|
| 42 |
+
<div class="container mx-auto px-6">
|
| 43 |
+
<h2 class="text-3xl md:text-4xl font-bold text-center text-teal-800 mb-16">Our Holistic Services</h2>
|
| 44 |
+
|
| 45 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-10">
|
| 46 |
+
<!-- Service 1 -->
|
| 47 |
+
<div class="bg-green-50 rounded-xl p-8 shadow-lg hover:shadow-xl transition duration-300">
|
| 48 |
+
<div class="bg-teal-100 w-16 h-16 rounded-full flex items-center justify-center mb-6">
|
| 49 |
+
<i data-feather="leaf" class="text-teal-600 w-8 h-8"></i>
|
| 50 |
+
</div>
|
| 51 |
+
<h3 class="text-xl font-bold text-teal-800 mb-3">Organic Facials</h3>
|
| 52 |
+
<p class="text-gray-600 mb-4">
|
| 53 |
+
Nourish your skin with our signature plant-based facials using locally sourced ingredients.
|
| 54 |
+
</p>
|
| 55 |
+
<a href="#" class="text-teal-600 font-medium flex items-center">
|
| 56 |
+
Learn more <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
|
| 57 |
+
</a>
|
| 58 |
+
</div>
|
| 59 |
+
|
| 60 |
+
<!-- Service 2 -->
|
| 61 |
+
<div class="bg-green-50 rounded-xl p-8 shadow-lg hover:shadow-xl transition duration-300">
|
| 62 |
+
<div class="bg-teal-100 w-16 h-16 rounded-full flex items-center justify-center mb-6">
|
| 63 |
+
<i data-feather="activity" class="text-teal-600 w-8 h-8"></i>
|
| 64 |
+
</div>
|
| 65 |
+
<h3 class="text-xl font-bold text-teal-800 mb-3">Ayurvedic Massage</h3>
|
| 66 |
+
<p class="text-gray-600 mb-4">
|
| 67 |
+
Restore balance with traditional techniques and warm herbal oils for complete relaxation.
|
| 68 |
+
</p>
|
| 69 |
+
<a href="#" class="text-teal-600 font-medium flex items-center">
|
| 70 |
+
Learn more <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
|
| 71 |
+
</a>
|
| 72 |
+
</div>
|
| 73 |
+
|
| 74 |
+
<!-- Service 3 -->
|
| 75 |
+
<div class="bg-green-50 rounded-xl p-8 shadow-lg hover:shadow-xl transition duration-300">
|
| 76 |
+
<div class="bg-teal-100 w-16 h-16 rounded-full flex items-center justify-center mb-6">
|
| 77 |
+
<i data-feather="moon" class="text-teal-600 w-8 h-8"></i>
|
| 78 |
+
</div>
|
| 79 |
+
<h3 class="text-xl font-bold text-teal-800 mb-3">Energy Healing</h3>
|
| 80 |
+
<p class="text-gray-600 mb-4">
|
| 81 |
+
Rejuvenate your mind and spirit with our crystal therapy and reiki sessions.
|
| 82 |
+
</p>
|
| 83 |
+
<a href="#" class="text-teal-600 font-medium flex items-center">
|
| 84 |
+
Learn more <i data-feather="arrow-right" class="ml-2 w-4 h-4"></i>
|
| 85 |
+
</a>
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
</div>
|
| 89 |
+
</section>
|
| 90 |
+
|
| 91 |
+
<!-- About Section -->
|
| 92 |
+
<section id="about" class="py-20 bg-teal-50">
|
| 93 |
+
<div class="container mx-auto px-6">
|
| 94 |
+
<div class="flex flex-col lg:flex-row items-center">
|
| 95 |
+
<div class="lg:w-1/2 mb-10 lg:mb-0 lg:pr-10">
|
| 96 |
+
<img src="http://static.photos/wellness/1200x630/42" alt="Holistic Beauty" class="rounded-xl shadow-lg w-full">
|
| 97 |
+
</div>
|
| 98 |
+
<div class="lg:w-1/2">
|
| 99 |
+
<h2 class="text-3xl md:text-4xl font-bold text-teal-800 mb-6">Our Philosophy</h2>
|
| 100 |
+
<p class="text-gray-600 mb-6">
|
| 101 |
+
At Holistic Glow Haven, we believe true beauty radiates from within. Our approach combines ancient wisdom with modern science to create personalized wellness journeys.
|
| 102 |
+
</p>
|
| 103 |
+
<p class="text-gray-600 mb-8">
|
| 104 |
+
Every treatment is crafted with intention, using only the purest ingredients that honor both your body and the earth.
|
| 105 |
+
</p>
|
| 106 |
+
<a href="#" class="bg-teal-600 hover:bg-teal-700 text-white px-8 py-3 rounded-full font-medium inline-block transition duration-300">
|
| 107 |
+
Meet Our Practitioners
|
| 108 |
+
</a>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</section>
|
| 113 |
+
|
| 114 |
+
<!-- Testimonials -->
|
| 115 |
+
<section class="py-20 bg-white">
|
| 116 |
+
<div class="container mx-auto px-6">
|
| 117 |
+
<h2 class="text-3xl md:text-4xl font-bold text-center text-teal-800 mb-16">Client Experiences</h2>
|
| 118 |
+
|
| 119 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 120 |
+
<!-- Testimonial 1 -->
|
| 121 |
+
<div class="bg-green-50 p-8 rounded-xl">
|
| 122 |
+
<div class="flex items-center mb-4">
|
| 123 |
+
<div class="text-teal-600 mr-4">
|
| 124 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 125 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 126 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 127 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 128 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 129 |
+
</div>
|
| 130 |
+
</div>
|
| 131 |
+
<p class="text-gray-600 mb-6">
|
| 132 |
+
"The facial was transformative! My skin has never felt so nourished and balanced. The organic products smelled divine."
|
| 133 |
+
</p>
|
| 134 |
+
<div class="flex items-center">
|
| 135 |
+
<img src="http://static.photos/people/200x200/1" alt="Client" class="w-12 h-12 rounded-full mr-4">
|
| 136 |
+
<div>
|
| 137 |
+
<h4 class="font-bold text-teal-800">Sarah J.</h4>
|
| 138 |
+
<p class="text-sm text-gray-500">Regular Client</p>
|
| 139 |
+
</div>
|
| 140 |
+
</div>
|
| 141 |
+
</div>
|
| 142 |
+
|
| 143 |
+
<!-- Testimonial 2 -->
|
| 144 |
+
<div class="bg-green-50 p-8 rounded-xl">
|
| 145 |
+
<div class="flex items-center mb-4">
|
| 146 |
+
<div class="text-teal-600 mr-4">
|
| 147 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 148 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 149 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 150 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 151 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 152 |
+
</div>
|
| 153 |
+
</div>
|
| 154 |
+
<p class="text-gray-600 mb-6">
|
| 155 |
+
"The energy healing session helped me release months of built-up stress. I left feeling lighter and more centered."
|
| 156 |
+
</p>
|
| 157 |
+
<div class="flex items-center">
|
| 158 |
+
<img src="http://static.photos/people/200x200/2" alt="Client" class="w-12 h-12 rounded-full mr-4">
|
| 159 |
+
<div>
|
| 160 |
+
<h4 class="font-bold text-teal-800">Michael T.</h4>
|
| 161 |
+
<p class="text-sm text-gray-500">First-time Visitor</p>
|
| 162 |
+
</div>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
|
| 166 |
+
<!-- Testimonial 3 -->
|
| 167 |
+
<div class="bg-green-50 p-8 rounded-xl">
|
| 168 |
+
<div class="flex items-center mb-4">
|
| 169 |
+
<div class="text-teal-600 mr-4">
|
| 170 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 171 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 172 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 173 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 174 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 175 |
+
</div>
|
| 176 |
+
</div>
|
| 177 |
+
<p class="text-gray-600 mb-6">
|
| 178 |
+
"The Ayurvedic massage was unlike anything I've experienced. The herbal oils and technique melted away all my tension."
|
| 179 |
+
</p>
|
| 180 |
+
<div class="flex items-center">
|
| 181 |
+
<img src="http://static.photos/people/200x200/3" alt="Client" class="w-12 h-12 rounded-full mr-4">
|
| 182 |
+
<div>
|
| 183 |
+
<h4 class="font-bold text-teal-800">Emma L.</h4>
|
| 184 |
+
<p class="text-sm text-gray-500">Wellness Member</p>
|
| 185 |
+
</div>
|
| 186 |
+
</div>
|
| 187 |
+
</div>
|
| 188 |
+
</div>
|
| 189 |
+
</div>
|
| 190 |
+
</section>
|
| 191 |
+
|
| 192 |
+
<!-- CTA Section -->
|
| 193 |
+
<section class="py-20 bg-teal-800 text-white">
|
| 194 |
+
<div class="container mx-auto px-6 text-center">
|
| 195 |
+
<h2 class="text-3xl md:text-4xl font-bold mb-6">Begin Your Holistic Journey</h2>
|
| 196 |
+
<p class="text-xl mb-8 max-w-2xl mx-auto opacity-90">
|
| 197 |
+
Book your consultation today and experience the transformative power of natural beauty care.
|
| 198 |
+
</p>
|
| 199 |
+
<a href="#" class="bg-white hover:bg-gray-100 text-teal-800 px-8 py-3 rounded-full font-medium inline-block transition duration-300">
|
| 200 |
+
Schedule Appointment
|
| 201 |
+
</a>
|
| 202 |
+
</div>
|
| 203 |
+
</section>
|
| 204 |
+
|
| 205 |
+
<custom-footer></custom-footer>
|
| 206 |
+
|
| 207 |
+
<script>
|
| 208 |
+
feather.replace();
|
| 209 |
+
</script>
|
| 210 |
+
<script src="script.js"></script>
|
| 211 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 212 |
+
</body>
|
| 213 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
// Animate elements on scroll
|
| 3 |
+
const animateOnScroll = function() {
|
| 4 |
+
const elements = document.querySelectorAll('.animate-fade-in');
|
| 5 |
+
|
| 6 |
+
elements.forEach(element => {
|
| 7 |
+
const elementPosition = element.getBoundingClientRect().top;
|
| 8 |
+
const screenPosition = window.innerHeight / 1.3;
|
| 9 |
+
|
| 10 |
+
if (elementPosition < screenPosition) {
|
| 11 |
+
element.classList.add('animate-fade-in');
|
| 12 |
+
}
|
| 13 |
+
});
|
| 14 |
+
};
|
| 15 |
+
|
| 16 |
+
window.addEventListener('scroll', animateOnScroll);
|
| 17 |
+
animateOnScroll(); // Run once on load
|
| 18 |
+
|
| 19 |
+
// Smooth scroll for anchor links
|
| 20 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 21 |
+
anchor.addEventListener('click', function(e) {
|
| 22 |
+
e.preventDefault();
|
| 23 |
+
|
| 24 |
+
const targetId = this.getAttribute('href');
|
| 25 |
+
if (targetId === '#') return;
|
| 26 |
+
|
| 27 |
+
const targetElement = document.querySelector(targetId);
|
| 28 |
+
if (targetElement) {
|
| 29 |
+
window.scrollTo({
|
| 30 |
+
top: targetElement.offsetTop - 80,
|
| 31 |
+
behavior: 'smooth'
|
| 32 |
+
});
|
| 33 |
+
}
|
| 34 |
+
});
|
| 35 |
+
});
|
| 36 |
+
|
| 37 |
+
// Mobile menu toggle (will be used by navbar component)
|
| 38 |
+
window.toggleMobileMenu = function() {
|
| 39 |
+
const menu = document.getElementById('mobile-menu');
|
| 40 |
+
menu.classList.toggle('hidden');
|
| 41 |
+
};
|
| 42 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,54 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
margin-top: 0;
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 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 |
+
/* Custom animations */
|
| 2 |
+
@keyframes fadeIn {
|
| 3 |
+
from { opacity: 0; transform: translateY(20px); }
|
| 4 |
+
to { opacity: 1; transform: translateY(0); }
|
| 5 |
}
|
| 6 |
|
| 7 |
+
.animate-fade-in {
|
| 8 |
+
animation: fadeIn 1s ease-out forwards;
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
+
/* Smooth scrolling */
|
| 12 |
+
html {
|
| 13 |
+
scroll-behavior: smooth;
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
|
| 16 |
+
/* Custom scrollbar */
|
| 17 |
+
::-webkit-scrollbar {
|
| 18 |
+
width: 8px;
|
|
|
|
|
|
|
|
|
|
| 19 |
}
|
| 20 |
|
| 21 |
+
::-webkit-scrollbar-track {
|
| 22 |
+
background: #f1f1f1;
|
| 23 |
}
|
| 24 |
+
|
| 25 |
+
::-webkit-scrollbar-thumb {
|
| 26 |
+
background: #0d9488;
|
| 27 |
+
border-radius: 10px;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
::-webkit-scrollbar-thumb:hover {
|
| 31 |
+
background: #0f766e;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
/* Section spacing */
|
| 35 |
+
section {
|
| 36 |
+
padding-top: 5rem;
|
| 37 |
+
padding-bottom: 5rem;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
/* Hover effects */
|
| 41 |
+
.shadow-lg {
|
| 42 |
+
transition: transform 0.3s ease, box-shadow 0.3s ease;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.shadow-lg:hover {
|
| 46 |
+
transform: translateY(-5px);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/* Responsive typography */
|
| 50 |
+
@media (max-width: 640px) {
|
| 51 |
+
html {
|
| 52 |
+
font-size: 14px;
|
| 53 |
+
}
|
| 54 |
+
}
|