Skip to content

Commit

Permalink
Update dark theme to night, add padding on body
Browse files Browse the repository at this point in the history
Signed-off-by: Nishant Nayak <[email protected]>
  • Loading branch information
nishant-nayak committed Aug 26, 2023
1 parent 9678d11 commit 77196ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion corpus/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script>
tailwind.config = {
daisyui: {
themes: ["winter", "dark"]
themes: ["winter", "night"]
}
}
</script>
Expand Down
2 changes: 1 addition & 1 deletion corpus/templates/components/dark_mode_toggle.html
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion corpus/templates/pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% endblock %}

{% block content %}
<div class="container prose mx-auto my-10">
<div class="container prose mx-auto px-5 my-10">
<h1>Welcome to Corpus!</h1>
<p>Corpus is IEEE NITK's tool to manage all internal and external activities of the club.</p>
</div>
Expand Down

0 comments on commit 77196ad

Please sign in to comment.