diff --git a/darkmode.js b/darkmode.js index bb8f2df..cd73868 100644 --- a/darkmode.js +++ b/darkmode.js @@ -1,38 +1,32 @@ - let darkmode = localStorage.getItem('darkmode'); -const themeSwitch = document.getElementById('theme-switch'); - +const themeSwitch = document.getElementById('theme-switch-fixed'); // Use the correct ID const enableDarkMode = () => { - document.body.classList.add('darkmode'); + document.body.classList.add('dark-mode'); // Ensure class name matches CSS localStorage.setItem('darkmode', 'active'); updateThemeSwitchText(); }; - const disableDarkMode = () => { - document.body.classList.remove('darkmode'); + document.body.classList.remove('dark-mode'); // Ensure class name matches CSS localStorage.setItem('darkmode', 'inactive'); updateThemeSwitchText(); }; - const updateThemeSwitchText = () => { themeSwitch.textContent = darkmode === "active" ? "Switch to Light Mode ☀️" : "Switch to Dark Mode 🌙"; }; - if (darkmode === "active") { enableDarkMode(); } else { disableDarkMode(); } +// Update button text on initial load +updateThemeSwitchText(); themeSwitch.addEventListener("click", () => { darkmode = localStorage.getItem('darkmode'); darkmode === "active" ? disableDarkMode() : enableDarkMode(); -}); - -// Update button text on initial load -updateThemeSwitchText(); +}); \ No newline at end of file diff --git a/event-calendar.css b/event-calendar.css new file mode 100644 index 0000000..9fcb635 --- /dev/null +++ b/event-calendar.css @@ -0,0 +1,77 @@ +.calendar { + display: flex; + flex-direction: column; + align-items: center; + margin: 20px; +} + +.calendar-header { + font-size: 24px; + margin-bottom: 10px; +} + +.calendar-grid { + display: grid; + grid-template-columns: repeat(7, 1fr); + gap: 10px; + margin-bottom: 20px; + width: 100%; + max-width: 800px; +} + +.calendar-day { + border: 1px solid #ccc; + padding: 20px; + text-align: center; + position: relative; + background-color: #ffffff; + height: 100px; + border-radius: 8px; + transition: background-color 0.3s ease; +} + +body.dark-mode .calendar-day { + background-color: #1e1e1e; + border-color: #444; +} + +.calendar-day:hover { + background-color: #e0e0e0; +} + +body.dark-mode .calendar-day:hover { + background-color: #333; +} + +.event { + background-color: #4CAF50; + color: white; + padding: 5px; + border-radius: 3px; + font-size: 14px; + position: absolute; + bottom: 5px; + left: 5px; + right: 5px; + text-align: center; + cursor: pointer; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +.event-form { + margin: 20px; + display: flex; + flex-direction: column; + align-items: center; +} + +.event-form input, +.event-form button { + margin: 5px; + padding: 10px; + font-size: 16px; + width: 100%; + max-width: 300px; +} \ No newline at end of file diff --git a/event-calendar.js b/event-calendar.js new file mode 100644 index 0000000..9ddad45 --- /dev/null +++ b/event-calendar.js @@ -0,0 +1,44 @@ +document.addEventListener('DOMContentLoaded', () => { + const events = [ + { date: '2024-10-06', title: 'React Workshop' }, + { date: '2024-10-14', title: 'Node.js Webinar' }, + { date: '2024-10-21', title: 'CSS Masterclass' }, + ]; + + function generateCalendar() { + const calendarGrid = document.getElementById('calendar-grid'); + const daysInMonth = new Date(2024, 9, 0).getDate(); // October 2024 + + // Clear existing calendar + calendarGrid.innerHTML = ''; + + for (let day = 1; day <= daysInMonth; day++) { + const dayElement = document.createElement('div'); + dayElement.className = 'calendar-day'; + dayElement.innerText = day; + + const event = events.find(e => new Date(e.date).getDate() === day); + if (event) { + const eventElement = document.createElement('div'); + eventElement.className = 'event'; + eventElement.innerText = event.title; + dayElement.appendChild(eventElement); + } + + calendarGrid.appendChild(dayElement); + } + } + + document.getElementById('add-event').addEventListener('click', () => { + const date = document.getElementById('event-date').value; + const title = document.getElementById('event-title').value; + + if (date && title) { + events.push({ date, title }); + generateCalendar(); + document.getElementById('event-title').value = ''; + } + }); + + generateCalendar(); +}); \ No newline at end of file diff --git a/event-calender.html b/event-calender.html new file mode 100644 index 0000000..e69de29 diff --git a/footer.css b/footer.css new file mode 100644 index 0000000..198b4df --- /dev/null +++ b/footer.css @@ -0,0 +1,47 @@ +footer { + background-color: #333; + color: #fff; + padding: 20px 0; + margin-top: 40px; +} + +body.dark-mode footer { + background-color: #1a1a1a; +} + +footer p { + text-align: center; + margin: 0; + padding: 10px 0; +} + +footer .forum-section { + max-width: 800px; + margin: 0 auto; + padding: 0 20px; +} + +footer .forum-section h2 { + color: #fff; + border-bottom: 1px solid #555; + padding-bottom: 10px; +} + +footer .forum-section ul { + padding-left: 20px; +} + +footer .forum-section ul li { + margin-bottom: 5px; +} + +footer .forum-section ul li a { + color: #ddd; + text-decoration: none; + transition: color 0.3s ease; +} + +footer .forum-section ul li a:hover { + color: #fff; + text-decoration: underline; +} \ No newline at end of file diff --git a/forum.css b/forum.css new file mode 100644 index 0000000..35ac02f --- /dev/null +++ b/forum.css @@ -0,0 +1,53 @@ +.forum-section { + background-color: #f0f0f0; + padding: 20px; + margin-bottom: 20px; + border-radius: 8px; +} + +body.dark-mode .forum-section { + background-color: #2a2a2a; + color: #ffffff; +} + +.forum-section h2 { + color: #333; + margin-bottom: 15px; +} + +body.dark-mode .forum-section h2 { + color: #e0e0e0; +} + +.forum-section p { + margin-bottom: 15px; + line-height: 1.6; +} + +.forum-section ul { + list-style-type: none; + padding: 0; +} + +.forum-section ul li { + margin-bottom: 10px; +} + +.forum-section ul li a { + color: #0066cc; + text-decoration: none; + transition: color 0.3s ease; +} + +.forum-section ul li a:hover { + color: #004080; + text-decoration: underline; +} + +body.dark-mode .forum-section ul li a { + color: #66b3ff; +} + +body.dark-mode .forum-section ul li a:hover { + color: #99ccff; +} \ No newline at end of file diff --git a/forum.js b/forum.js new file mode 100644 index 0000000..f5b600a --- /dev/null +++ b/forum.js @@ -0,0 +1,36 @@ +document.addEventListener('DOMContentLoaded', () => { + // This is a placeholder for forum functionality + // You can add more interactive features here as needed + + const forumLinks = document.querySelectorAll('.forum-section a'); + + forumLinks.forEach(link => { + link.addEventListener('click', (event) => { + // You can add analytics tracking here + console.log(`Clicked on forum link: ${link.href}`); + }); + }); + + // Example of a function to load recent forum topics (simulated) + function loadRecentTopics() { + const topicList = document.createElement('ul'); + const topics = [ + 'Getting started with React', + 'Best practices for Node.js', + 'CSS Grid vs Flexbox', + 'JavaScript ES6+ features' + ]; + + topics.forEach(topic => { + const li = document.createElement('li'); + li.textContent = topic; + topicList.appendChild(li); + }); + + const forumSection = document.querySelector('.forum-section'); + forumSection.appendChild(topicList); + } + + // Uncomment the line below to load recent topics + // loadRecentTopics(); +}); \ No newline at end of file diff --git a/images/dark-mode-toggle-icon.png b/images/dark-mode-toggle-icon.png new file mode 100644 index 0000000..991f067 Binary files /dev/null and b/images/dark-mode-toggle-icon.png differ diff --git a/images/light-mode-toggle-icon.png b/images/light-mode-toggle-icon.png new file mode 100644 index 0000000..5ceefff Binary files /dev/null and b/images/light-mode-toggle-icon.png differ diff --git a/index.html b/index.html index 0662880..6b8c168 100644 --- a/index.html +++ b/index.html @@ -5,36 +5,227 @@ Code Social | Home - - - + + + + - - + + + + + + + + + - -
+

About Community

Code Social Community is a learning-focused community dedicated to providing individuals with resources, opportunities to learn, grow, and develop their skills in various technologies. The community helps individuals to explore their interests, expand their knowledge, and connect with like-minded people. - +

+

At Code Social Community, members have access to a wealth of resources and learning opportunities, including free learning sessions, mentorship programs, and peer-to-peer learning sessions. The community also provides opportunities for members to network and connect with others in the tech industry. - - In addition to its learning and networking opportunities, Code Social Community also serves as a hub for resources, tools, and other materials that can help members enhance their skills and stay up-to-date with the latest trends and best practices in the tech industry. - +

+

Whether you are just starting out in your career or are a seasoned professional looking to expand your knowledge and skills, this community offers something for everyone. With its focus on hands-on learning, mentorship, and networking opportunities, Code Social Community is an excellent place to connect with like-minded individuals, build your skills, and take your career to the next level.

-
-

Event Calendar

+

Event Calendar

@@ -123,7 +297,7 @@

Add Event

-
+
@@ -133,39 +307,28 @@

Add Event

- -
- + - - + + + // Event listeners for month navigation + document.getElementById('prev-month').addEventListener('click', () => { + currentMonth = (currentMonth === 0) ? 11 : currentMonth - 1; + currentYear = (currentMonth === 11) ? currentYear - 1 : currentYear; + generateCalendar(); + }); + + document.getElementById('next-month').addEventListener('click', () => { + currentMonth = (currentMonth === 11) ? 0 : currentMonth + 1; + currentYear = (currentMonth === 0) ? currentYear + 1 : currentYear; + generateCalendar(); + }); + + document.getElementById('add-event').addEventListener('click', () => { + const date = document.getElementById('event-date').value; + const title = document.getElementById('event-title').value; + const color = document.getElementById('event-color').value; + + if (date && title) { + events.push({ date, title, color }); + generateCalendar(); + document.getElementById('event-title').value = ''; + } + }); + + // Toggle dropdown for hamburger menu + function toggleDropdown() { + const dropdown = document.querySelector('.hamburger-menu .dropdown'); + dropdown.classList.toggle('active'); + } + \ No newline at end of file diff --git a/script.js b/script.js index 2e4b77c..319bda2 100644 --- a/script.js +++ b/script.js @@ -28,6 +28,49 @@ document.addEventListener("DOMContentLoaded", () => { ? "/images/close.png" : "/images/hamburger.png"; }); + + // Profile creation functionality + const profileForm = document.getElementById('profile-form'); + + if (profileForm) { + profileForm.addEventListener('submit', (event) => { + event.preventDefault(); + + const name = document.getElementById('profile-name').value; + const email = document.getElementById('profile-email').value; + const bio = document.getElementById('profile-bio').value; + const skills = document.getElementById('profile-skills').value.split(',').map(skill => skill.trim()); + + const profile = { + name: name, + email: email, + bio: bio, + skills: skills + }; + + // Store the profile + localStorage.setItem('userProfile', JSON.stringify(profile)); + + alert('Profile created successfully!'); + window.location.href = 'view-profile.html'; // Redirect to view profile page + }); + } + + // View profile functionality + const profileContainer = document.getElementById('profile-container'); + + if (profileContainer) { + const profileData = JSON.parse(localStorage.getItem('userProfile')); + + if (profileData) { + document.getElementById('profile-name').textContent = profileData.name; + document.getElementById('profile-email').textContent = profileData.email; + document.getElementById('profile-bio').textContent = profileData.bio; + document.getElementById('profile-skills').textContent = profileData.skills.join(', '); + } else { + profileContainer.textContent = 'No profile found.'; + } + } }); // Select the button, icon, and body element @@ -63,4 +106,4 @@ themeToggleBtn.addEventListener("click", function () { // Change the icon based on the current theme setThemeIcon(isDarkMode); -}); +}); \ No newline at end of file diff --git a/styles.css b/styles.css index 3b85998..824e853 100644 --- a/styles.css +++ b/styles.css @@ -1,3 +1,9 @@ +/* Navbar Styling */ +* { + margin: 0; + padding: 0; +} + body { font-family: Arial, sans-serif; margin-top: 64px; @@ -13,29 +19,67 @@ body { color: white; } +.navbar { + padding: 10px 10px; + display: flex; + align-items: center; + justify-content: space-between; + width: 100%; + top: 0; + z-index: 1000; + box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); +} + +/* Center the menu items */ +.navbar ul { + display: flex; + justify-content: space-around; + align-items: center; + list-style: none; + flex: 1; +} + +.website-name { + font-size: 1.8rem; + font-weight: bold; + letter-spacing: 1.2px; + margin-right: auto; + margin-left: 15px; +} + +/* Center Links */ +.center-links { + list-style: none; + display: flex; + align-items: center; + justify-content: center; + flex: 1; +} + +.center-links li { + margin-left: 25px; + position: relative; +} + +/* Button Styling */ .theme-toggle-btn { padding: 10px 20px; margin: 20px; cursor: pointer; } + .theme-toggle-btn img { transition: opacity 0.3s ease, transform 0.3s ease; } .theme-toggle-btn img:hover { transform: scale(1.1); - opacity: 0.8; } #theme-toggle-icon { width: 40px; height: 40px; } -/* Dark Mode Styles */ -/* body.dark-mode { - background-color: #121212; - color: #ffffff; -} */ /* Calendar Section Styles */ .calendar-section { @@ -51,7 +95,6 @@ body { } /* Event Form Styles */ -/* Styling the form container */ .event-form { display: flex; flex-direction: column; @@ -60,7 +103,6 @@ body { padding: 20px; border: 1px solid #ccc; border-radius: 8px; - /* background-color: #f9f9f9; */ margin-top: 45px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Stronger shadow for more depth */ font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* Clean font */ @@ -68,19 +110,16 @@ body { overflow: hidden; /* Hide any content that overflows the form */ } -/* Form title styling */ .event-form h3 { - margin-bottom: 25px; font-size: 1.8rem; /* Larger font size for the title */ font-weight: bold; /* Make the title stand out */ - color: #1997fb; /* Darker title color */ + color: #1997fb; /* Darker title color */ text-align: center; /* Centered title */ text-transform: uppercase; /* Uppercase for emphasis */ letter-spacing: 2px; /* Increased letter spacing */ position: relative; animation: fadeInDown 0.5s ease-in-out; /* Add fade-in animation */ - } .event-form input, @@ -116,33 +155,6 @@ body { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */ } -/* Hover effect on color picker */ -.event-form input[type="color"]:hover { - border-color: #4caf50; /* Green border on hover */ - box-shadow: 0 0 8px rgba(76, 175, 80, 0.4); /* Green glow on hover */ - transform: scale(1.03); /* Slight scaling on hover */ -} - -/* Color Picker Circle inside input */ -.event-form input[type="color"]::-webkit-color-swatch { - border: none; /* Remove default border */ - border-radius: 8px; /* Rounded corners for color box */ - padding: 0; -} - -.event-form input[type="color"]::-webkit-color-swatch-wrapper { - padding: 0; - border-radius: 8px; /* Smooth edges */ -} - -/* When color picker is active (clicked) */ -.event-form input[type="color"]:focus { - outline: none; - border-color: #4caf50; - box-shadow: 0 0 8px rgba(76, 175, 80, 0.6); /* Green glow */ - transform: scale(1.05); /* Slight scale effect */ -} - /* Button hover effect */ .event-form button { background-color: #4caf50; /* Green background */ @@ -152,8 +164,6 @@ body { transition: all 0.3s ease; /* Smooth hover transition */ border-radius: 8px; font-weight: bold; /* Make the text stand out */ - transform: scale(1); /* Default state */ - animation: fadeInUp 0.6s ease-in-out; /* Button fade-in animation */ } .event-form button:hover { @@ -164,14 +174,12 @@ body { /* Label styling */ .event-form label { - font-size: 1rem; font-weight: 500; color: #1997fb; margin-bottom: 8px; /* Space between label and input */ text-align: left; animation: fadeInLeft 0.5s ease-in-out; /* Label animation */ - } /* Animation for fading the title in from the top */ @@ -229,7 +237,6 @@ body { .month-year-box { padding: 10px 20px; - /* background-color: #f0f0f0; */ border: 1px solid #ccc; border-radius: 5px; font-weight: bold; @@ -252,30 +259,18 @@ body { padding: 10px; /* Adjusted padding */ text-align: center; position: relative; - /* /* background-color: #ffffff; */ height: 100px; /* Fixed height for uniformity */ border-radius: 8px; /* Rounded corners */ transition: background-color 0.3s ease; /* Smooth transition */ } -/* Dark Mode Calendar Day Styles */ -body.dark-mode .calendar-day { - background-color: #1e1e1e; /* Dark mode day background */ - border-color: #444; /* Dark mode border color */ -} - .calendar-day:hover { background-color: #e0e0e0; } -body.dark-mode .calendar-day:hover { - background-color: #333; /* Dark hover effect */ -} - /* Event Styles */ .event { background-color: #4caf50; - /* color: white; */ padding: 5px; /* Adjusted padding */ border-radius: 3px; font-size: 14px; /* Increased font size */ @@ -301,605 +296,162 @@ body.dark-mode .calendar-day:hover { width: 90%; /* Make form full width on small screens */ margin: 10px 0; /* Adjust margin */ } -} - -/* General Navbar Styling */ -.navbar { - /* background-color: #333; */ - padding: 10px 10px; - display: flex; - align-items: center; - justify-content: space-between; - /* position: fixed; */ - width: 100%; - top: 0; - margin-top: 0px; - z-index: 1000; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); -} - -/* Center the menu items */ -.navbar ul { - display: flex; - justify-content: space-around; - align-items: center; - list-style: none; - flex: 1; -} - -/* Move Hamburger Menu to Right */ -.hamburger-menu { - margin-left: auto; - display: flex; - align-items: center; - cursor: pointer; -} - -/* Logo Styling */ -.logo { - height: 40px; - transition: transform 0.3s ease; -} - -.logo:hover { - transform: scale(1.1); -} -/* .darkmode { - background-color: #fdf8f8; - color: #070707; - background-color: #401111; - background-color: #908989; - background-color: #2a2929; - color: #401111; -} */ - -.website-name { - font-size: 1.8rem; - /* color: #fff; */ - font-weight: bold; - letter-spacing: 1.2px; - margin-right: auto; - margin-left: 15px; -} - -/* Center Links */ -.center-links { - list-style: none; - display: flex; - align-items: center; - - justify-content: center; - flex: 1; - position: relative; /* Added to position dropdowns correctly */ -} - -.center-links li { - margin-left: 25px; - position: relative; /* Added for dropdown positioning */ - - margin: 0; - z-index: 10; -} - -.navbar ul { - display: flex; - align-items: center; - gap: 4vw; - list-style: none; -} - -.navbar ul li { - position: relative; - display: inline-block; -} - -.navbar-links a:hover { - color: red; -} - -.center-links li a { - text-decoration: none; - /* color: #fff; */ - padding: 8px 10px; - border-radius: 4px; - transition: background-color 0.3s ease, color 0.3s ease; -} - -.center-links li a:hover { - background-color: #555; - - color: #f1c40f; /* Add hover color effect */ -} -/* Hamburger Menu Styling */ -.hamburger-menu .toggle-button { - display: flex; - position: relative; - flex-direction: column; - justify-content: space-between; - width: 40px; - height: 40px; - cursor: pointer; - padding: 4px; - padding-right: 10px; -} - -/* Apply a smooth transform transition for the icon */ -.hamburger-menu img { - width: 30px; - height: 30px; - transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; -} - -/* Rotation or scaling effect when active */ -.hamburger-menu img.active { - transform: rotate(90deg); /* or scale(1.2) for a scaling effect */ - opacity: 0.8; -} - -.my-svg { - width: 100px; - height: 100px; -} - -/* Dropdown Menu */ -.dropdown { - display: none; - position: absolute; - /* background-color: #333; */ - padding: 10px; - border-radius: 4px; - z-index: 1; - - top: 100%; - right: 0; - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); - max-width: calc(100vw - 40px); - overflow: hidden; -} - -.center-links li:hover .dropdown { - display: block; - - top: 27px; - right: 0%; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); - opacity: 0; - transform: translateY(-10px); - transition: opacity 0.3s ease, transform 0.3s ease; -} - -.navbar ul li:hover .dropdown { - display: block; - opacity: 1; - background-color: #895d5d; - color: #fff; - - transform: translateY(0); -} -.dropdown li { - margin: 10px 0; - list-style-type: disc; - padding-left: 20px; -} - -.dropdown li a { - /* color: #fff; */ - - padding: 5px 5px; - display: block; - white-space: nowrap; -} - -.dropdown li a:hover { - border-radius: 4px; -} -.dropdown li a span:hover { - background-color: #555; - border-radius: 4px; -} - -/* Hamburger Menu */ -.hamburger-menu { - position: relative; - margin-right: 5px; /* Added for dropdown positioning */ -} -/* Dropdown Styling */ -.hamburger-menu .dropdown { - display: block; - position: absolute; - background-color: #333; - padding: 10px; - border-radius: 4px; - z-index: 1; - top: 100%; - right: 0; - width: 200px; - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); -} - -.hamburger-menu.active .dropdown { - display: block; -} - -/* Fix the dropdown text formatting */ -.hamburger-menu .dropdown li { - list-style: none; - margin: 10px 0; -} - -.hamburger-menu .dropdown li a { - /* color: #fff; */ - padding: 10px 15px; - text-decoration: none; - display: block; - font-size: 1rem; -} - -.hamburger-menu .dropdown li a:hover { - background-color: #555; - color: #f1c40f; -} - -/* Dark Mode Button */ -#theme-switch { - height: 40px; - width: 40px; - margin: 0 20px; - padding: 5px; - border-radius: 50%; - background-color: #fff; - display: flex; - justify-content: center; - align-items: center; - cursor: pointer; - transition: background-color 0.3s ease, box-shadow 0.3s ease; -} - -body.dark-mode #theme-switch { - /* background-color: #333; */ - color: #fff; - box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2); -} - -#theme-switch:hover { - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); -} - -/* Responsive Adjustments */ -@media (max-width: 768px) { .navbar ul { flex-direction: column; align-items: flex-start; display: none; width: 100%; - /* background-color: #333; */ padding: 20px 0; position: absolute; top: 60px; left: 0; } - .navbar ul li { - margin-left: 0; - } - - .navbar ul li a { - padding: 10px 20px; - width: 100%; - } - - .navbar ul li:hover .dropdown { - position: relative; - top: 0; - left: 0; - } - - .hamburger-menu.active + ul { - display: flex; - } - - /* Dropdown for Hamburger */ - .hamburger-menu .dropdown { - top: 50px; - right: 0; - } -} - -/* Fixing Hamburger Menu Display */ -.hamburger-menu { - display: none; -} - -@media (max-width: 768px) { - .hamburger-menu { - display: block; - } - - .navbar ul { - display: none; - flex-direction: column; - align-items: flex-start; - width: 100%; - background-color: #856fc6; - border-radius: 5px; - position: absolute; - top: 60px; - right: 0; - padding: 20px 0; - } - .navbar ul.active { display: flex; } - .navbar ul li { - margin-left: 0; - width: 100%; - } - - .navbar ul li a { - padding: 10px 20px; - width: 100%; - } - - /* Dropdown for Hamburger */ - .hamburger-menu .dropdown { - display: none; - } - - .hamburger-menu.active .dropdown { - display: block; - } - - /* Fixing the space for the dropdown */ - .hamburger-menu .dropdown li { - padding-left: 0; - } - - .hamburger-menu .dropdown li a { - padding: 10px 15px; + .hamburger-menu { display: block; } } -/* About Community Section */ -.about-community { - padding: 30px; /* Increased padding for a more spacious layout */ - /* background-color: #f9f9f9; */ - /* color: #333; */ - font-size: 1.1rem; - line-height: 1.8; /* Increased line height for better readability */ - text-align: center; - margin-top: 20px; - border-radius: 10px; /* Rounded corners */ - /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */ - /* Subtle shadow effect */ -} - -/* Title styling */ -.about-community h2 { - font-size: 2.5rem; /* Increased font size */ - margin-bottom: 15px; - /* color: #333; */ - text-align: center; - font-weight: bold; /* Bold title for emphasis */ - text-transform: uppercase; /* Uppercase for better prominence */ -} - -/* Paragraph styling */ -.about-community p { - max-width: 800px; /* Max width for better readability */ - margin: 0 auto; /* Center the paragraph */ -} - /* Social Icons */ .social-icons { - margin-top: 30px; /* Increased margin for better spacing */ -} - -.social-icons a { - margin: 0 15px; - display: inline-block; + display: flex; + justify-content: center; + align-items: center; + gap: 15px; } .social-icons img { - width: 50px; /* Slightly larger icons */ - height: 50px; /* Slightly larger icons */ - transition: transform 0.3s ease, filter 0.3s ease; /* Smooth hover effects */ + width: 40px; + height: 40px; + transition: transform 0.3s ease; } .social-icons img:hover { transform: scale(1.1); - filter: brightness(1.2); /* Slightly brighten the icon on hover */ } -/* Media Queries for Responsive Design */ -@media (max-width: 600px) { - .about-community { - padding: 20px; /* Reduced padding on smaller screens */ - } - - .about-community h2 { - font-size: 2rem; /* Adjusted title size */ - } - - .social-icons img { - width: 40px; /* Smaller icons on mobile */ - height: 40px; /* Smaller icons on mobile */ - } -} - -/* Footer Styles */ -.footer { - padding: 20px 0; -} - -.container { - max-width: 1200px; - margin: 0 auto; - padding: 0 1rem; -} - -/* .footer-grid { - display: grid; - grid-template-columns: repeat(2, 1fr); - gap: 3rem; -} */ - -.footer-logo-section { - grid-column: span 2; -} - -.footer-logo { - height: 8.25rem; -} - -.footer-text { - margin-top: 1.75rem; - color: #9ca3af; - line-height: 1.75rem; -} - -.social-icons { - display: flex; - margin-top: 2.25rem; - gap: 1rem; -} - -.social-icon { - display: flex; - justify-content: center; - align-items: center; - width: 1.75rem; - height: 1.75rem; - - border-radius: 9999px; - transition: background-color 0.2s ease; +.darkmode .forum-section { + background-color: #2a2929; + color: #f5f5f5; } -.social-icon:hover { - background-color: #2563eb; +.darkmode .event-calendar { + background-color: #2a2929; + color: #f5f5f5; + border: 1px solid #444; /* Optional: change border for visibility */ } -.footer-section { - padding: 4rem 0; - - /* background-color: #f9fafb; */ +.darkmode a { + color: #4CAF50; /* Example link color in dark mode */ } -.container { - max-width: 1200px; - margin: 0 auto; - padding: 0 1rem; +.darkmode a:hover { + color: #f1c40f; /* Change hover color for links */ } -.footer-grid { - display: grid; - grid-column: 3; +/* Footer Styles */ +.footer { + padding: 20px 0; } -.footer-item { - column-span: 1; +.footer-bottom { + text-align: center; + margin-top: 20px; + padding-top: 10px; + border-top: 1px solid #444; } -@media (min-width: 768px) { - .footer-grid { - grid-template-columns: repeat(12, 1fr); - } - .footer-item { - grid-column: span 3; - } -} -.footer-logo-section { - grid-column: span 6; /* Logo section spans 6 columns on larger screens */ +.footer-bottom p { + margin: 0; + font-size: 14px; } -.footer-links { - grid-column: span 3; /* Links span 3 columns each */ +/* Forum Section styles */ +.forum-section { + padding: 20px; + background-color: #f9f9f9; + border: 1px solid #ccc; + margin: 20px 0; } -/* Footer Logo */ -.footer-logo { - height: 2.25rem; +.forum-section h2 { + color: #333; } -.footer-text { - margin-top: 1.75rem; - /* color: #4b5563; */ - line-height: 1.75rem; +.forum-section p { + font-size: 1.1rem; + line-height: 1.5; } -/* Social Icons Styling */ -.social-icons { - display: flex; - justify-content: center; /* Center icons horizontally */ - align-items: center; /* Center icons vertically */ - gap: 15px; /* Adjust the spacing between the icons */ - margin-top: 20px; - list-style: none; +.forum-section ul { + list-style-type: none; + padding: 0; } -.social-icons a { +.forum-section a { + color: #007bff; text-decoration: none; } -.social-icons img { - width: 40px; - height: 40px; - transition: transform 0.3s ease; -} - -.social-icons img:hover { - transform: scale(1.1); -} - -/* Remove any additional unwanted content */ -.social-icons::before, -.social-icons::after { - content: none; -} - -/* Footer Links */ -footer { - text-align: center; +/* Event Calendar styles */ +.event-calendar { + padding: 20px; + background-color: #f9f9f9; + border: 1px solid #ccc; + margin: 20px 0; } -.footer-title { - font-size: 0.875rem; - font-weight: 600; - letter-spacing: 0.1em; - /* color: #9ca3af; */ - margin-bottom: 1.5rem; +.event-calendar h2 { + color: #333; + margin-bottom: 15px; } -.footer-list { - list-style: none; - padding: 0; +.event { + margin-bottom: 20px; + padding: 15px; + border: 1px solid #ddd; + border-radius: 4px; + background-color: #fff; } -.footer-list li { - margin-bottom: 1rem; +.event h3 { + color: #007bff; } -.footer-list a { - color: #9ca3af; +.event a { + color: #007bff; text-decoration: none; - transition: color 0.2s ease; + font-weight: bold; } -.footer-list a:hover { - color: #2563eb; +.event a:hover { + text-decoration: underline; } -/* Divider and Footer Bottom Text */ -.footer-divider { - margin: 4rem 0; - border-top: 1px solid #e5e7eb; +/* Dark Mode Toggle Button Styles */ +#theme-switch-fixed { + height: 40px; /* Increased size for better visibility */ + width: 40px; + border: none; /* Remove border */ + border-radius: 50%; + background-color: #444; /* Dark background for the button */ + color: white; /* Icon color */ + display: flex; + justify-content: center; + align-items: center; + position: fixed; + top: 20px; + right: 20px; + cursor: pointer; + z-index: 1000; /* Ensure it's above other elements */ + transition: background-color 0.3s ease; /* Smooth transition */ } -.footer-bottom-text { - text-align: center; - color: #6b7280; - font-size: 0.875rem; -} +#theme-switch-fixed:hover { + background-color: #555; /* Lighter shade on hover */ +} \ No newline at end of file