From 77196ad31ddecc8785809233b6c436a2689f0fc2 Mon Sep 17 00:00:00 2001 From: Nishant Nayak Date: Sat, 26 Aug 2023 22:17:46 +0530 Subject: [PATCH] Update dark theme to night, add padding on body Signed-off-by: Nishant Nayak --- corpus/templates/base.html | 2 +- corpus/templates/components/dark_mode_toggle.html | 2 +- corpus/templates/pages/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/corpus/templates/base.html b/corpus/templates/base.html index cdd1cc33..25558d71 100644 --- a/corpus/templates/base.html +++ b/corpus/templates/base.html @@ -16,7 +16,7 @@ diff --git a/corpus/templates/components/dark_mode_toggle.html b/corpus/templates/components/dark_mode_toggle.html index a59ab8bc..dae8d984 100644 --- a/corpus/templates/components/dark_mode_toggle.html +++ b/corpus/templates/components/dark_mode_toggle.html @@ -13,7 +13,7 @@ const toggleTheme = () => { let theme = localStorage.getItem("corpusTheme") || "winter"; - theme = theme == "winter" ? "dark" : "winter"; + theme = theme == "winter" ? "night" : "winter"; const icon = theme == "winter" ? "dark_mode" : "light_mode"; document.documentElement.setAttribute("data-theme", theme); $("#dark-mode-toggle").html(icon); diff --git a/corpus/templates/pages/index.html b/corpus/templates/pages/index.html index a0361ee3..7c90553b 100644 --- a/corpus/templates/pages/index.html +++ b/corpus/templates/pages/index.html @@ -5,7 +5,7 @@ {% endblock %} {% block content %} -
+

Welcome to Corpus!

Corpus is IEEE NITK's tool to manage all internal and external activities of the club.