Spaces:
Running
Running
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Events - Econovation</title> | |
<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 rel="stylesheet" href="main.css"> | |
<link rel="stylesheet" href="./style.css"> | |
<link rel="stylesheet" href="./events.css"> | |
<link rel="stylesheet" href="creative.css"> | |
<base href="./"> | |
</head> | |
<body class="min-h-screen flex flex-col animated-gradient-bg"> | |
<!-- Navigation bar removed --> | |
<!-- Main Content with top padding for fixed navbar --> | |
<main class="flex-grow container mx-auto px-4 py-8 mt-16"> | |
<div class="max-w-6xl mx-auto"> | |
<h1 class="text-4xl font-bold text-gray-800 mb-8 text-center">Upcoming Events</h1> | |
<p class="text-lg text-gray-600 mb-12 text-center max-w-3xl mx-auto">Join us for exciting events that bring together economics enthusiasts, innovators, and thought leaders to explore new ideas and create meaningful connections.</p> | |
<!-- Events Grid --> | |
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 mb-16"> | |
<!-- Event 1 --> | |
<div class="event-card glass-card bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300"> | |
<div class="relative"> | |
<div class="h-48 bg-gradient-to-r from-blue-400 to-indigo-500 flex items-center justify-center"> | |
<i class="fas fa-chalkboard-teacher text-white text-5xl"></i> | |
</div> | |
<div class="absolute top-4 right-4 bg-white rounded-full px-3 py-1 text-sm font-semibold text-indigo-600"> | |
<i class="far fa-calendar-alt mr-1"></i> Oct 15, 2023 | |
</div> | |
</div> | |
<div class="p-6"> | |
<h3 class="text-xl font-bold text-gray-800 mb-2">Economic Innovation Workshop</h3> | |
<p class="text-gray-600 mb-4">A hands-on workshop exploring cutting-edge economic models and their practical applications in today's market.</p> | |
<div class="flex justify-between items-center text-sm text-gray-500 mb-4"> | |
<span><i class="fas fa-map-marker-alt mr-1"></i> Virtual Event</span> | |
<span><i class="far fa-clock mr-1"></i> 2:00 PM - 4:00 PM</span> | |
</div> | |
<button class="event-expand-btn w-full py-2 text-blue-600 font-medium hover:text-blue-800 transition-colors duration-300 focus:outline-none flex items-center justify-center" data-event-id="event1"> | |
<span>View Details</span> | |
<i class="fas fa-chevron-down ml-2 transition-transform duration-300"></i> | |
</button> | |
<div id="event1-details" class="event-details hidden mt-4 pt-4 border-t border-gray-200"> | |
<p class="text-gray-700 mb-4">Join us for an interactive workshop led by industry experts where you'll learn about innovative economic models and how they can be applied to solve real-world problems. This session includes breakout rooms for networking and collaborative exercises.</p> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">Speakers:</h4> | |
<ul class="list-disc pl-5 text-gray-600"> | |
<li>Dr. Emma Rodriguez - Economic Policy Researcher</li> | |
<li>Michael Chen - Fintech Entrepreneur</li> | |
</ul> | |
</div> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">What to Bring:</h4> | |
<p class="text-gray-600">Laptop, notepad, and your questions about economic innovation!</p> | |
</div> | |
<button class="add-to-calendar-btn w-full py-2 px-4 bg-gradient-to-r from-blue-500 to-indigo-600 text-white rounded-lg font-medium hover:shadow-lg transition-all duration-300 flex items-center justify-center"> | |
<i class="far fa-calendar-plus mr-2"></i> Add to Calendar | |
</button> | |
</div> | |
</div> | |
</div> | |
<!-- Event 2 --> | |
<div class="event-card bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300"> | |
<div class="relative"> | |
<div class="h-48 bg-gradient-to-r from-green-400 to-teal-500 flex items-center justify-center"> | |
<i class="fas fa-users text-white text-5xl"></i> | |
</div> | |
<div class="absolute top-4 right-4 bg-white rounded-full px-3 py-1 text-sm font-semibold text-teal-600"> | |
<i class="far fa-calendar-alt mr-1"></i> Nov 5, 2023 | |
</div> | |
</div> | |
<div class="p-6"> | |
<h3 class="text-xl font-bold text-gray-800 mb-2">Sustainable Economics Forum</h3> | |
<p class="text-gray-600 mb-4">A gathering of thought leaders discussing the intersection of economics, sustainability, and social responsibility.</p> | |
<div class="flex justify-between items-center text-sm text-gray-500 mb-4"> | |
<span><i class="fas fa-map-marker-alt mr-1"></i> City Conference Center</span> | |
<span><i class="far fa-clock mr-1"></i> 10:00 AM - 3:00 PM</span> | |
</div> | |
<button class="event-expand-btn w-full py-2 text-blue-600 font-medium hover:text-blue-800 transition-colors duration-300 focus:outline-none flex items-center justify-center" data-event-id="event2"> | |
<span>View Details</span> | |
<i class="fas fa-chevron-down ml-2 transition-transform duration-300"></i> | |
</button> | |
<div id="event2-details" class="event-details hidden mt-4 pt-4 border-t border-gray-200"> | |
<p class="text-gray-700 mb-4">This forum brings together economists, environmental scientists, and business leaders to explore sustainable economic practices. The day includes keynote speeches, panel discussions, and networking opportunities.</p> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">Agenda:</h4> | |
<ul class="list-disc pl-5 text-gray-600"> | |
<li>10:00 AM - Opening Keynote: "The Future of Sustainable Economics"</li> | |
<li>11:30 AM - Panel Discussion: "Balancing Profit and Planet"</li> | |
<li>1:00 PM - Networking Lunch</li> | |
<li>2:00 PM - Breakout Sessions</li> | |
</ul> | |
</div> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">Registration Fee:</h4> | |
<p class="text-gray-600">$25 (includes lunch and refreshments)</p> | |
</div> | |
<button class="add-to-calendar-btn w-full py-2 px-4 bg-gradient-to-r from-green-500 to-teal-600 text-white rounded-lg font-medium hover:shadow-lg transition-all duration-300 flex items-center justify-center"> | |
<i class="far fa-calendar-plus mr-2"></i> Add to Calendar | |
</button> | |
</div> | |
</div> | |
</div> | |
<!-- Event 3 --> | |
<div class="event-card bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300"> | |
<div class="relative"> | |
<div class="h-48 bg-gradient-to-r from-purple-400 to-pink-500 flex items-center justify-center"> | |
<i class="fas fa-laptop-code text-white text-5xl"></i> | |
</div> | |
<div class="absolute top-4 right-4 bg-white rounded-full px-3 py-1 text-sm font-semibold text-purple-600"> | |
<i class="far fa-calendar-alt mr-1"></i> Dec 8, 2023 | |
</div> | |
</div> | |
<div class="p-6"> | |
<h3 class="text-xl font-bold text-gray-800 mb-2">Fintech Hackathon</h3> | |
<p class="text-gray-600 mb-4">A 48-hour coding challenge to develop innovative financial technology solutions addressing real economic problems.</p> | |
<div class="flex justify-between items-center text-sm text-gray-500 mb-4"> | |
<span><i class="fas fa-map-marker-alt mr-1"></i> Tech Hub Downtown</span> | |
<span><i class="far fa-clock mr-1"></i> Starts at 6:00 PM</span> | |
</div> | |
<button class="event-expand-btn w-full py-2 text-blue-600 font-medium hover:text-blue-800 transition-colors duration-300 focus:outline-none flex items-center justify-center" data-event-id="event3"> | |
<span>View Details</span> | |
<i class="fas fa-chevron-down ml-2 transition-transform duration-300"></i> | |
</button> | |
<div id="event3-details" class="event-details hidden mt-4 pt-4 border-t border-gray-200"> | |
<p class="text-gray-700 mb-4">This hackathon challenges developers, designers, and economic thinkers to collaborate on creating innovative fintech solutions. Prizes will be awarded for the most promising projects with potential for real-world implementation.</p> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">Challenge Tracks:</h4> | |
<ul class="list-disc pl-5 text-gray-600"> | |
<li>Financial Inclusion Solutions</li> | |
<li>Sustainable Investment Platforms</li> | |
<li>Economic Education Tools</li> | |
</ul> | |
</div> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">Prizes:</h4> | |
<p class="text-gray-600">$5,000 in total prizes, mentorship opportunities, and potential funding for promising projects</p> | |
</div> | |
<button class="add-to-calendar-btn w-full py-2 px-4 bg-gradient-to-r from-purple-500 to-pink-600 text-white rounded-lg font-medium hover:shadow-lg transition-all duration-300 flex items-center justify-center"> | |
<i class="far fa-calendar-plus mr-2"></i> Add to Calendar | |
</button> | |
</div> | |
</div> | |
</div> | |
<!-- Event 4 --> | |
<div class="event-card bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300"> | |
<div class="relative"> | |
<div class="h-48 bg-gradient-to-r from-yellow-400 to-orange-500 flex items-center justify-center"> | |
<i class="fas fa-microphone-alt text-white text-5xl"></i> | |
</div> | |
<div class="absolute top-4 right-4 bg-white rounded-full px-3 py-1 text-sm font-semibold text-orange-600"> | |
<i class="far fa-calendar-alt mr-1"></i> Jan 20, 2024 | |
</div> | |
</div> | |
<div class="p-6"> | |
<h3 class="text-xl font-bold text-gray-800 mb-2">Economic Trends Speaker Series</h3> | |
<p class="text-gray-600 mb-4">Distinguished economists share insights on emerging trends and future economic landscapes in this quarterly speaker series.</p> | |
<div class="flex justify-between items-center text-sm text-gray-500 mb-4"> | |
<span><i class="fas fa-map-marker-alt mr-1"></i> University Auditorium</span> | |
<span><i class="far fa-clock mr-1"></i> 7:00 PM - 9:00 PM</span> | |
</div> | |
<button class="event-expand-btn w-full py-2 text-blue-600 font-medium hover:text-blue-800 transition-colors duration-300 focus:outline-none flex items-center justify-center" data-event-id="event4"> | |
<span>View Details</span> | |
<i class="fas fa-chevron-down ml-2 transition-transform duration-300"></i> | |
</button> | |
<div id="event4-details" class="event-details hidden mt-4 pt-4 border-t border-gray-200"> | |
<p class="text-gray-700 mb-4">Our first speaker series of 2024 features Dr. Sophia Martinez, a leading economist specializing in global market trends. She will discuss how emerging technologies are reshaping economic landscapes and what to expect in the coming decade.</p> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">About the Speaker:</h4> | |
<p class="text-gray-600">Dr. Martinez is the author of "Economic Frontiers" and has advised numerous Fortune 500 companies and government agencies on economic strategy.</p> | |
</div> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">Admission:</h4> | |
<p class="text-gray-600">Free for students with ID, $10 general admission</p> | |
</div> | |
<button class="add-to-calendar-btn w-full py-2 px-4 bg-gradient-to-r from-yellow-500 to-orange-600 text-white rounded-lg font-medium hover:shadow-lg transition-all duration-300 flex items-center justify-center"> | |
<i class="far fa-calendar-plus mr-2"></i> Add to Calendar | |
</button> | |
</div> | |
</div> | |
</div> | |
<!-- Event 5 --> | |
<div class="event-card bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300"> | |
<div class="relative"> | |
<div class="h-48 bg-gradient-to-r from-red-400 to-rose-500 flex items-center justify-center"> | |
<i class="fas fa-handshake text-white text-5xl"></i> | |
</div> | |
<div class="absolute top-4 right-4 bg-white rounded-full px-3 py-1 text-sm font-semibold text-rose-600"> | |
<i class="far fa-calendar-alt mr-1"></i> Feb 12, 2024 | |
</div> | |
</div> | |
<div class="p-6"> | |
<h3 class="text-xl font-bold text-gray-800 mb-2">Networking Mixer: Economics Professionals</h3> | |
<p class="text-gray-600 mb-4">Connect with fellow economics professionals, researchers, and enthusiasts in a relaxed setting with structured networking activities.</p> | |
<div class="flex justify-between items-center text-sm text-gray-500 mb-4"> | |
<span><i class="fas fa-map-marker-alt mr-1"></i> The Grand Hotel</span> | |
<span><i class="far fa-clock mr-1"></i> 6:30 PM - 9:00 PM</span> | |
</div> | |
<button class="event-expand-btn w-full py-2 text-blue-600 font-medium hover:text-blue-800 transition-colors duration-300 focus:outline-none flex items-center justify-center" data-event-id="event5"> | |
<span>View Details</span> | |
<i class="fas fa-chevron-down ml-2 transition-transform duration-300"></i> | |
</button> | |
<div id="event5-details" class="event-details hidden mt-4 pt-4 border-t border-gray-200"> | |
<p class="text-gray-700 mb-4">This curated networking event brings together professionals from various economic sectors. The evening includes structured networking activities, a panel discussion on current economic challenges, and opportunities to form meaningful professional connections.</p> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">Includes:</h4> | |
<ul class="list-disc pl-5 text-gray-600"> | |
<li>Appetizers and refreshments</li> | |
<li>Speed networking session</li> | |
<li>Panel: "Navigating Economic Uncertainty"</li> | |
<li>Open networking with industry leaders</li> | |
</ul> | |
</div> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">Registration:</h4> | |
<p class="text-gray-600">$35 early bird (until Jan 15), $45 regular admission</p> | |
</div> | |
<button class="add-to-calendar-btn w-full py-2 px-4 bg-gradient-to-r from-red-500 to-rose-600 text-white rounded-lg font-medium hover:shadow-lg transition-all duration-300 flex items-center justify-center"> | |
<i class="far fa-calendar-plus mr-2"></i> Add to Calendar | |
</button> | |
</div> | |
</div> | |
</div> | |
<!-- Event 6 --> | |
<div class="event-card bg-white rounded-xl shadow-md overflow-hidden transition-all duration-300"> | |
<div class="relative"> | |
<div class="h-48 bg-gradient-to-r from-cyan-400 to-blue-500 flex items-center justify-center"> | |
<i class="fas fa-graduation-cap text-white text-5xl"></i> | |
</div> | |
<div class="absolute top-4 right-4 bg-white rounded-full px-3 py-1 text-sm font-semibold text-blue-600"> | |
<i class="far fa-calendar-alt mr-1"></i> Mar 8, 2024 | |
</div> | |
</div> | |
<div class="p-6"> | |
<h3 class="text-xl font-bold text-gray-800 mb-2">Youth Economics Summit</h3> | |
<p class="text-gray-600 mb-4">Inspiring the next generation of economic thinkers through workshops, competitions, and mentorship from industry leaders.</p> | |
<div class="flex justify-between items-center text-sm text-gray-500 mb-4"> | |
<span><i class="fas fa-map-marker-alt mr-1"></i> Community College</span> | |
<span><i class="far fa-clock mr-1"></i> 9:00 AM - 5:00 PM</span> | |
</div> | |
<button class="event-expand-btn w-full py-2 text-blue-600 font-medium hover:text-blue-800 transition-colors duration-300 focus:outline-none flex items-center justify-center" data-event-id="event6"> | |
<span>View Details</span> | |
<i class="fas fa-chevron-down ml-2 transition-transform duration-300"></i> | |
</button> | |
<div id="event6-details" class="event-details hidden mt-4 pt-4 border-t border-gray-200"> | |
<p class="text-gray-700 mb-4">This full-day summit is designed for high school and college students interested in economics and finance. Participants will engage in interactive workshops, compete in economic case studies, and connect with mentors who can provide guidance on academic and career paths.</p> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">Highlights:</h4> | |
<ul class="list-disc pl-5 text-gray-600"> | |
<li>Economic case competition with prizes</li> | |
<li>Career panel with diverse economic professionals</li> | |
<li>Skill-building workshops</li> | |
<li>Networking with potential internship providers</li> | |
</ul> | |
</div> | |
<div class="mb-4"> | |
<h4 class="font-semibold text-gray-800 mb-2">Eligibility:</h4> | |
<p class="text-gray-600">Open to students ages 16-22, no prior economics experience required</p> | |
</div> | |
<button class="add-to-calendar-btn w-full py-2 px-4 bg-gradient-to-r from-cyan-500 to-blue-600 text-white rounded-lg font-medium hover:shadow-lg transition-all duration-300 flex items-center justify-center"> | |
<i class="far fa-calendar-plus mr-2"></i> Add to Calendar | |
</button> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- Call to Action --> | |
<div class="bg-gradient-to-r from-blue-500 to-indigo-600 rounded-xl shadow-lg p-8 text-center"> | |
<h2 class="text-2xl font-bold text-white mb-4">Want to Host Your Own Event?</h2> | |
<p class="text-white text-opacity-90 mb-6 max-w-2xl mx-auto">If you're interested in hosting an economics-related event with Econovation, we'd love to hear from you! We can provide resources, speakers, and promotional support.</p> | |
<a href="#" class="inline-block py-3 px-6 bg-white text-indigo-600 rounded-lg font-semibold hover:shadow-lg transition-all duration-300 transform hover:-translate-y-1">Contact Our Events Team</a> | |
</div> | |
</div> | |
</main> | |
<!-- Footer --> | |
<footer class="bg-gray-800 text-white py-12"> | |
<div class="container mx-auto px-4"> | |
<div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
<div> | |
<h3 class="text-xl font-bold mb-4">ECONOV<span class="text-blue-400">Δ</span>TION</h3> | |
<p class="text-gray-400">Transforming economic thinking for a better tomorrow.</p> | |
</div> | |
<div> | |
<h4 class="text-lg font-semibold mb-4">Quick Links</h4> | |
<ul class="space-y-2"> | |
<li><a href="about-us.html" class="text-gray-400 hover:text-white transition-colors duration-300">About Us</a></li> | |
<li><a href="events.html" class="text-gray-400 hover:text-white transition-colors duration-300">Events</a></li> | |
<li><a href="#" class="text-gray-400 hover:text-white transition-colors duration-300">Programs</a></li> | |
<li><a href="partnerships.html" class="text-gray-400 hover:text-white transition-colors duration-300">Partnerships</a></li> | |
<li><a href="contact-us.html" class="text-gray-400 hover:text-white transition-colors duration-300">Contact</a></li> | |
</ul> | |
</div> | |
<div> | |
<h4 class="text-lg font-semibold mb-4">Connect</h4> | |
<div class="flex space-x-4"> | |
<a href="#" class="text-gray-400 hover:text-white transition-colors duration-300"><i class="fab fa-twitter text-xl"></i></a> | |
<a href="#" class="text-gray-400 hover:text-white transition-colors duration-300"><i class="fab fa-linkedin text-xl"></i></a> | |
<a href="#" class="text-gray-400 hover:text-white transition-colors duration-300"><i class="fab fa-instagram text-xl"></i></a> | |
<a href="#" class="text-gray-400 hover:text-white transition-colors duration-300"><i class="fab fa-youtube text-xl"></i></a> | |
</div> | |
</div> | |
<div> | |
<h4 class="text-lg font-semibold mb-4">Subscribe</h4> | |
<p class="text-gray-400 mb-4">Stay updated with our latest events and news.</p> | |
<div class="flex"> | |
<input type="email" placeholder="Your email" class="px-4 py-2 rounded-l-lg focus:outline-none text-gray-800 w-full"> | |
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-r-lg transition-colors duration-300">Subscribe</button> | |
</div> | |
</div> | |
</div> | |
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400"> | |
<p>© 2023 Econovation. All rights reserved.</p> | |
</div> | |
</div> | |
</footer> | |
<!-- Calendar Modal (Hidden by default) --> | |
<div id="calendarModal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center hidden"> | |
<div class="bg-white rounded-xl p-6 max-w-md w-full mx-4"> | |
<div class="flex justify-between items-center mb-4"> | |
<h3 class="text-xl font-bold text-gray-800">Add to Calendar</h3> | |
<button id="closeCalendarModal" class="text-gray-500 hover:text-gray-700 focus:outline-none"> | |
<i class="fas fa-times text-xl"></i> | |
</button> | |
</div> | |
<div class="mb-6"> | |
<p class="text-gray-600 mb-4">Choose your preferred calendar application:</p> | |
<div class="grid grid-cols-2 gap-4"> | |
<a href="#" class="calendar-option flex flex-col items-center p-4 border rounded-lg hover:bg-gray-50 transition-colors duration-300"> | |
<i class="fab fa-google text-2xl text-red-500 mb-2"></i> | |
<span class="text-gray-800">Google Calendar</span> | |
</a> | |
<a href="#" class="calendar-option flex flex-col items-center p-4 border rounded-lg hover:bg-gray-50 transition-colors duration-300"> | |
<i class="fab fa-apple text-2xl text-gray-800 mb-2"></i> | |
<span class="text-gray-800">Apple Calendar</span> | |
</a> | |
<a href="#" class="calendar-option flex flex-col items-center p-4 border rounded-lg hover:bg-gray-50 transition-colors duration-300"> | |
<i class="fab fa-microsoft text-2xl text-blue-500 mb-2"></i> | |
<span class="text-gray-800">Outlook</span> | |
</a> | |
<a href="#" class="calendar-option flex flex-col items-center p-4 border rounded-lg hover:bg-gray-50 transition-colors duration-300"> | |
<i class="fas fa-calendar-alt text-2xl text-purple-500 mb-2"></i> | |
<span class="text-gray-800">Other</span> | |
</a> | |
</div> | |
</div> | |
<div class="text-center text-gray-600 text-sm"> | |
<p>You will be redirected to your calendar application to confirm the event details.</p> | |
</div> | |
</div> | |
</div> | |
<script src="main.js"></script> | |
<script src="creative.js"></script> | |
<script> | |
// Additional page-specific JavaScript | |
document.addEventListener('DOMContentLoaded', function() { | |
// Mobile menu functionality is now handled by main.js | |
const mobileMenuButton = document.getElementById('mobileMenuButton'); | |
const closeMenuButton = document.getElementById('closeMenuButton'); | |
const mobileMenu = document.getElementById('mobileMenu'); | |
if (mobileMenuButton && closeMenuButton && mobileMenu) { | |
mobileMenuButton.addEventListener('click', function() { | |
mobileMenu.classList.remove('translate-x-full'); | |
}); | |
closeMenuButton.addEventListener('click', function() { | |
mobileMenu.classList.add('translate-x-full'); | |
}); | |
} | |
// Event card expansion functionality | |
const expandButtons = document.querySelectorAll('.event-expand-btn'); | |
expandButtons.forEach(button => { | |
button.addEventListener('click', function() { | |
const eventId = this.getAttribute('data-event-id'); | |
const detailsSection = document.getElementById(`${eventId}-details`); | |
const icon = this.querySelector('i'); | |
detailsSection.classList.toggle('hidden'); | |
icon.classList.toggle('rotate-180'); | |
if (!detailsSection.classList.contains('hidden')) { | |
// Smooth scroll to the expanded section | |
setTimeout(() => { | |
detailsSection.scrollIntoView({ behavior: 'smooth', block: 'nearest' }); | |
}, 300); | |
} | |
}); | |
}); | |
// Calendar modal functionality | |
const calendarButtons = document.querySelectorAll('.add-to-calendar-btn'); | |
const calendarModal = document.getElementById('calendarModal'); | |
const closeCalendarModal = document.getElementById('closeCalendarModal'); | |
calendarButtons.forEach(button => { | |
button.addEventListener('click', function() { | |
calendarModal.classList.remove('hidden'); | |
document.body.style.overflow = 'hidden'; // Prevent scrolling when modal is open | |
}); | |
}); | |
closeCalendarModal.addEventListener('click', function() { | |
calendarModal.classList.add('hidden'); | |
document.body.style.overflow = ''; // Re-enable scrolling | |
}); | |
// Close modal when clicking outside | |
calendarModal.addEventListener('click', function(e) { | |
if (e.target === calendarModal) { | |
calendarModal.classList.add('hidden'); | |
document.body.style.overflow = ''; | |
} | |
}); | |
// Calendar options functionality (in a real app, these would link to actual calendar services) | |
const calendarOptions = document.querySelectorAll('.calendar-option'); | |
calendarOptions.forEach(option => { | |
option.addEventListener('click', function(e) { | |
e.preventDefault(); | |
// In a real implementation, this would generate the appropriate calendar link | |
alert('In a production environment, this would add the event to your selected calendar.'); | |
calendarModal.classList.add('hidden'); | |
document.body.style.overflow = ''; | |
}); | |
}); | |
}); | |
</script> | |
</body> | |
</html> |