Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented the sticky behavior for the light mode and dark mode buttons #395

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
2 changes: 0 additions & 2 deletions src/lib/components/footer.svelte
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
<script lang="ts">
import ThemeSwitcher from './theme-switcher.svelte';
import PackageVersion from './package-version.svelte';
</script>

<footer class="mt-auto w-full bg-skin-off-background py-4">
<div class="mx-auto flex w-[90%] max-w-[1440px] items-center justify-between">
<ThemeSwitcher />
<PackageVersion />

<ul class="flex list-none items-center justify-center gap-8">
Expand Down
2 changes: 2 additions & 0 deletions src/lib/components/header.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import ProfilePicture from './profile-picture.svelte';
import { page } from '$app/stores';
import ThemeSwitcher from './theme-switcher.svelte';

import showHamburgerMenu from '$lib/stores/show-hamburger-menu';
import HamburgerMenu from './hamburger-menu/menu.svelte';
Expand Down Expand Up @@ -35,6 +36,7 @@
aria-label="hubber"
/>
</a>
<ThemeSwitcher />
<div class="lg:hidden">
<button
on:click={() => ($showHamburgerMenu = true)}
Expand Down