From 3a10b8299342156b9d392b383ee1611b31ba1a20 Mon Sep 17 00:00:00 2001 From: badhri-hari Date: Fri, 15 Aug 2025 17:16:16 -0400 Subject: [PATCH 1/2] Added dark mode --- index.html | 269 ++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 202 insertions(+), 67 deletions(-) diff --git a/index.html b/index.html index 26ab97b..7502540 100644 --- a/index.html +++ b/index.html @@ -81,6 +81,91 @@ cursor: pointer; transition: all 0.2s ease; } + + #dark-mode-toggle { + border: none; + background: transparent; + cursor: pointer; + font-size: 1.5rem; + margin-top: 10px; + } + + /* Dark mode styles */ + body.dark-mode { + background-color: #1e1e1e; + color: #e0e0e0; + } + + body.dark-mode header, + body.dark-mode main, + body.dark-mode footer { + background-color: #1e1e1e; + color: #e0e0e0; + border-color: #333; + } + + body.dark-mode input, + body.dark-mode .filter-active, + body.dark-mode #all-tags-bar, + body.dark-mode .community-card { + background-color: #2a2a2a; + border-color: #444; + color: #e0e0e0; + } + + body.dark-mode .filter-active { + background-color: #2a2a2a2a; + } + + body.dark-mode input::placeholder { + color: #aaa; + } + + body.dark-mode .pscifont { + color: #72A9EC; + } + + body.dark-mode .dark-mode-font-color-0 { + color: #B0AA9F; + } + + body.dark-mode .dark-mode-font-color-1 { + color: #C6D3DF; + } + + body.dark-mode .dark-mode-font-color-2 { + color: #CCC7C0; + } + + body.dark-mode .dark-mode-font-color-3 { + color: #D0D0D0; + } + + body.dark-mode .tag { + background-color: #3a3a3a; + color: #d0d0d0; + } + + body.dark-mode .tag:hover { + background-color: #505050; + } + + body.dark-mode .dark-mode-active-filter { + background-color: #3a3a3a; + color: #d0d0d0; + } + + body.dark-mode .expired-btn { + background-color: #3b82f6; + color: #fff; + } + + body.dark-mode .expired-btn { + border-color: #ef4444; + color: #ef4444; + opacity: 0.6; + } + @@ -89,7 +174,7 @@

PSCI

-

+

Penn State Communities Index

@@ -99,7 +184,7 @@

class="w-full p-3 rounded-xl border border-slate-300 focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none transition duration-150 ease-in-out text-slate-700 placeholder-slate-400 bg-white sm:text-sm">
-

Filter by Tags:

+

Filter by Tags:

@@ -118,11 +203,11 @@

Filter by Tags: