Spaces:
Running
Running
File size: 29,444 Bytes
d57b613 176c3ce | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Crypto Basics 101 - Start Your Journey</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
<style>
.hero-gradient {
background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.progress-bar {
transition: width 0.5s ease-in-out;
}
</style>
</head>
<body class="bg-gray-50 font-sans antialiased">
<!-- Navigation -->
<nav class="bg-white shadow-sm fixed w-full z-10">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<i data-feather="dollar-sign" class="text-purple-600 mr-2"></i>
<span class="text-xl font-bold text-gray-900">CryptoBasics</span>
</div>
<div class="hidden md:flex items-center space-x-8">
<a href="#" class="text-purple-600 font-medium">Home</a>
<a href="#course" class="text-gray-600 hover:text-purple-600">Course</a>
<a href="#steps" class="text-gray-600 hover:text-purple-600">Steps</a>
<a href="#faq" class="text-gray-600 hover:text-purple-600">FAQ</a>
</div>
<button class="md:hidden text-gray-500 focus:outline-none">
<i data-feather="menu"></i>
</button>
</div>
</div>
</nav>
<!-- Hero Section -->
<div id="hero" class="hero-gradient pt-24 pb-32 text-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="md:flex items-center justify-between">
<div class="md:w-1/2" data-aos="fade-right">
<h1 class="text-4xl md:text-5xl font-bold leading-tight mb-6">Your First Crypto Purchase Made Simple</h1>
<p class="text-xl mb-8">From zero to crypto hero in just 30 minutes. Learn how to safely buy your first Bitcoin or Ethereum on Coinbase.</p>
<div class="flex space-x-4">
<a href="#course" class="bg-white text-purple-600 px-6 py-3 rounded-lg font-medium hover:bg-gray-100 transition duration-300">Start Learning</a>
<a href="#steps" class="border-2 border-white text-white px-6 py-3 rounded-lg font-medium hover:bg-white hover:text-purple-600 transition duration-300">See Steps</a>
</div>
</div>
<div class="md:w-1/2 mt-10 md:mt-0" data-aos="fade-left">
<img src="http://static.photos/technology/640x360/42" alt="Crypto Education" class="rounded-xl shadow-2xl">
</div>
</div>
</div>
</div>
<!-- Stats Section -->
<div class="bg-white py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 text-center">
<div class="p-6" data-aos="fade-up">
<div class="text-4xl font-bold text-purple-600 mb-2">30 min</div>
<p class="text-gray-600">To complete the course</p>
</div>
<div class="p-6" data-aos="fade-up" data-aos-delay="100">
<div class="text-4xl font-bold text-purple-600 mb-2">5</div>
<p class="text-gray-600">Simple steps to follow</p>
</div>
<div class="p-6" data-aos="fade-up" data-aos-delay="200">
<div class="text-4xl font-bold text-purple-600 mb-2">100%</div>
<p class="text-gray-600">Beginner friendly</p>
</div>
</div>
</div>
</div>
<!-- Course Overview -->
<section id="course" class="py-16 bg-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-3xl font-bold text-gray-900 mb-4" data-aos="fade-up">What You'll Learn</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto" data-aos="fade-up" data-aos-delay="100">A step-by-step guide to buying your first cryptocurrency safely on Coinbase</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div class="bg-white p-8 rounded-xl shadow-md card-hover transition duration-300" data-aos="fade-up">
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-6">
<i data-feather="user" class="text-purple-600 w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold mb-4">Create Your Account</h3>
<p class="text-gray-600">Learn how to set up your Coinbase account with proper security measures including 2FA.</p>
</div>
<div class="bg-white p-8 rounded-xl shadow-md card-hover transition duration-300" data-aos="fade-up" data-aos-delay="100">
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-6">
<i data-feather="credit-card" class="text-purple-600 w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold mb-4">Link Payment Method</h3>
<p class="text-gray-600">Connect your bank account or debit card to start purchasing crypto.</p>
</div>
<div class="bg-white p-8 rounded-xl shadow-md card-hover transition duration-300" data-aos="fade-up" data-aos-delay="200">
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-6">
<i data-feather="dollar-sign" class="text-purple-600 w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold mb-4">Make Your First Purchase</h3>
<p class="text-gray-600">Step-by-step guide to buying Bitcoin, Ethereum or other cryptocurrencies.</p>
</div>
<div class="bg-white p-8 rounded-xl shadow-md card-hover transition duration-300" data-aos="fade-up">
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-6">
<i data-feather="shield" class="text-purple-600 w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold mb-4">Security Best Practices</h3>
<p class="text-gray-600">Essential security tips to protect your investment from hackers and scams.</p>
</div>
<div class="bg-white p-8 rounded-xl shadow-md card-hover transition duration-300" data-aos="fade-up" data-aos-delay="100">
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-6">
<i data-feather="trending-up" class="text-purple-600 w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold mb-4">Track Your Investment</h3>
<p class="text-gray-600">Learn how to monitor your crypto portfolio and understand market movements.</p>
</div>
<div class="bg-white p-8 rounded-xl shadow-md card-hover transition duration-300" data-aos="fade-up" data-aos-delay="200">
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-6">
<i data-feather="arrow-right" class="text-purple-600 w-8 h-8"></i>
</div>
<h3 class="text-xl font-bold mb-4">Next Steps</h3>
<p class="text-gray-600">Where to go after your first purchase - wallets, DeFi, and more advanced topics.</p>
</div>
</div>
</div>
</section>
<!-- Step-by-Step Guide -->
<section id="steps" class="py-16 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-3xl font-bold text-gray-900 mb-4" data-aos="fade-up">5 Simple Steps to Buy Crypto</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto" data-aos="fade-up" data-aos-delay="100">Follow this beginner-friendly guide to make your first purchase</p>
</div>
<div class="relative">
<!-- Progress bar -->
<div class="hidden md:block absolute left-8 top-0 h-full w-1 bg-gray-200" style="margin-left: 1.75rem;">
<div class="progress-bar bg-purple-600 h-0 w-full" style="height: 100%;"></div>
</div>
<!-- Steps -->
<div class="space-y-12">
<!-- Step 1 -->
<div class="relative flex" data-aos="fade-up">
<div class="flex-shrink-0 w-14 h-14 rounded-full bg-purple-600 flex items-center justify-center text-white font-bold text-xl z-10">
1
</div>
<div class="ml-6 flex-grow">
<div class="bg-gray-50 p-6 rounded-lg shadow-sm">
<h3 class="text-xl font-bold mb-3">Sign Up on Coinbase</h3>
<p class="text-gray-600 mb-4">Go to Coinbase.com and click "Get Started" to create your account. You'll need to provide your name, email, and create a strong password.</p>
<div class="bg-white p-4 rounded border border-gray-200">
<div class="flex items-center">
<i data-feather="alert-circle" class="text-yellow-500 mr-2"></i>
<span class="font-medium">Pro Tip:</span>
</div>
<p class="mt-2 text-gray-600">Use a password manager to generate and store a strong, unique password for your Coinbase account.</p>
</div>
</div>
</div>
</div>
<!-- Step 2 -->
<div class="relative flex" data-aos="fade-up" data-aos-delay="100">
<div class="flex-shrink-0 w-14 h-14 rounded-full bg-purple-600 flex items-center justify-center text-white font-bold text-xl z-10">
2
</div>
<div class="ml-6 flex-grow">
<div class="bg-gray-50 p-6 rounded-lg shadow-sm">
<h3 class="text-xl font-bold mb-3">Verify Your Identity</h3>
<p class="text-gray-600 mb-4">Coinbase requires ID verification for security. You'll need to upload a photo of your government-issued ID and take a selfie.</p>
<div class="flex flex-wrap gap-4 mt-4">
<div class="flex items-center">
<i data-feather="check" class="text-green-500 mr-2"></i>
<span>Driver's License</span>
</div>
<div class="flex items-center">
<i data-feather="check" class="text-green-500 mr-2"></i>
<span>Passport</span>
</div>
<div class="flex items-center">
<i data-feather="check" class="text-green-500 mr-2"></i>
<span>National ID</span>
</div>
</div>
</div>
</div>
</div>
<!-- Step 3 -->
<div class="relative flex" data-aos="fade-up" data-aos-delay="200">
<div class="flex-shrink-0 w-14 h-14 rounded-full bg-purple-600 flex items-center justify-center text-white font-bold text-xl z-10">
3
</div>
<div class="ml-6 flex-grow">
<div class="bg-gray-50 p-6 rounded-lg shadow-sm">
<h3 class="text-xl font-bold mb-3">Add Payment Method</h3>
<p class="text-gray-600 mb-4">Link your bank account or debit card. Bank transfers are usually free but take 3-5 days. Debit cards process instantly but have fees.</p>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mt-4">
<div class="bg-white p-4 rounded border border-gray-200">
<div class="flex items-center mb-2">
<i data-feather="credit-card" class="text-blue-500 mr-2"></i>
<span class="font-medium">Debit Card</span>
</div>
<p class="text-sm text-gray-600">Instant purchase, ~3.99% fee</p>
</div>
<div class="bg-white p-4 rounded border border-gray-200">
<div class="flex items-center mb-2">
<i data-feather="bank" class="text-green-500 mr-2"></i>
<span class="font-medium">Bank Transfer</span>
</div>
<p class="text-sm text-gray-600">Free, takes 3-5 days</p>
</div>
</div>
</div>
</div>
</div>
<!-- Step 4 -->
<div class="relative flex" data-aos="fade-up" data-aos-delay="300">
<div class="flex-shrink-0 w-14 h-14 rounded-full bg-purple-600 flex items-center justify-center text-white font-bold text-xl z-10">
4
</div>
<div class="ml-6 flex-grow">
<div class="bg-gray-50 p-6 rounded-lg shadow-sm">
<h3 class="text-xl font-bold mb-3">Enable Two-Factor Authentication</h3>
<p class="text-gray-600 mb-4">For maximum security, set up 2FA using an authenticator app like Google Authenticator or Authy.</p>
<div class="flex items-start mt-4">
<i data-feather="alert-triangle" class="text-red-500 mr-2 mt-1"></i>
<p class="text-gray-600"><span class="font-medium">Important:</span> Never share your 2FA codes with anyone. Coinbase will never ask for them.</p>
</div>
</div>
</div>
</div>
<!-- Step 5 -->
<div class="relative flex" data-aos="fade-up" data-aos-delay="400">
<div class="flex-shrink-0 w-14 h-14 rounded-full bg-purple-600 flex items-center justify-center text-white font-bold text-xl z-10">
5
</div>
<div class="ml-6 flex-grow">
<div class="bg-gray-50 p-6 rounded-lg shadow-sm">
<h3 class="text-xl font-bold mb-3">Make Your First Purchase</h3>
<p class="text-gray-600 mb-4">Navigate to the "Buy/Sell" tab, select the cryptocurrency you want (we recommend starting with Bitcoin or Ethereum), enter the amount, and confirm your purchase.</p>
<div class="bg-white p-4 rounded border border-gray-200 mt-4">
<p class="text-gray-600"><span class="font-medium">Remember:</span> Only invest what you can afford to lose. Crypto markets are volatile.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Video Demo -->
<section class="py-16 bg-purple-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-12">
<h2 class="text-3xl font-bold text-gray-900 mb-4" data-aos="fade-up">Watch the Process</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto" data-aos="fade-up" data-aos-delay="100">See exactly how to buy crypto on Coinbase with our step-by-step video guide</p>
</div>
<div class="aspect-w-16 aspect-h-9 rounded-xl overflow-hidden shadow-xl" data-aos="zoom-in">
<div class="w-full h-96 bg-gray-200 flex items-center justify-center">
<div class="text-center">
<i data-feather="play-circle" class="w-16 h-16 text-purple-600 mx-auto"></i>
<p class="mt-4 text-gray-600">Video demonstration coming soon</p>
</div>
</div>
</div>
</div>
</section>
<!-- FAQ Section -->
<section id="faq" class="py-16 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="text-center mb-16">
<h2 class="text-3xl font-bold text-gray-900 mb-4" data-aos="fade-up">Frequently Asked Questions</h2>
<p class="text-xl text-gray-600 max-w-3xl mx-auto" data-aos="fade-up" data-aos-delay="100">Answers to common questions from beginners</p>
</div>
<div class="max-w-3xl mx-auto">
<div class="space-y-6">
<!-- FAQ Item 1 -->
<div class="border border-gray-200 rounded-lg overflow-hidden" data-aos="fade-up">
<button class="faq-toggle w-full flex justify-between items-center p-6 focus:outline-none">
<h3 class="text-lg font-medium text-left">Is Coinbase safe to use?</h3>
<i data-feather="chevron-down" class="text-purple-600 transform transition-transform duration-300"></i>
</button>
<div class="faq-content px-6 pb-6 hidden">
<p class="text-gray-600">Yes, Coinbase is one of the most reputable and secure cryptocurrency exchanges. They store 98% of customer funds in offline cold storage, are insured against breaches, and comply with strict financial regulations. However, you should always enable 2FA and follow security best practices.</p>
</div>
</div>
<!-- FAQ Item 2 -->
<div class="border border-gray-200 rounded-lg overflow-hidden" data-aos="fade-up" data-aos-delay="100">
<button class="faq-toggle w-full flex justify-between items-center p-6 focus:outline-none">
<h3 class="text-lg font-medium text-left">How much should I invest as a beginner?</h3>
<i data-feather="chevron-down" class="text-purple-600 transform transition-transform duration-300"></i>
</button>
<div class="faq-content px-6 pb-6 hidden">
<p class="text-gray-600">Only invest what you can afford to lose. A good rule of thumb is to start with a small amount (like $50-$100) to get comfortable with the process before committing more funds. Cryptocurrencies are volatile, so never invest money you might need in the short term.</p>
</div>
</div>
<!-- FAQ Item 3 -->
<div class="border border-gray-200 rounded-lg overflow-hidden" data-aos="fade-up" data-aos-delay="200">
<button class="faq-toggle w-full flex justify-between items-center p-6 focus:outline-none">
<h3 class="text-lg font-medium text-left">What's the difference between Bitcoin and Ethereum?</h3>
<i data-feather="chevron-down" class="text-purple-600 transform transition-transform duration-300"></i>
</button>
<div class="faq-content px-6 pb-6 hidden">
<p class="text-gray-600">Bitcoin is primarily a digital currency and store of value, while Ethereum is a programmable blockchain that supports smart contracts and decentralized applications. Bitcoin is often called "digital gold," while Ethereum is more like a "world computer." Both are good starting points for beginners.</p>
</div>
</div>
<!-- FAQ Item 4 -->
<div class="border border-gray-200 rounded-lg overflow-hidden" data-aos="fade-up" data-aos-delay="300">
<button class="faq-toggle w-full flex justify-between items-center p-6 focus:outline-none">
<h3 class="text-lg font-medium text-left">When should I consider a crypto wallet?</h3>
<i data-feather="chevron-down" class="text-purple-600 transform transition-transform duration-300"></i>
</button>
<div class="faq-content px-6 pb-6 hidden">
<p class="text-gray-600">For small amounts (under $1,000), keeping your crypto on Coinbase is generally fine. If you accumulate more value or want full control over your assets, consider transferring to a hardware wallet like Ledger or Trezor. Never store large amounts on exchanges long-term.</p>
</div>
</div>
<!-- FAQ Item 5 -->
<div class="border border-gray-200 rounded-lg overflow-hidden" data-aos="fade-up" data-aos-delay="400">
<button class="faq-toggle w-full flex justify-between items-center p-6 focus:outline-none">
<h3 class="text-lg font-medium text-left">How do I sell my crypto when I want to?</h3>
<i data-feather="chevron-down" class="text-purple-600 transform transition-transform duration-300"></i>
</button>
<div class="faq-content px-6 pb-6 hidden">
<p class="text-gray-600">The process is similar to buying. Go to the "Buy/Sell" tab on Coinbase, select "Sell," choose the cryptocurrency you want to sell, enter the amount, and confirm. The funds will be deposited to your linked bank account, usually within 1-3 business days.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- CTA Section -->
<section class="py-16 hero-gradient text-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 text-center">
<h2 class="text-3xl font-bold mb-6" data-aos="fade-up">Ready to Start Your Crypto Journey?</h2>
<p class="text-xl mb-8 max-w-3xl mx-auto" data-aos="fade-up" data-aos-delay="100">Join thousands of beginners who've successfully bought their first cryptocurrency using this guide.</p>
<a href="#course" class="inline-block bg-white text-purple-600 px-8 py-4 rounded-lg font-bold text-lg hover:bg-gray-100 transition duration-300 shadow-lg" data-aos="zoom-in">Begin Learning Now</a>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-900 text-white py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<div class="flex items-center mb-4">
<i data-feather="dollar-sign" class="text-purple-400 mr-2"></i>
<span class="text-xl font-bold">CryptoBasics</span>
</div>
<p class="text-gray-400">Making cryptocurrency accessible to everyone through simple, step-by-step education.</p>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Resources</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Glossary</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Tools</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Legal</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">Disclaimer</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Privacy Policy</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Terms of Service</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Connect</h3>
<div class="flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="facebook"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="instagram"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i data-feather="youtube"></i></a>
</div>
<p class="mt-4 text-gray-400">Subscribe to our newsletter</p>
<div class="mt-2 flex">
<input type="email" placeholder="Your email" class="px-4 py-2 rounded-l-lg text-gray-900 focus:outline-none w-full">
<button class="bg-purple-600 px-4 py-2 rounded-r-lg hover:bg-purple-700 transition">Join</button>
</div>
</div>
</div>
<div class="border-t border-gray-800 mt-12 pt-8 text-center text-gray-400">
<p>© 2023 CryptoBasics. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Initialize AOS
AOS.init({
duration: 800,
easing: 'ease-in-out',
once: true
});
// Initialize Feather Icons
feather.replace();
// FAQ toggle functionality
document.querySelectorAll('.faq-toggle').forEach(button => {
button.addEventListener('click', () => {
const content = button.nextElementSibling;
const icon = button.querySelector('i');
// Toggle content
content.classList.toggle('hidden');
// Rotate icon
if (content.classList.contains('hidden')) {
icon.style.transform = 'rotate(0deg)';
} else {
icon.style.transform = 'rotate(180deg)';
}
});
});
// Animate progress bar on scroll
window.addEventListener('scroll', () => {
const progressBar = document.querySelector('.progress-bar');
const scrollPosition = window.scrollY;
const documentHeight = document.body.scrollHeight - window.innerHeight;
const scrollPercentage = (scrollPosition / documentHeight) * 100;
progressBar.style.height = `${scrollPercentage}%`;
});
// Vanta.js background for hero section
VANTA.GLOBE({
el: "#hero",
mouseControls: true,
touchControls: true,
gyroControls: false,
minHeight: 200.00,
minWidth: 200.00,
scale: 1.00,
scaleMobile: 1.00,
color: 0x7b5cfa,
backgroundColor: 0x0,
size: 0.8
});
</script>
</body>
</html>
|