Skip to content

Commit d8033cc

Browse files
aadd (#79)
1 parent 51c1308 commit d8033cc

File tree

4 files changed

+32
-22
lines changed

4 files changed

+32
-22
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<svg
2+
role="img"
3+
viewBox="0 0 24 24"
4+
xmlns="http://www.w3.org/2000/svg"
5+
class="text-black dark:text-white"
6+
fill="currentColor"
7+
><title>GitHub</title><path
8+
d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"
9+
/></svg
10+
>

src/frontend/src/routes/(needs_onboarding)/(navbar_and_footer)/(fancy_grid)/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@
486486
</svg>
487487
<Skeleton class="mb-6 h-16 w-16 rounded-full" />
488488
<Skeleton class="mb-2 h-7 w-48" />
489-
<Skeleton class="mx-auto mb-8 h-6 w-103.5 md:mb-4 md:h-5" />
489+
<Skeleton class="mx-auto mb-8 h-6 w-full md:mb-4 md:h-5" />
490490
<Skeleton class="h-19 w-64 rounded-md md:h-14 md:w-56" />
491491
</div>
492492
{:else if isUploadComplete}

src/frontend/src/routes/(needs_onboarding)/(navbar_and_footer)/+layout.svelte

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import { kebab_to_initials } from '$lib/functions/string-conversion';
1212
import { make_libravatar_url } from '$lib/functions/libravatar';
1313
import { page } from '$app/state';
14-
14+
import GithubIcon from '$lib/logos/github.svelte';
1515
const { isAuthenticated, user: userData } = useAuth();
1616
1717
let { children } = $props();
@@ -42,6 +42,13 @@
4242
icon: Link
4343
}
4444
];
45+
const footerLinks = [
46+
{
47+
href: 'https://github.com/chithi-dev/chithi',
48+
name: 'Source',
49+
icon: GithubIcon
50+
}
51+
];
4552
</script>
4653

4754
<div class="flex min-h-screen min-w-screen flex-col bg-background text-foreground">
@@ -132,25 +139,21 @@
132139

133140
<!-- Footer -->
134141
<footer class="border-t border-border p-4">
135-
<div class="mx-auto w-full max-w-6xl">
142+
<div class="mx-auto w-full">
136143
<nav
137144
class="flex flex-row flex-wrap items-center justify-end gap-2 text-sm text-muted-foreground md:gap-6"
138145
>
139-
<!-- <a
140-
href="/donate"
141-
class="font-medium whitespace-nowrap transition-colors hover:text-foreground">Donate</a
142-
>
143-
<a href="/cli" class="font-medium whitespace-nowrap transition-colors hover:text-foreground"
144-
>CLI</a
145-
>
146-
<a
147-
href="/dmca"
148-
class="font-medium whitespace-nowrap transition-colors hover:text-foreground">DMCA</a
149-
> -->
150-
<a
151-
href="https://github.com/chithi-dev/chithi"
152-
class="font-medium whitespace-nowrap transition-colors hover:text-foreground">Source</a
153-
>
146+
{#each footerLinks as footer_item}
147+
<Button
148+
variant="ghost"
149+
size="icon"
150+
aria-label={footer_item.name}
151+
class="transition-colors hover:text-foreground"
152+
href={footer_item.href}
153+
>
154+
<footer_item.icon />
155+
</Button>
156+
{/each}
154157
</nav>
155158
</div>
156159
</footer>

src/frontend/src/routes/+layout.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
import { ModeWatcher } from 'mode-watcher';
66
import { QueryClient, QueryClientProvider } from '@tanstack/svelte-query';
77
import { SvelteQueryDevtools } from '@tanstack/svelte-query-devtools';
8-
import { page } from '$app/state';
98
import { Toaster } from '$lib/components/ui/sonner/index.js';
10-
import { goto } from '$app/navigation';
11-
import { useOnboarding } from '$lib/queries/onboarding';
129
1310
let { children } = $props();
1411
@@ -30,7 +27,7 @@
3027

3128
<ModeWatcher />
3229
<QueryClientProvider client={queryClient}>
33-
<SvelteQueryDevtools />
30+
<SvelteQueryDevtools buttonPosition="top-left" />
3431

3532
{@render children()}
3633
</QueryClientProvider>

0 commit comments

Comments
 (0)