Spaces:
Running
Running
File size: 35,715 Bytes
5a3ec54 42009c2 5a3ec54 cc3bff3 42009c2 5a3ec54 42009c2 5a3ec54 cc3bff3 5a3ec54 cc3bff3 5a3ec54 cc3bff3 5a3ec54 cc3bff3 5a3ec54 cc3bff3 5a3ec54 cc3bff3 5a3ec54 cc3bff3 5a3ec54 cc3bff3 5a3ec54 42009c2 5a3ec54 42009c2 5a3ec54 42009c2 5a3ec54 42009c2 5a3ec54 42009c2 5a3ec54 42009c2 5a3ec54 42009c2 5a3ec54 42009c2 5a3ec54 42009c2 5a3ec54 42009c2 cc3bff3 5a3ec54 42009c2 5a3ec54 cc3bff3 5a3ec54 cc3bff3 5a3ec54 42009c2 cc3bff3 5a3ec54 |
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 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Growth Mindset - Interactive Learning Experience</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<style>
:root {
--primary-gradient: linear-gradient(135deg, #86b5ef, #a755f7);
--card-gradient: linear-gradient(135deg, #f5f7fa, #e4e8f0);
--hover-gradient: linear-gradient(135deg, #e4e8f0, #d1d8e6);
--active-gradient: linear-gradient(135deg, #a755f7, #86b5ef);
--text-primary: #333333;
--text-secondary: #666666;
--border-radius: 12px;
--transition-speed: 0.3s;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
color: var(--text-primary);
background-color: #f5f7fa;
line-height: 1.5;
overflow-x: hidden;
padding-bottom: 100px;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
header {
background: var(--primary-gradient);
color: white;
border-radius: 0 0 var(--border-radius) var(--border-radius);
padding: 80px 0 100px;
margin-bottom: -60px;
text-align: center;
position: relative;
overflow: hidden;
}
header:before {
content: '';
position: absolute;
top: -10%;
left: -10%;
width: 120%;
height: 120%;
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
animation: pulse 10s infinite ease-in-out;
}
@keyframes pulse {
0% { transform: scale(1); opacity: 0.5; }
50% { transform: scale(1.5); opacity: 0.8; }
100% { transform: scale(1); opacity: 0.5; }
}
.nav-container {
position: sticky;
top: 20px;
z-index: 100;
padding: 0 20px;
margin-bottom: 40px;
}
.nav-bar {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: var(--border-radius);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
padding: 10px;
display: flex;
justify-content: space-between;
overflow-x: auto;
scrollbar-width: none;
}
.nav-bar::-webkit-scrollbar {
display: none;
}
.nav-item {
white-space: nowrap;
padding: 10px 16px;
border-radius: var(--border-radius);
font-weight: 500;
font-size: 0.9rem;
transition: all var(--transition-speed);
cursor: pointer;
margin: 0 4px;
}
.nav-item:hover {
background: var(--hover-gradient);
}
.nav-item.active {
background: var(--active-gradient);
color: white;
}
.cards-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 30px;
padding: 20px 0;
}
.card {
background: white;
border-radius: var(--border-radius);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
overflow: hidden;
transition: all var(--transition-speed);
cursor: pointer;
position: relative;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.card-header {
background: var(--card-gradient);
padding: 20px;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.card-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 5px;
color: var(--text-primary);
}
.card-subtitle {
color: var(--text-secondary);
font-size: 1rem;
}
.card-body {
max-height: 0;
overflow: hidden;
transition: max-height 0.5s ease-out;
}
.card-content {
padding: 20px;
color: var(--text-secondary);
}
.card.expanded .card-body {
max-height: 2000px;
transition: max-height 1s ease-in;
}
.card-icon {
position: absolute;
top: 20px;
right: 20px;
font-size: 1.2rem;
transition: transform var(--transition-speed);
}
.card.expanded .card-icon {
transform: rotate(180deg);
}
.section-title {
margin: 30px 0;
text-align: center;
font-size: 2.5rem;
font-weight: 700;
background: var(--primary-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent;
}
@media (max-width: 768px) {
.cards-container {
grid-template-columns: 1fr;
}
header {
padding: 60px 0 80px;
}
.nav-item {
padding: 8px 12px;
font-size: 0.8rem;
}
}
.card-indicator {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 3px;
background: var(--primary-gradient);
transform: scaleX(0);
transform-origin: 0 50%;
transition: transform var(--transition-speed);
}
.card.expanded .card-indicator {
transform: scaleX(1);
}
.progress-container {
position: fixed;
top: 0;
width: 100%;
height: 4px;
background: transparent;
z-index: 1000;
}
.progress-bar {
height: 4px;
background: var(--primary-gradient);
width: 0%;
}
.floating-button {
position: fixed;
bottom: 30px;
right: 30px;
width: 60px;
height: 60px;
border-radius: 50%;
background: var(--primary-gradient);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.5rem;
cursor: pointer;
transition: all var(--transition-speed);
z-index: 100;
}
.floating-button:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.particles {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.particle {
position: absolute;
background: rgba(255, 255, 255, 0.5);
border-radius: 50%;
}
</style>
</head>
<body>
<div class="progress-container">
<div class="progress-bar" id="progressBar"></div>
</div>
<header>
<div class="particles" id="particles"></div>
<div class="container">
<h1 class="text-4xl md:text-6xl font-bold mb-4">Growth Mindset</h1>
<p class="text-xl md:text-2xl opacity-90">Interactive Personal Development Journey</p>
</div>
</header>
<div class="nav-container">
<nav class="nav-bar" id="navBar">
<div class="nav-item active" data-target="section1">Positive Attitude</div>
<div class="nav-item" data-target="section2">Effective Communication</div>
<div class="nav-item" data-target="section3">Self-Discipline</div>
<div class="nav-item" data-target="section4">Overcoming Limiting Beliefs</div>
<div class="nav-item" data-target="section5">Time Management</div>
<div class="nav-item" data-target="section6">Continuous Learning</div>
<div class="nav-item" data-target="section7">Financial Wisdom</div>
<div class="nav-item" data-target="section8">Personal Development</div>
<div class="nav-item" data-target="section9">Purpose & Goals</div>
<div class="nav-item" data-target="section10">Gratitude & Resilience</div>
</nav>
</div>
<div class="container">
<section id="section1">
<h2 class="section-title">Positive Attitude</h2>
<div class="cards-container">
<div class="card" data-section="section1">
<div class="card-header">
<h3 class="card-title">Cultivate Your Mental Garden</h3>
<p class="card-subtitle">Plant seeds of positivity in your mind daily</p>
<i class="fas fa-chevron-down card-icon"></i>
</div>
<div class="card-body">
<div class="card-content">
<p>Imagine your mind as a garden where every thought is a seed waiting to bloom. Each morning, you have the power to choose the type of garden you want to cultivate.</p>
<p class="mt-4">A positive attitude is the sunlight that nourishes these seeds, transforming even the smallest spark of hope into a vibrant flower of possibility. When you greet the day with optimism, challenges become opportunities, and setbacks transform into lessons that fuel your growth.</p>
<p class="mt-4">Every experience, whether uplifting or testing, adds color and depth to your personal masterpiece. This daily practice of positivity not only refines your outlook but also magnetizes opportunities and inspiring connections.</p>
<p class="mt-4">Embrace the mindset that every moment is a chance to improve, and let your positive energy ripple through every aspect of your life. Commit to cultivating this attitude each day, and watch as your inner garden flourishes beyond measure.</p>
</div>
</div>
<div class="card-indicator"></div>
</div>
</div>
</section>
<section id="section2">
<h2 class="section-title">Effective Communication</h2>
<div class="cards-container">
<div class="card" data-section="section2">
<div class="card-header">
<h3 class="card-title">Build Bridges Between Minds</h3>
<p class="card-subtitle">Connect through clarity, empathy, and authenticity</p>
<i class="fas fa-chevron-down card-icon"></i>
</div>
<div class="card-body">
<div class="card-content">
<p>Effective communication is the bridge that connects hearts and minds. Each day, strive to refine not only how you speak but also how you listen.</p>
<p class="mt-4">Picture every conversation as an opportunity to exchange ideas that spark innovation and understanding. When you communicate with clarity, empathy, and authenticity, you create an environment where trust and collaboration thrive.</p>
<p class="mt-4">It's about articulating your vision while remaining open to the insights of others. Imagine your words as seeds—when delivered with care, they blossom into relationships that enrich your life and open doors to new possibilities.</p>
<p class="mt-4">By actively engaging in meaningful dialogue and truly hearing the voices around you, you empower both yourself and your community. Practice expressing your thoughts with precision and warmth, and listen with the intent to learn.</p>
<p class="mt-4">Each small improvement in your communication skills builds a foundation for lasting connections and transformative change.</p>
</div>
</div>
<div class="card-indicator"></div>
</div>
</div>
</section>
<section id="section3">
<h2 class="section-title">Self-Discipline</h2>
<div class="cards-container">
<div class="card" data-section="section3">
<div class="card-header">
<h3 class="card-title">Master Your Actions</h3>
<p class="card-subtitle">Transform dreams into reality through consistent habits</p>
<i class="fas fa-chevron-down card-icon"></i>
</div>
<div class="card-body">
<div class="card-content">
<p>Self-discipline is the cornerstone of turning dreams into reality. Think of it as a muscle that grows stronger with every small, deliberate action you take.</p>
<p class="mt-4">Each day, commit to building habits that steer you closer to your goals, whether it's waking up a few minutes earlier, completing a challenging task, or practicing a new skill. This daily commitment transforms fleeting motivation into a powerful force that overcomes obstacles and distractions.</p>
<p class="mt-4">Self-discipline is not about harsh restrictions but about setting gentle, consistent boundaries that guide you toward excellence. Visualize every disciplined act as a brick in the strong foundation of your future.</p>
<p class="mt-4">Even when faced with setbacks, remember that persistence compounds over time. Every moment of focus and dedication contributes to your personal growth.</p>
<p class="mt-4">Embrace the journey of self-discipline, knowing that each small victory not only builds your resilience but also ignites a lasting passion for achievement.</p>
</div>
</div>
<div class="card-indicator"></div>
</div>
</div>
</section>
<section id="section4">
<h2 class="section-title">Overcoming Limiting Beliefs</h2>
<div class="cards-container">
<div class="card" data-section="section4">
<div class="card-header">
<h3 class="card-title">Rewrite Your Inner Narrative</h3>
<p class="card-subtitle">Turn mental barriers into bridges of possibility</p>
<i class="fas fa-chevron-down card-icon"></i>
</div>
<div class="card-body">
<div class="card-content">
<p>Your mind is a vast landscape, and the beliefs you hold can either be barriers or bridges to your potential. Every day, challenge the internal narratives that say "I can't" or "I'm not enough."</p>
<p class="mt-4">Imagine these limiting beliefs as walls blocking the warm light of possibility. By questioning and dismantling these barriers, you open pathways to innovation and self-discovery.</p>
<p class="mt-4">Replace doubt with empowering affirmations that remind you of your unique strengths and limitless capacity for growth. When you actively choose to rewrite your inner dialogue, you transform obstacles into stepping stones toward a brighter future.</p>
<p class="mt-4">Each small act of courage, whether it's trying a new skill or stepping outside your comfort zone, weakens the grip of self-doubt. Embrace vulnerability as a sign of strength, and let each day be an opportunity to build confidence.</p>
<p class="mt-4">As you let go of what holds you back, you unlock doors to achievements you once thought impossible, paving the way for continuous transformation.</p>
</div>
</div>
<div class="card-indicator"></div>
</div>
</div>
</section>
<section id="section5">
<h2 class="section-title">Time Management</h2>
<div class="cards-container">
<div class="card" data-section="section5">
<div class="card-header">
<h3 class="card-title">Sculpt Your Hours with Purpose</h3>
<p class="card-subtitle">Transform moments into accomplishments</p>
<i class="fas fa-chevron-down card-icon"></i>
</div>
<div class="card-body">
<div class="card-content">
<p>Time is your most precious resource, a constant river flowing with potential. Every day, take control of your schedule by setting clear priorities that align with your long-term aspirations.</p>
<p class="mt-4">Imagine each moment as a droplet that contributes to a vast ocean of opportunity. Organize your day like an artist arranging colors on a canvas—each task, no matter how small, plays a role in creating the masterpiece of your life.</p>
<p class="mt-4">Dedicate time to planning, focus on what truly matters, and eliminate distractions that steal away your valuable minutes. By breaking large goals into manageable tasks, you not only build momentum but also celebrate small victories that propel you forward.</p>
<p class="mt-4">Embrace routines that bring structure to your day while allowing flexibility for creativity. With every decision to use your time wisely, you lay the foundation for success and fulfillment.</p>
<p class="mt-4">Mastering time management is about making each second count, transforming potential into tangible achievement.</p>
</div>
</div>
<div class="card-indicator"></div>
</div>
</div>
</section>
<section id="section6">
<h2 class="section-title">Continuous Learning</h2>
<div class="cards-container">
<div class="card" data-section="section6">
<div class="card-header">
<h3 class="card-title">Expand Your Horizons Daily</h3>
<p class="card-subtitle">Build knowledge that fuels your evolution</p>
<i class="fas fa-chevron-down card-icon"></i>
</div>
<div class="card-body">
<div class="card-content">
<p>In a world that is constantly evolving, continuous learning is the key to staying relevant and inspired. Each day offers an opportunity to expand your horizons, whether by reading, taking an online course, or engaging in thoughtful conversation.</p>
<p class="mt-4">Imagine your mind as an ever-growing library where each new piece of knowledge adds depth to your understanding of the world. Embrace curiosity as your guide and let every lesson, both big and small, be a stepping stone toward greater expertise.</p>
<p class="mt-4">By committing to learn daily, you not only sharpen your skills but also cultivate adaptability and resilience. Consider each challenge as a teacher that imparts wisdom and every mistake as a lesson in disguise.</p>
<p class="mt-4">As you weave continuous learning into your daily routine, you transform setbacks into insights and your ambitions into achievable goals.</p>
<p class="mt-4">This habit of perpetual growth ensures that you remain a dynamic force in a never-changing landscape, ready to seize new opportunities.</p>
</div>
</div>
<div class="card-indicator"></div>
</div>
</div>
</section>
<section id="section7">
<h2 class="section-title">Financial Wisdom</h2>
<div class="cards-container">
<div class="card" data-section="section7">
<div class="card-header">
<h3 class="card-title">Cultivate Financial Well-being</h3>
<p class="card-subtitle">Build prosperity through mindful choices</p>
<i class="fas fa-chevron-down card-icon"></i>
</div>
<div class="card-body">
<div class="card-content">
<p>Financial wisdom is not about how much you earn but how effectively you manage what you have. Every day, make informed choices that contribute to long-term stability and growth.</p>
<p class="mt-4">Imagine your finances as a well-tended garden that requires regular care. Budgeting, saving, and investing are the tools that nurture its growth. By tracking your expenses and setting realistic financial goals, you create a framework for prosperity that extends far beyond immediate gain.</p>
<p class="mt-4">Each small decision, like resisting impulsive purchases or setting aside a portion of your income, builds a resilient foundation for your future.</p>
<p class="mt-4">Educate yourself on money management, explore opportunities for smart investments, and learn from both successes and setbacks. With every wise financial choice, you reinforce your security and create a path toward lasting abundance.</p>
<p class="mt-4">Embrace this daily practice as a means to empower yourself, knowing that financial discipline is a critical element in achieving overall life balance and freedom.</p>
</div>
</div>
<div class="card-indicator"></div>
</div>
</div>
</section>
<section id="section8">
<h2 class="section-title">Personal Development</h2>
<div class="cards-container">
<div class="card" data-section="section8">
<div class="card-header">
<h3 class="card-title">Become Your Best Self</h3>
<p class="card-subtitle">Architect your evolution through intentional growth</p>
<i class="fas fa-chevron-down card-icon"></i>
</div>
<div class="card-body">
<div class="card-content">
<p>Personal development is a lifelong journey of evolving into the best version of yourself. Every day, invest time in self-reflection, skill building, and emotional growth.</p>
<p class="mt-4">Picture your life as an ever-unfolding story where each chapter is enriched by the lessons you learn and the challenges you overcome. Embrace each new experience as an opportunity to grow, whether it's mastering a new skill or deepening your understanding of your own emotions.</p>
<p class="mt-4">Set clear, attainable goals that challenge you, and celebrate each milestone along the way. Surround yourself with mentors and supportive communities that inspire you to push beyond your limits.</p>
<p class="mt-4">By dedicating daily time to self-improvement, you gradually transform your habits, expand your capabilities, and refine your character. Each little step you take on this path not only brings you closer to your aspirations but also deepens your sense of purpose and fulfillment.</p>
<p class="mt-4">Personal development is the art of becoming the architect of your own destiny.</p>
</div>
</div>
<div class="card-indicator"></div>
</div>
</div>
</section>
<section id="section9">
<h2 class="section-title">Purpose & Goals</h2>
<div class="cards-container">
<div class="card" data-section="section9">
<div class="card-header">
<h3 class="card-title">Chart Your Life's Direction</h3>
<p class="card-subtitle">Transform vision into achievement through purposeful planning</p>
<i class="fas fa-chevron-down card-icon"></i>
</div>
<div class="card-body">
<div class="card-content">
<p>Your purpose is the guiding star that illuminates your path to greatness. Every day, take a moment to reflect on what truly drives you and set clear, actionable goals that align with your deepest values.</p>
<p class="mt-4">Visualize your journey as a masterpiece in progress, where each goal is a bold brush stroke contributing to the grand picture of your life. This daily practice of purpose and goal setting transforms abstract dreams into concrete plans, fueling your motivation to overcome obstacles and seize opportunities.</p>
<p class="mt-4">By breaking your long-term vision into manageable tasks, you create a road map that not only guides your actions but also instills confidence and determination. Each step taken in alignment with your purpose builds more momentum and reinforces your commitment to personal excellence.</p>
<p class="mt-4">Embrace the clarity that comes with setting intentions, and let each day be an opportunity to reassess, refine, and celebrate your progress.</p>
<p class="mt-4">Your unwavering purpose is the engine that drives every achievement and lights the way to a fulfilling future.</p>
</div>
</div>
<div class="card-indicator"></div>
</div>
</div>
</section>
<section id="section10">
<h2 class="section-title">Gratitude & Resilience</h2>
<div class="cards-container">
<div class="card" data-section="section10">
<div class="card-header">
<h3 class="card-title">Strengthen Your Inner Foundation</h3>
<p class="card-subtitle">Transform challenges into growth through appreciation</p>
<i class="fas fa-chevron-down card-icon"></i>
</div>
<div class="card-body">
<div class="card-content">
<p>Gratitude and resilience are the dynamic duo that empower you to navigate life's challenges with grace and strength. Every day, pause to acknowledge the blessings, big and small, that enrich your journey.</p>
<p class="mt-4">Imagine gratitude as the gentle rain that nourishes your soul, while resilience is the sturdy tree that stands firm amid life's storms. When you express thanks for your experiences, even the difficult ones, you cultivate an inner strength that transforms adversity into opportunity.</p>
<p class="mt-4">Each moment of gratitude reinforces your ability to bounce back from setbacks, turning obstacles into lessons and challenges into catalysts for growth. This daily practice builds a foundation of emotional fortitude that enables you to face uncertainties with a calm and confident spirit.</p>
<p class="mt-4">By consistently recognizing the positive aspects of your life, you not only uplift your own mood but also inspire those around you to persevere.</p>
<p class="mt-4">Embrace gratitude and resilience as essential tools for living a rich, balanced, and purpose-driven life.</p>
</div>
</div>
<div class="card-indicator"></div>
</div>
</div>
</section>
</div>
<div class="floating-button" id="scrollTop">
<i class="fas fa-arrow-up"></i>
</div>
<script>
// Create particles
function createParticles() {
const particlesContainer = document.getElementById('particles');
const particleCount = 20;
for (let i = 0; i < particleCount; i++) {
const particle = document.createElement('div');
particle.classList.add('particle');
const size = Math.random() * 15 + 5;
const posX = Math.random() * 100;
const posY = Math.random() * 100;
const duration = Math.random() * 20 + 10;
const delay = Math.random() * 5;
particle.style.width = `${size}px`;
particle.style.height = `${size}px`;
particle.style.left = `${posX}%`;
particle.style.top = `${posY}%`;
particle.style.opacity = Math.random() * 0.5 + 0.1;
particle.style.animation = `float ${duration}s ${delay}s infinite ease-in-out`;
particlesContainer.appendChild(particle);
}
}
// Add animation keyframes dynamically
const style = document.createElement('style');
style.innerHTML = `
@keyframes float {
0% { transform: translate(0, 0) rotate(0deg); }
25% { transform: translate(20px, 20px) rotate(90deg); }
50% { transform: translate(0, 40px) rotate(180deg); }
75% { transform: translate(-20px, 20px) rotate(270deg); }
100% { transform: translate(0, 0) rotate(360deg); }
}
`;
document.head.appendChild(style);
// Card expansion
document.querySelectorAll('.card').forEach(card => {
card.addEventListener('click', function() {
this.classList.toggle('expanded');
});
});
// Navigation
document.querySelectorAll('.nav-item').forEach(item => {
item.addEventListener('click', function() {
const targetId = this.getAttribute('data-target');
const targetElement = document.getElementById(targetId);
document.querySelectorAll('.nav-item').forEach(navItem => {
navItem.classList.remove('active');
});
this.classList.add('active');
window.scrollTo({
top: targetElement.offsetTop - 100,
behavior: 'smooth'
});
});
});
// Update active nav item on scroll
window.addEventListener('scroll', function() {
const scrollPosition = window.scrollY;
document.querySelectorAll('section').forEach(section => {
const sectionTop = section.offsetTop - 150;
const sectionBottom = sectionTop + section.offsetHeight;
if (scrollPosition >= sectionTop && scrollPosition < sectionBottom) {
const targetId = section.getAttribute('id');
document.querySelectorAll('.nav-item').forEach(item => {
item.classList.remove('active');
if (item.getAttribute('data-target') === targetId) {
item.classList.add('active');
// Ensure the active nav item is visible in the scrollable nav
const navBar = document.getElementById('navBar');
const itemLeft = item.offsetLeft;
const navLeft = navBar.scrollLeft;
const navWidth = navBar.offsetWidth;
if (itemLeft < navLeft || itemLeft > navLeft + navWidth - item.offsetWidth) {
navBar.scrollTo({
left: itemLeft - navWidth / 2 + item.offsetWidth / 2,
behavior: 'smooth'
});
}
}
});
}
});
// Update progress bar
const totalHeight = document.body.scrollHeight - window.innerHeight;
const progress = (scrollPosition / totalHeight) * 100;
document.getElementById('progressBar').style.width = `${progress}%`;
});
// Scroll to top button
document.getElementById('scrollTop').addEventListener('click', function() {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
// Hide/show scroll to top button
window.addEventListener('scroll', function() {
const scrollBtn = document.getElementById('scrollTop');
if (window.scrollY > 300) {
scrollBtn.style.opacity = '1';
scrollBtn.style.transform = 'scale(1)';
} else {
scrollBtn.style.opacity = '0';
scrollBtn.style.transform = 'scale(0.8)';
}
});
// Initialize
document.addEventListener('DOMContentLoaded', function() {
createParticles();
// Simulate a click on the first nav item
document.querySelector('.nav-item').click();
// Add some initial animations
document.querySelectorAll('.card').forEach((card, index) => {
card.style.opacity = '0';
card.style.transform = 'translateY(20px)';
setTimeout(() => {
card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
card.style.opacity = '1';
card.style.transform = 'translateY(0)';
}, 100 + index * 100);
});
});
</script>
</body>
</html> |