-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
/
Copy pathfooter.svelte
56 lines (54 loc) · 1.27 KB
/
footer.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<script lang="ts">
import packageJSON from "@auth/sveltekit/package.json"
import ExternalIcon from "./external-icon.svelte"
</script>
<footer>
<div>
<a href="https://sveltekit.authjs.dev">Documentation <ExternalIcon /></a>
<a href="https://www.npmjs.com/package/next-auth"> NPM <ExternalIcon /> </a>
<a
href="https://github.com/nextauthjs/next-auth/tree/main/apps/examples/sveltekit"
>
Source on GitHub <ExternalIcon />
</a>
<a class="no-underline" href="/policy">Policy</a>
</div>
<div>
<img src="https://authjs.dev/img/logo-sm.png" alt="Auth.js Logo" />
<a href="https://www.npmjs.com/package/@auth/sveltekit">
@auth/sveltekit@{packageJSON.version}
<ExternalIcon />
</a>
</div>
</footer>
<style>
footer {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
padding-inline: 1.25rem;
margin-block: 2rem;
}
footer > div {
gap: 1rem;
display: flex;
flex-wrap: wrap;
align-items: center;
}
footer a {
color: #333;
text-underline-offset: 4px;
font-weight: 500;
display: flex;
align-items: flex-end;
gap: 0.25rem;
}
footer img {
width: 24px;
height: 24px;
}
.no-underline {
text-decoration: none;
}
</style>