Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
max-width: 100rem;
}

.dark-mode {
background-color: #121212;
color: #f5f5f5;
}

h6 {
font-size: 1rem;
}
Expand Down Expand Up @@ -61,6 +66,11 @@ html {
transition: 0.5s;
}

.get-started-dark-mode {
background-color: #f5f5f5;
color: #121212;
}

@keyframes animate {
0% {
background-position-y: 0;
Expand Down
13 changes: 13 additions & 0 deletions views/home.pug
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ block content
h2 Get <span class="name">Interactive</span> Beautiful Insights on what you listen ( On Spotify )!

a.get-started(href="/login") GET STARTED
button.dark-mode-button(onclick="toggleDarkMode()") Dark Mode
script.
function toggleDarkMode() {
var body = document.body;
var button = document.querySelector('.dark-mode-button');
if (body.classList.contains('dark-mode')) {
body.classList.remove('dark-mode');
button.classList.remove('get-started-dark-mode');
} else {
body.classList.add('dark-mode');
button.classList.add('get-started-dark-mode');
}
}

h5 P.S. If the graphs are a bit messed up in size or are blurred, please <span class="name">refresh</span> the page and <span class="name">adjust the browser zoom level.</span>

Expand Down