Spaces:
Running
Running
Create a clean, modern, and fully responsive personal website with the following: **Personal Info** - Name: Sudhan Chapagain - Age: 17 - Location: Butwal‑8, Sukhanagar, Rupandehi, Nepal - Education: Grade 11 (Deep Boarding High School) - Contact: itismyemailid0@gmail.com, +977‑9767023616 - Profile photo embedded from https://i.postimg.cc/1VsCJqq1 **Sections** 1. Home – Welcome headline “Hi, I’m Sudhan Chapagain” with tagline “Young Dreamer from Butwal | Passionate About Growth & Opportunity” and centered profile image. 2. About Me – Short intro: “I’m a 17‑year‑old student from Butwal, full of dreams and energy. I believe in hard work, simplicity, and always aiming high.” Mention interests in education and self‑growth. 3. Education – Currently Grade 11; SEE done at Deep Boarding High School; preparing for top university applications abroad. 4. Goals & Vision – Aims to study abroad (UK/Australia), seeking scholarships, growth, and meaningful societal impact. 5. Hobbies & Interests – Creative writing (Kabita Bachan), public speaking, TikTok content creation, online learning, social media networking, volunteering, leadership roles. 6. Social Media – Add icon links for Instagram, Facebook, TikTok, and X. 7. Contact – Include a simple form, email and phone buttons, plus optional map embed for Butwal. **Design** - Light mode with white background and soft sky‑blue accent - Modern font (Poppins or Inter), centered layout, rounded cards with soft shadows - Mobile‑first responsiveness - Header with logo text “Sudhan” + small deer icon Generate a fast‑loading, SEO‑ready site with smooth section scroll and mobile previews. - Initial Deployment
5f389e3 verified | <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Sudhan Chapagain - Young Dreamer from Butwal</title> | |
| <meta name="description" content="Personal website of Sudhan Chapagain, a 17-year-old student from Butwal, Nepal passionate about growth and opportunities."> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet"> | |
| <style> | |
| body { | |
| font-family: 'Poppins', sans-serif; | |
| scroll-behavior: smooth; | |
| } | |
| .nav-link { | |
| position: relative; | |
| } | |
| .nav-link::after { | |
| content: ''; | |
| position: absolute; | |
| width: 0; | |
| height: 2px; | |
| bottom: -2px; | |
| left: 0; | |
| background-color: #38bdf8; | |
| transition: width 0.3s ease; | |
| } | |
| .nav-link:hover::after { | |
| width: 100%; | |
| } | |
| .active::after { | |
| width: 100%; | |
| } | |
| .profile-img { | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); | |
| transition: transform 0.3s ease; | |
| } | |
| .profile-img:hover { | |
| transform: scale(1.03); | |
| } | |
| .section-card { | |
| transition: transform 0.3s ease, box-shadow 0.3s ease; | |
| } | |
| .section-card: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); | |
| } | |
| .social-icon { | |
| transition: transform 0.3s ease, color 0.3s ease; | |
| } | |
| .social-icon:hover { | |
| transform: translateY(-3px); | |
| color: #38bdf8; | |
| } | |
| .hobby-icon { | |
| font-size: 1.5rem; | |
| color: #38bdf8; | |
| } | |
| .contact-input:focus { | |
| outline: none; | |
| box-shadow: 0 0 0 2px #38bdf8; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-white text-gray-800"> | |
| <!-- Header --> | |
| <header class="sticky top-0 z-50 bg-white bg-opacity-90 backdrop-blur-sm shadow-sm"> | |
| <div class="container mx-auto px-4 py-3 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-deer text-blue-400 text-xl"></i> | |
| <a href="#home" class="text-xl font-bold text-gray-800 hover:text-blue-400 transition">Sudhan</a> | |
| </div> | |
| <nav class="hidden md:flex space-x-8"> | |
| <a href="#home" class="nav-link">Home</a> | |
| <a href="#about" class="nav-link">About</a> | |
| <a href="#education" class="nav-link">Education</a> | |
| <a href="#goals" class="nav-link">Goals</a> | |
| <a href="#hobbies" class="nav-link">Hobbies</a> | |
| <a href="#contact" class="nav-link">Contact</a> | |
| </nav> | |
| <button id="mobile-menu-button" class="md:hidden text-gray-800"> | |
| <i class="fas fa-bars text-xl"></i> | |
| </button> | |
| </div> | |
| <!-- Mobile Menu --> | |
| <div id="mobile-menu" class="hidden md:hidden bg-white py-2 px-4 shadow-lg"> | |
| <div class="flex flex-col space-y-3"> | |
| <a href="#home" class="nav-link py-2">Home</a> | |
| <a href="#about" class="nav-link py-2">About</a> | |
| <a href="#education" class="nav-link py-2">Education</a> | |
| <a href="#goals" class="nav-link py-2">Goals</a> | |
| <a href="#hobbies" class="nav-link py-2">Hobbies</a> | |
| <a href="#contact" class="nav-link py-2">Contact</a> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Main Content --> | |
| <main> | |
| <!-- Home Section --> | |
| <section id="home" class="min-h-screen flex items-center justify-center py-20 px-4"> | |
| <div class="container mx-auto flex flex-col items-center"> | |
| <img src="https://i.postimg.cc/1VsCJqq1" alt="Sudhan Chapagain" class="profile-img w-48 h-48 md:w-56 md:h-56 rounded-full object-cover border-4 border-blue-100 mb-8"> | |
| <h1 class="text-4xl md:text-5xl font-bold text-center mb-4">Hi, I'm <span class="text-blue-400">Sudhan Chapagain</span></h1> | |
| <p class="text-xl md:text-2xl text-gray-600 text-center mb-8 max-w-2xl">Young Dreamer from Butwal | Passionate About Growth & Opportunity</p> | |
| <div class="flex space-x-4"> | |
| <a href="#contact" class="bg-blue-400 hover:bg-blue-500 text-white px-6 py-3 rounded-full font-medium transition shadow-md">Get in Touch</a> | |
| <a href="#about" class="border-2 border-blue-400 text-blue-400 hover:bg-blue-50 px-6 py-3 rounded-full font-medium transition">Learn More</a> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- About Section --> | |
| <section id="about" class="py-20 px-4 bg-gray-50"> | |
| <div class="container mx-auto"> | |
| <h2 class="text-3xl font-bold text-center mb-12">About <span class="text-blue-400">Me</span></h2> | |
| <div class="max-w-4xl mx-auto bg-white rounded-xl shadow-md overflow-hidden section-card"> | |
| <div class="md:flex"> | |
| <div class="p-8"> | |
| <div class="uppercase tracking-wide text-sm text-blue-400 font-semibold mb-1">Introduction</div> | |
| <p class="mt-2 text-gray-600 mb-6">I'm a 17-year-old student from Butwal, full of dreams and energy. I believe in hard work, simplicity, and always aiming high.</p> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div class="bg-blue-50 p-4 rounded-lg"> | |
| <h3 class="font-semibold text-blue-400 mb-2">Personal Info</h3> | |
| <ul class="space-y-2"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-user text-blue-400 mt-1 mr-2"></i> | |
| <span>Sudhan Chapagain</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-birthday-cake text-blue-400 mt-1 mr-2"></i> | |
| <span>17 years old</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-map-marker-alt text-blue-400 mt-1 mr-2"></i> | |
| <span>Butwal-8, Sukhanagar, Rupandehi, Nepal</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="bg-blue-50 p-4 rounded-lg"> | |
| <h3 class="font-semibold text-blue-400 mb-2">Contact Info</h3> | |
| <ul class="space-y-2"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-envelope text-blue-400 mt-1 mr-2"></i> | |
| <span>itismyemailid0@gmail.com</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-phone text-blue-400 mt-1 mr-2"></i> | |
| <span>+977-9767023616</span> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <p class="mt-6 text-gray-600">My interests lie in continuous education and self-growth. I'm always looking for opportunities to expand my knowledge and skills, believing that personal development is the key to making a meaningful impact in society.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Education Section --> | |
| <section id="education" class="py-20 px-4"> | |
| <div class="container mx-auto"> | |
| <h2 class="text-3xl font-bold text-center mb-12">My <span class="text-blue-400">Education</span></h2> | |
| <div class="max-w-4xl mx-auto"> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-8"> | |
| <div class="space-y-8"> | |
| <div class="flex flex-col md:flex-row"> | |
| <div class="md:w-1/3 mb-4 md:mb-0"> | |
| <h3 class="text-xl font-semibold text-blue-400">Current Education</h3> | |
| <p class="text-sm text-gray-500">2023 - Present</p> | |
| </div> | |
| <div class="md:w-2/3"> | |
| <h4 class="text-lg font-medium">Grade 11</h4> | |
| <p class="text-gray-600">Deep Boarding High School</p> | |
| <p class="mt-2 text-gray-600">Currently pursuing my higher secondary education with focus on preparing for university applications abroad.</p> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-200"></div> | |
| <div class="flex flex-col md:flex-row"> | |
| <div class="md:w-1/3 mb-4 md:mb-0"> | |
| <h3 class="text-xl font-semibold text-blue-400">Secondary Education</h3> | |
| <p class="text-sm text-gray-500">Completed</p> | |
| </div> | |
| <div class="md:w-2/3"> | |
| <h4 class="text-lg font-medium">SEE (School Leaving Certificate)</h4> | |
| <p class="text-gray-600">Deep Boarding High School</p> | |
| <p class="mt-2 text-gray-600">Successfully completed my secondary education with good grades, laying the foundation for my academic journey.</p> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-200"></div> | |
| <div class="flex flex-col md:flex-row"> | |
| <div class="md:w-1/3 mb-4 md:mb-0"> | |
| <h3 class="text-xl font-semibold text-blue-400">Future Plans</h3> | |
| <p class="text-sm text-gray-500">Ongoing Preparation</p> | |
| </div> | |
| <div class="md:w-2/3"> | |
| <h4 class="text-lg font-medium">University Applications</h4> | |
| <p class="text-gray-600">International Studies</p> | |
| <p class="mt-2 text-gray-600">Actively preparing applications for top universities abroad, focusing on scholarship opportunities and programs that align with my goals.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Goals & Vision Section --> | |
| <section id="goals" class="py-20 px-4 bg-gray-50"> | |
| <div class="container mx-auto"> | |
| <h2 class="text-3xl font-bold text-center mb-12">My <span class="text-blue-400">Goals & Vision</span></h2> | |
| <div class="max-w-4xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-8"> | |
| <div class="flex items-center mb-4"> | |
| <div class="bg-blue-100 p-3 rounded-full mr-4"> | |
| <i class="fas fa-graduation-cap text-blue-400 text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold">Academic Aspirations</h3> | |
| </div> | |
| <p class="text-gray-600">My primary goal is to pursue higher education abroad, preferably in the UK or Australia. I'm actively seeking scholarship opportunities to make this dream a reality, as I believe international exposure will significantly contribute to my personal and professional growth.</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-8"> | |
| <div class="flex items-center mb-4"> | |
| <div class="bg-blue-100 p-3 rounded-full mr-4"> | |
| <i class="fas fa-chart-line text-blue-400 text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold">Personal Growth</h3> | |
| </div> | |
| <p class="text-gray-600">I'm committed to continuous self-improvement and skill development. Whether through formal education, online courses, or practical experiences, I aim to expand my knowledge base and develop competencies that will prepare me for future challenges.</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-8"> | |
| <div class="flex items-center mb-4"> | |
| <div class="bg-blue-100 p-3 rounded-full mr-4"> | |
| <i class="fas fa-hands-helping text-blue-400 text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold">Social Impact</h3> | |
| </div> | |
| <p class="text-gray-600">Beyond personal success, I envision using my education and experiences to create positive change in my community. I'm particularly interested in initiatives that promote education accessibility and youth empowerment in Nepal.</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-8"> | |
| <div class="flex items-center mb-4"> | |
| <div class="bg-blue-100 p-3 rounded-full mr-4"> | |
| <i class="fas fa-globe text-blue-400 text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-semibold">Global Perspective</h3> | |
| </div> | |
| <p class="text-gray-600">I aspire to develop a global mindset by engaging with diverse cultures and perspectives. This includes building an international network of peers and mentors who can challenge my thinking and broaden my worldview.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Hobbies & Interests Section --> | |
| <section id="hobbies" class="py-20 px-4"> | |
| <div class="container mx-auto"> | |
| <h2 class="text-3xl font-bold text-center mb-12">My <span class="text-blue-400">Hobbies & Interests</span></h2> | |
| <div class="max-w-4xl mx-auto grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-6"> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-6"> | |
| <div class="hobby-icon mb-3"> | |
| <i class="fas fa-pen-fancy"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">Creative Writing</h3> | |
| <p class="text-gray-600">Passionate about Kabita Bachan (poetry recitation) and expressing thoughts through written words.</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-6"> | |
| <div class="hobby-icon mb-3"> | |
| <i class="fas fa-microphone"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">Public Speaking</h3> | |
| <p class="text-gray-600">Enjoy articulating ideas and engaging audiences through effective communication.</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-6"> | |
| <div class="hobby-icon mb-3"> | |
| <i class="fas fa-video"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">TikTok Content</h3> | |
| <p class="text-gray-600">Creating engaging short-form videos to share ideas and connect with a wider audience.</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-6"> | |
| <div class="hobby-icon mb-3"> | |
| <i class="fas fa-laptop-code"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">Online Learning</h3> | |
| <p class="text-gray-600">Continuously expanding knowledge through various online courses and resources.</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-6"> | |
| <div class="hobby-icon mb-3"> | |
| <i class="fas fa-users"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">Social Networking</h3> | |
| <p class="text-gray-600">Building meaningful connections and engaging with communities on social media platforms.</p> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-6"> | |
| <div class="hobby-icon mb-3"> | |
| <i class="fas fa-hands-helping"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">Volunteering</h3> | |
| <p class="text-gray-600">Contributing time and skills to community service and social causes.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Social Media Section --> | |
| <section class="py-12 px-4 bg-gray-50"> | |
| <div class="container mx-auto text-center"> | |
| <h2 class="text-2xl font-bold mb-8">Connect With Me</h2> | |
| <div class="flex justify-center space-x-6"> | |
| <a href="#" class="social-icon text-2xl text-gray-700 hover:text-blue-400"> | |
| <i class="fab fa-instagram"></i> | |
| </a> | |
| <a href="#" class="social-icon text-2xl text-gray-700 hover:text-blue-400"> | |
| <i class="fab fa-facebook"></i> | |
| </a> | |
| <a href="#" class="social-icon text-2xl text-gray-700 hover:text-blue-400"> | |
| <i class="fab fa-tiktok"></i> | |
| </a> | |
| <a href="#" class="social-icon text-2xl text-gray-700 hover:text-blue-400"> | |
| <i class="fab fa-twitter"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Contact Section --> | |
| <section id="contact" class="py-20 px-4"> | |
| <div class="container mx-auto"> | |
| <h2 class="text-3xl font-bold text-center mb-12">Get In <span class="text-blue-400">Touch</span></h2> | |
| <div class="max-w-4xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-8"> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-8"> | |
| <h3 class="text-xl font-semibold mb-6">Send Me a Message</h3> | |
| <form id="contact-form" class="space-y-4"> | |
| <div> | |
| <label for="name" class="block text-sm font-medium text-gray-700 mb-1">Name</label> | |
| <input type="text" id="name" name="name" class="contact-input w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-400 focus:border-blue-400 transition"> | |
| </div> | |
| <div> | |
| <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label> | |
| <input type="email" id="email" name="email" class="contact-input w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-400 focus:border-blue-400 transition"> | |
| </div> | |
| <div> | |
| <label for="message" class="block text-sm font-medium text-gray-700 mb-1">Message</label> | |
| <textarea id="message" name="message" rows="4" class="contact-input w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-400 focus:border-blue-400 transition"></textarea> | |
| </div> | |
| <button type="submit" class="w-full bg-blue-400 hover:bg-blue-500 text-white py-3 px-6 rounded-lg font-medium transition shadow-md">Send Message</button> | |
| </form> | |
| </div> | |
| <div class="space-y-6"> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card p-6"> | |
| <h3 class="text-xl font-semibold mb-4">Contact Information</h3> | |
| <div class="space-y-4"> | |
| <div class="flex items-start"> | |
| <div class="bg-blue-100 p-2 rounded-full mr-4"> | |
| <i class="fas fa-envelope text-blue-400"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-medium">Email</h4> | |
| <p class="text-gray-600">itismyemailid0@gmail.com</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="bg-blue-100 p-2 rounded-full mr-4"> | |
| <i class="fas fa-phone text-blue-400"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-medium">Phone</h4> | |
| <p class="text-gray-600">+977-9767023616</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="bg-blue-100 p-2 rounded-full mr-4"> | |
| <i class="fas fa-map-marker-alt text-blue-400"></i> | |
| </div> | |
| <div> | |
| <h4 class="font-medium">Location</h4> | |
| <p class="text-gray-600">Butwal-8, Sukhanagar, Rupandehi, Nepal</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden section-card"> | |
| <div class="h-64 w-full bg-gray-200 flex items-center justify-center"> | |
| <i class="fas fa-map text-gray-400 text-4xl"></i> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="font-medium">Butwal, Nepal</h3> | |
| <p class="text-sm text-gray-600">My hometown in the Lumbini Province</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| </main> | |
| <!-- Footer --> | |
| <footer class="bg-gray-800 text-white py-8 px-4"> | |
| <div class="container mx-auto"> | |
| <div class="flex flex-col md:flex-row justify-between items-center"> | |
| <div class="mb-4 md:mb-0"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-deer text-blue-400 text-xl"></i> | |
| <span class="text-xl font-bold">Sudhan Chapagain</span> | |
| </div> | |
| <p class="mt-2 text-gray-400">Young Dreamer from Butwal, Nepal</p> | |
| </div> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-white transition"> | |
| <i class="fab fa-instagram text-xl"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"> | |
| <i class="fab fa-facebook text-xl"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"> | |
| <i class="fab fa-tiktok text-xl"></i> | |
| </a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"> | |
| <i class="fab fa-twitter text-xl"></i> | |
| </a> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400"> | |
| <p>© 2023 Sudhan Chapagain. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Mobile menu toggle | |
| document.getElementById('mobile-menu-button').addEventListener('click', function() { | |
| const menu = document.getElementById('mobile-menu'); | |
| menu.classList.toggle('hidden'); | |
| }); | |
| // Smooth scrolling for navigation links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| const targetId = this.getAttribute('href'); | |
| const targetElement = document.querySelector(targetId); | |
| if (targetElement) { | |
| window.scrollTo({ | |
| top: targetElement.offsetTop - 80, | |
| behavior: 'smooth' | |
| }); | |
| // Close mobile menu if open | |
| document.getElementById('mobile-menu').classList.add('hidden'); | |
| // Update active nav link | |
| document.querySelectorAll('.nav-link').forEach(link => { | |
| link.classList.remove('active'); | |
| }); | |
| this.classList.add('active'); | |
| } | |
| }); | |
| }); | |
| // Update active nav link on scroll | |
| window.addEventListener('scroll', function() { | |
| const scrollPosition = window.scrollY; | |
| document.querySelectorAll('section').forEach(section => { | |
| const sectionTop = section.offsetTop - 100; | |
| const sectionHeight = section.offsetHeight; | |
| const sectionId = section.getAttribute('id'); | |
| if (scrollPosition >= sectionTop && scrollPosition < sectionTop + sectionHeight) { | |
| document.querySelectorAll('.nav-link').forEach(link => { | |
| link.classList.remove('active'); | |
| if (link.getAttribute('href') === `#${sectionId}`) { | |
| link.classList.add('active'); | |
| } | |
| }); | |
| } | |
| }); | |
| }); | |
| // Form submission | |
| document.getElementById('contact-form').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| // Get form values | |
| const name = document.getElementById('name').value; | |
| const email = document.getElementById('email').value; | |
| const message = document.getElementById('message').value; | |
| // Here you would typically send the data to a server | |
| // For this example, we'll just show an alert | |
| alert(`Thank you, ${name}! Your message has been received. I'll get back to you soon at ${email}.`); | |
| // Reset form | |
| this.reset(); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Loloio/sudhan-com" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |