Skip to content

Commit

Permalink
no longer crimbus
Browse files Browse the repository at this point in the history
  • Loading branch information
Umbranoxio committed Jan 6, 2024
1 parent 99cf40f commit b836e1f
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
50 changes: 25 additions & 25 deletions src/lib/components/common/footer.svelte
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<script lang="ts">
import { onMount } from 'svelte';
// import { onMount } from 'svelte';
import { snowVisible } from '$lib/stores/global-store';
// import { snowVisible } from '$lib/stores/global-store';
import CookieConsent from './cookie-consent.svelte';
onMount(() => {
const snowDisabled = localStorage.getItem('snow-disabled');
if (snowDisabled == undefined) {
localStorage.setItem('snow-disabled', 'false');
toggleSnow(true);
} else {
if (snowDisabled == 'false') {
toggleSnow(true);
}
}
});
function toggleSnow(fromMount = false) {
snowVisible.set(!$snowVisible);
if (!fromMount) {
if ($snowVisible) {
localStorage.setItem('snow-disabled', 'false');
} else {
localStorage.setItem('snow-disabled', 'true');
}
}
}
// onMount(() => {
// const snowDisabled = localStorage.getItem('snow-disabled');
// if (snowDisabled == undefined) {
// localStorage.setItem('snow-disabled', 'false');
// toggleSnow(true);
// } else {
// if (snowDisabled == 'false') {
// toggleSnow(true);
// }
// }
// });
// function toggleSnow(fromMount = false) {
// snowVisible.set(!$snowVisible);
// if (!fromMount) {
// if ($snowVisible) {
// localStorage.setItem('snow-disabled', 'false');
// } else {
// localStorage.setItem('snow-disabled', 'true');
// }
// }
// }
</script>

<div class="sticky-footer"><CookieConsent /></div>
Expand Down Expand Up @@ -60,11 +60,11 @@
<a href="https://scoresaber.store" target="_blank" rel="external" title="Get ScoreSaber merch!" class="square"
><i class="fas fa-tshirt fa-2x" /></a
>
<button on:click={() => toggleSnow()} class="button toggle is-small is-dark mb-2" title="Toggle Snow">
<!-- <button on:click={() => toggleSnow()} class="button toggle is-small is-dark mb-2" title="Toggle Snow">
<span class="icon is-small">
<i class="fas fa-dot-circle" />
</span>
</button>
</button> -->
</nav>

<p>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/common/navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { userData, searchView } from '$lib/stores/global-store';
import SearchView from '$lib/components/common/search.svelte';
import Announcement from '$lib/components/common/announcement.svelte';
// import Announcement from '$lib/components/common/announcement.svelte';
import { API_URL, CDN_URL } from '$lib/utils/env';
import fetcher from '$lib/utils/fetcher';
Expand Down
6 changes: 3 additions & 3 deletions src/routes/__layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { page } from '$app/stores';
import { browser } from '$app/env';
import { background, snowVisible, userData } from '$lib/stores/global-store';
import { background, userData } from '$lib/stores/global-store';
import Navbar from '$lib/components/common/navbar.svelte';
import Footer from '$lib/components/common/footer.svelte';
Expand Down Expand Up @@ -95,14 +95,14 @@
{/key}
<div class="cover" />
<Navbar />
<div id="snow" class="snow {$snowVisible ? 'visible' : ''}">
<!-- <div id="snow" class="snow {$snowVisible ? 'visible' : ''}">
{#each Array(30) as _, i}
<div class="snowflake" />
{#if $page.url.pathname === '/u/76561198064659288'}
<div class="snowflake denyah" />
{/if}
{/each}
</div>
</div> -->
<div class="page-container content">
<slot />
</div>
Expand Down

0 comments on commit b836e1f

Please sign in to comment.