diff --git a/new-website/assets/GSSocDark.png b/new-website/assets/GSSocDark.png new file mode 100644 index 00000000..50f25a35 Binary files /dev/null and b/new-website/assets/GSSocDark.png differ diff --git a/new-website/assets/GSSocLight.png b/new-website/assets/GSSocLight.png new file mode 100644 index 00000000..775869ab Binary files /dev/null and b/new-website/assets/GSSocLight.png differ diff --git a/new-website/assets/image.png b/new-website/assets/image.png new file mode 100644 index 00000000..957ebe13 Binary files /dev/null and b/new-website/assets/image.png differ diff --git a/new-website/home.js b/new-website/home.js index bec2f7cf..800855f9 100644 --- a/new-website/home.js +++ b/new-website/home.js @@ -2,6 +2,12 @@ document.querySelector("input[type='checkbox']#dark-toggle").addEventListener("click", darkModeListener); function toggleDarkMode() { document.documentElement.classList.toggle('dark'); + // Check if dark mode is enabled + const isDarkModeEnabled = document.documentElement.classList.contains('dark'); + // Get the image element + const orgLogoImg = document.getElementById('org-logo'); + // Set the new image source based on dark mode state + orgLogoImg.src = isDarkModeEnabled ? 'assets/GSSocDark.png' : 'assets/GSSocLight.png'; } // For particles diff --git a/new-website/index.html b/new-website/index.html index 855dc58e..07ff1af7 100644 --- a/new-website/index.html +++ b/new-website/index.html @@ -7,6 +7,7 @@