Spaces:
Running
Running
design website for professional audio and music mastering services. include section for highly enticing pricing offers, for example "get your fist master at50% off"
Browse files- README.md +8 -5
- components/footer.js +17 -0
- components/navbar.js +71 -0
- index.html +193 -19
- script.js +36 -0
- style.css +41 -19
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Sonic Perfection Studio
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Sonic Perfection Studio 🔊
|
| 3 |
+
colorFrom: purple
|
| 4 |
+
colorTo: green
|
| 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,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.footer-link {
|
| 7 |
+
transition: all 0.2s ease;
|
| 8 |
+
}
|
| 9 |
+
.footer-link:hover {
|
| 10 |
+
color: #a5b4fc;
|
| 11 |
+
transform: translateX(4px);
|
| 12 |
+
}
|
| 13 |
+
.social-icon {
|
| 14 |
+
transition: all 0.2s ease;
|
| 15 |
+
}
|
| 16 |
+
.social-icon:hover {
|
| 17 |
+
transform: translateY(-3px);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
.navbar {
|
| 7 |
+
transition: all 0.3s ease;
|
| 8 |
+
}
|
| 9 |
+
.navbar.scrolled {
|
| 10 |
+
background-color: rgba(17, 24, 39, 0.95);
|
| 11 |
+
backdrop-filter: blur(10px);
|
| 12 |
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
| 13 |
+
}
|
| 14 |
+
.nav-link {
|
| 15 |
+
position: relative;
|
| 16 |
+
}
|
| 17 |
+
.nav-link::after {
|
| 18 |
+
content: '';
|
| 19 |
+
position: absolute;
|
| 20 |
+
width: 0;
|
| 21 |
+
height: 2px;
|
| 22 |
+
bottom: -2px;
|
| 23 |
+
left: 0;
|
| 24 |
+
background-color: #818cf8;
|
| 25 |
+
transition: width 0.3s ease;
|
| 26 |
+
}
|
| 27 |
+
.nav-link:hover::after {
|
| 28 |
+
width: 100%;
|
| 29 |
+
}
|
| 30 |
+
</style>
|
| 31 |
+
<nav class="navbar fixed w-full z-50 py-4 px-6 md:px-12">
|
| 32 |
+
<div class="flex justify-between items-center max-w-7xl mx-auto">
|
| 33 |
+
<a href="/" class="flex items-center">
|
| 34 |
+
<i data-feather="headphones" class="w-8 h-8 text-indigo-400 mr-2"></i>
|
| 35 |
+
<span class="text-2xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-indigo-400 to-purple-500">SonicPerfection</span>
|
| 36 |
+
</a>
|
| 37 |
+
|
| 38 |
+
<div class="hidden md:flex items-center space-x-8">
|
| 39 |
+
<a href="#services" class="nav-link text-gray-300 hover:text-white">Services</a>
|
| 40 |
+
<a href="#pricing" class="nav-link text-gray-300 hover:text-white">Pricing</a>
|
| 41 |
+
<a href="#" class="nav-link text-gray-300 hover:text-white">About</a>
|
| 42 |
+
<a href="#" class="nav-link text-gray-300 hover:text-white">Contact</a>
|
| 43 |
+
<a href="#pricing" class="px-6 py-2 bg-indigo-600 hover:bg-indigo-700 rounded-full font-medium transition-all">
|
| 44 |
+
Get Started
|
| 45 |
+
</a>
|
| 46 |
+
</div>
|
| 47 |
+
|
| 48 |
+
<button class="md:hidden text-gray-300 focus:outline-none">
|
| 49 |
+
<i data-feather="menu" class="w-6 h-6"></i>
|
| 50 |
+
</button>
|
| 51 |
+
</div>
|
| 52 |
+
</nav>
|
| 53 |
+
|
| 54 |
+
<script>
|
| 55 |
+
feather.replace();
|
| 56 |
+
|
| 57 |
+
// Navbar scroll effect
|
| 58 |
+
window.addEventListener('scroll', function() {
|
| 59 |
+
const navbar = this.shadowRoot.querySelector('.navbar');
|
| 60 |
+
if (window.scrollY > 50) {
|
| 61 |
+
navbar.classList.add('scrolled');
|
| 62 |
+
} else {
|
| 63 |
+
navbar.classList.remove('scrolled');
|
| 64 |
+
}
|
| 65 |
+
});
|
| 66 |
+
</script>
|
| 67 |
+
`;
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,193 @@
|
|
| 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>Sonic Perfection Studio | Professional Audio Mastering</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-gray-900 text-gray-100">
|
| 15 |
+
<custom-navbar></custom-navbar>
|
| 16 |
+
|
| 17 |
+
<main>
|
| 18 |
+
<!-- Hero Section -->
|
| 19 |
+
<section class="relative h-screen flex items-center justify-center bg-gradient-to-b from-gray-900 to-indigo-900 overflow-hidden">
|
| 20 |
+
<div class="absolute inset-0 opacity-30">
|
| 21 |
+
<div class="absolute inset-0 bg-[url('https://static.photos/technology/1200x630/42')] bg-cover bg-center"></div>
|
| 22 |
+
</div>
|
| 23 |
+
<div class="relative z-10 text-center px-6 max-w-4xl mx-auto">
|
| 24 |
+
<h1 class="text-5xl md:text-7xl font-bold mb-6 bg-clip-text text-transparent bg-gradient-to-r from-indigo-400 to-purple-600">
|
| 25 |
+
Elevate Your Sound
|
| 26 |
+
</h1>
|
| 27 |
+
<p class="text-xl md:text-2xl mb-10 text-gray-300">
|
| 28 |
+
Professional audio mastering services that bring your music to life with pristine clarity and power.
|
| 29 |
+
</p>
|
| 30 |
+
<div class="flex flex-col sm:flex-row gap-4 justify-center">
|
| 31 |
+
<a href="#pricing" class="px-8 py-4 bg-indigo-600 hover:bg-indigo-700 rounded-full font-bold text-lg transition-all transform hover:scale-105">
|
| 32 |
+
Get 50% Off First Master
|
| 33 |
+
</a>
|
| 34 |
+
<a href="#services" class="px-8 py-4 border-2 border-indigo-400 hover:bg-indigo-900/50 rounded-full font-bold text-lg transition-all">
|
| 35 |
+
Explore Services
|
| 36 |
+
</a>
|
| 37 |
+
</div>
|
| 38 |
+
</div>
|
| 39 |
+
<div class="absolute bottom-10 left-0 right-0 flex justify-center animate-bounce">
|
| 40 |
+
<i data-feather="chevron-down" class="text-indigo-400"></i>
|
| 41 |
+
</div>
|
| 42 |
+
</section>
|
| 43 |
+
|
| 44 |
+
<!-- Services Section -->
|
| 45 |
+
<section id="services" class="py-20 bg-gray-800">
|
| 46 |
+
<div class="container mx-auto px-6">
|
| 47 |
+
<h2 class="text-4xl font-bold text-center mb-16">Our Mastering Services</h2>
|
| 48 |
+
<div class="grid md:grid-cols-3 gap-10">
|
| 49 |
+
<!-- Service 1 -->
|
| 50 |
+
<div class="bg-gray-700/50 p-8 rounded-xl hover:bg-gray-700 transition-all border-l-4 border-indigo-500">
|
| 51 |
+
<div class="w-16 h-16 bg-indigo-900 rounded-full flex items-center justify-center mb-6">
|
| 52 |
+
<i data-feather="music" class="w-8 h-8 text-indigo-300"></i>
|
| 53 |
+
</div>
|
| 54 |
+
<h3 class="text-2xl font-bold mb-4">Single Track Mastering</h3>
|
| 55 |
+
<p class="text-gray-300 mb-6">Perfect for singles, EPs, or when you need just one track professionally mastered.</p>
|
| 56 |
+
<div class="text-indigo-400 font-bold text-lg">Starting at $49</div>
|
| 57 |
+
</div>
|
| 58 |
+
|
| 59 |
+
<!-- Service 2 -->
|
| 60 |
+
<div class="bg-gray-700/50 p-8 rounded-xl hover:bg-gray-700 transition-all border-l-4 border-purple-500">
|
| 61 |
+
<div class="w-16 h-16 bg-purple-900 rounded-full flex items-center justify-center mb-6">
|
| 62 |
+
<i data-feather="disc" class="w-8 h-8 text-purple-300"></i>
|
| 63 |
+
</div>
|
| 64 |
+
<h3 class="text-2xl font-bold mb-4">Album Mastering</h3>
|
| 65 |
+
<p class="text-gray-300 mb-6">Full album mastering with consistent sound across all tracks and competitive pricing.</p>
|
| 66 |
+
<div class="text-purple-400 font-bold text-lg">Starting at $299</div>
|
| 67 |
+
</div>
|
| 68 |
+
|
| 69 |
+
<!-- Service 3 -->
|
| 70 |
+
<div class="bg-gray-700/50 p-8 rounded-xl hover:bg-gray-700 transition-all border-l-4 border-pink-500">
|
| 71 |
+
<div class="w-16 h-16 bg-pink-900 rounded-full flex items-center justify-center mb-6">
|
| 72 |
+
<i data-feather="headphones" class="w-8 h-8 text-pink-300"></i>
|
| 73 |
+
</div>
|
| 74 |
+
<h3 class="text-2xl font-bold mb-4">Premium Mastering</h3>
|
| 75 |
+
<p class="text-gray-300 mb-6">Our top-tier service with unlimited revisions and direct engineer consultation.</p>
|
| 76 |
+
<div class="text-pink-400 font-bold text-lg">Starting at $149</div>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
</div>
|
| 80 |
+
</section>
|
| 81 |
+
|
| 82 |
+
<!-- Pricing Special -->
|
| 83 |
+
<section id="pricing" class="py-20 bg-gradient-to-b from-gray-800 to-gray-900">
|
| 84 |
+
<div class="container mx-auto px-6">
|
| 85 |
+
<div class="bg-gradient-to-r from-indigo-900/80 to-purple-900/80 rounded-2xl p-10 md:p-16 relative overflow-hidden">
|
| 86 |
+
<div class="absolute -right-20 -top-20 w-64 h-64 bg-indigo-500 rounded-full opacity-20 blur-3xl"></div>
|
| 87 |
+
<div class="absolute -left-20 -bottom-20 w-64 h-64 bg-purple-500 rounded-full opacity-20 blur-3xl"></div>
|
| 88 |
+
<div class="relative z-10">
|
| 89 |
+
<div class="flex flex-col md:flex-row justify-between items-center gap-8">
|
| 90 |
+
<div class="flex-1">
|
| 91 |
+
<h2 class="text-3xl md:text-4xl font-bold mb-4">First Master 50% Off!</h2>
|
| 92 |
+
<p class="text-xl text-gray-300 mb-6">Try our professional mastering service at half price. No strings attached.</p>
|
| 93 |
+
<ul class="space-y-3 mb-8">
|
| 94 |
+
<li class="flex items-center">
|
| 95 |
+
<i data-feather="check" class="w-5 h-5 mr-3 text-green-400"></i>
|
| 96 |
+
<span>Same professional quality</span>
|
| 97 |
+
</li>
|
| 98 |
+
<li class="flex items-center">
|
| 99 |
+
<i data-feather="check" class="w-5 h-5 mr-3 text-green-400"></i>
|
| 100 |
+
<span>Fast turnaround (24-48 hours)</span>
|
| 101 |
+
</li>
|
| 102 |
+
<li class="flex items-center">
|
| 103 |
+
<i data-feather="check" class="w-5 h-5 mr-3 text-green-400"></i>
|
| 104 |
+
<span>Free revisions if needed</span>
|
| 105 |
+
</li>
|
| 106 |
+
</ul>
|
| 107 |
+
</div>
|
| 108 |
+
<div class="bg-gray-900/50 p-8 rounded-xl border border-gray-700 w-full md:w-auto">
|
| 109 |
+
<div class="text-center mb-6">
|
| 110 |
+
<div class="text-5xl font-bold text-indigo-400">$25</div>
|
| 111 |
+
<div class="text-gray-400 line-through">$50</div>
|
| 112 |
+
</div>
|
| 113 |
+
<a href="#" class="block w-full text-center px-8 py-4 bg-gradient-to-r from-indigo-600 to-purple-600 hover:from-indigo-700 hover:to-purple-700 rounded-full font-bold text-lg transition-all">
|
| 114 |
+
Claim Offer Now
|
| 115 |
+
</a>
|
| 116 |
+
<p class="text-sm text-gray-400 text-center mt-4">Limited time offer</p>
|
| 117 |
+
</div>
|
| 118 |
+
</div>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
</section>
|
| 123 |
+
|
| 124 |
+
<!-- Testimonials -->
|
| 125 |
+
<section class="py-20 bg-gray-900">
|
| 126 |
+
<div class="container mx-auto px-6">
|
| 127 |
+
<h2 class="text-4xl font-bold text-center mb-16">What Artists Say</h2>
|
| 128 |
+
<div class="grid md:grid-cols-2 gap-10">
|
| 129 |
+
<!-- Testimonial 1 -->
|
| 130 |
+
<div class="bg-gray-800 p-8 rounded-xl">
|
| 131 |
+
<div class="flex items-center mb-6">
|
| 132 |
+
<img src="https://static.photos/people/200x200/1" alt="Artist" class="w-16 h-16 rounded-full mr-4">
|
| 133 |
+
<div>
|
| 134 |
+
<h4 class="font-bold text-lg">Sarah J.</h4>
|
| 135 |
+
<div class="flex text-yellow-400">
|
| 136 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 137 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 138 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 139 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 140 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
<p class="text-gray-300 italic">"The mastering brought my tracks to life in ways I didn't think possible. The low end is tighter, the highs sparkle, and everything sits perfectly in the mix."</p>
|
| 145 |
+
</div>
|
| 146 |
+
|
| 147 |
+
<!-- Testimonial 2 -->
|
| 148 |
+
<div class="bg-gray-800 p-8 rounded-xl">
|
| 149 |
+
<div class="flex items-center mb-6">
|
| 150 |
+
<img src="https://static.photos/people/200x200/2" alt="Artist" class="w-16 h-16 rounded-full mr-4">
|
| 151 |
+
<div>
|
| 152 |
+
<h4 class="font-bold text-lg">Mark T.</h4>
|
| 153 |
+
<div class="flex text-yellow-400">
|
| 154 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 155 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 156 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 157 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 158 |
+
<i data-feather="star" class="w-5 h-5 fill-current"></i>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
<p class="text-gray-300 italic">"Used the 50% off first master deal and was blown away. Ended up mastering my whole album with them. The consistency across tracks is phenomenal."</p>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
</section>
|
| 167 |
+
|
| 168 |
+
<!-- CTA Section -->
|
| 169 |
+
<section class="py-20 bg-gradient-to-r from-indigo-900 to-purple-900">
|
| 170 |
+
<div class="container mx-auto px-6 text-center">
|
| 171 |
+
<h2 class="text-4xl font-bold mb-8">Ready to Transform Your Sound?</h2>
|
| 172 |
+
<p class="text-xl text-gray-300 mb-10 max-w-2xl mx-auto">Upload your tracks today and experience professional mastering that makes your music stand out on every platform.</p>
|
| 173 |
+
<div class="flex flex-col sm:flex-row gap-4 justify-center">
|
| 174 |
+
<a href="#pricing" class="px-8 py-4 bg-white text-indigo-900 hover:bg-gray-100 rounded-full font-bold text-lg transition-all transform hover:scale-105">
|
| 175 |
+
Get Started Now
|
| 176 |
+
</a>
|
| 177 |
+
<a href="#" class="px-8 py-4 border-2 border-white hover:bg-white/10 rounded-full font-bold text-lg transition-all">
|
| 178 |
+
Contact Us
|
| 179 |
+
</a>
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
+
</section>
|
| 183 |
+
</main>
|
| 184 |
+
|
| 185 |
+
<custom-footer></custom-footer>
|
| 186 |
+
|
| 187 |
+
<script>
|
| 188 |
+
feather.replace();
|
| 189 |
+
</script>
|
| 190 |
+
<script src="script.js"></script>
|
| 191 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 192 |
+
</body>
|
| 193 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 2 |
+
// Smooth scroll for anchor links
|
| 3 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 4 |
+
anchor.addEventListener('click', function (e) {
|
| 5 |
+
e.preventDefault();
|
| 6 |
+
|
| 7 |
+
const targetId = this.getAttribute('href');
|
| 8 |
+
if (targetId === '#') return;
|
| 9 |
+
|
| 10 |
+
const targetElement = document.querySelector(targetId);
|
| 11 |
+
if (targetElement) {
|
| 12 |
+
targetElement.scrollIntoView({
|
| 13 |
+
behavior: 'smooth',
|
| 14 |
+
block: 'start'
|
| 15 |
+
});
|
| 16 |
+
}
|
| 17 |
+
});
|
| 18 |
+
});
|
| 19 |
+
|
| 20 |
+
// Animation on scroll
|
| 21 |
+
const animateOnScroll = function() {
|
| 22 |
+
const elements = document.querySelectorAll('.service-card, .testimonial');
|
| 23 |
+
|
| 24 |
+
elements.forEach(element => {
|
| 25 |
+
const elementPosition = element.getBoundingClientRect().top;
|
| 26 |
+
const windowHeight = window.innerHeight;
|
| 27 |
+
|
| 28 |
+
if (elementPosition < windowHeight - 100) {
|
| 29 |
+
element.classList.add('animate-fadeInUp');
|
| 30 |
+
}
|
| 31 |
+
});
|
| 32 |
+
};
|
| 33 |
+
|
| 34 |
+
window.addEventListener('scroll', animateOnScroll);
|
| 35 |
+
animateOnScroll(); // Initial check
|
| 36 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,50 @@
|
|
| 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 |
-
margin: 0 auto;
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Custom animations */
|
| 2 |
+
@keyframes float {
|
| 3 |
+
0%, 100% {
|
| 4 |
+
transform: translateY(0);
|
| 5 |
+
}
|
| 6 |
+
50% {
|
| 7 |
+
transform: translateY(-10px);
|
| 8 |
+
}
|
| 9 |
}
|
| 10 |
|
| 11 |
+
.float-animation {
|
| 12 |
+
animation: float 3s ease-in-out infinite;
|
|
|
|
| 13 |
}
|
| 14 |
|
| 15 |
+
/* Custom scrollbar */
|
| 16 |
+
::-webkit-scrollbar {
|
| 17 |
+
width: 8px;
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
+
::-webkit-scrollbar-track {
|
| 21 |
+
background: #1a1a1a;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
}
|
| 23 |
|
| 24 |
+
::-webkit-scrollbar-thumb {
|
| 25 |
+
background: #4f46e5;
|
| 26 |
+
border-radius: 4px;
|
| 27 |
}
|
| 28 |
+
|
| 29 |
+
::-webkit-scrollbar-thumb:hover {
|
| 30 |
+
background: #6366f1;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
/* Smooth scrolling */
|
| 34 |
+
html {
|
| 35 |
+
scroll-behavior: smooth;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
/* Custom pulse animation */
|
| 39 |
+
@keyframes pulse {
|
| 40 |
+
0%, 100% {
|
| 41 |
+
opacity: 1;
|
| 42 |
+
}
|
| 43 |
+
50% {
|
| 44 |
+
opacity: 0.5;
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
.pulse-animation {
|
| 49 |
+
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
| 50 |
+
}
|