|
1 | 1 | --- |
2 | | -import LucidePackageSearch from "~icons/lucide/package-search"; |
3 | 2 | import VercelBanner from "./VercelBanner.astro"; |
4 | 3 |
|
5 | 4 | declare global { |
6 | 5 | // See `astro.config.mjs` for definition. |
7 | 6 | const __GIT_COMMIT: string; |
8 | 7 | } |
9 | 8 |
|
10 | | -const gitCommit = __GIT_COMMIT; |
11 | | -const gitCommitShort = gitCommit.slice(0, 7); |
12 | | -const githubCommitUrl = `https://github.com/jsdocs-io/web/commit/${gitCommit}`; |
| 9 | +const commit = __GIT_COMMIT; |
| 10 | +const commitShort = commit.slice(0, 7); |
| 11 | +const ghUrl = `https://github.com/jsdocs-io/web`; |
| 12 | +const ghCommitUrl = `${ghUrl}/commit/${commit}`; |
13 | 13 | --- |
14 | 14 |
|
15 | | -<footer class="footer border-base-content/20 bg-base-200 text-base-content border-t p-10 *:gap-3"> |
16 | | - <aside> |
17 | | - <a href="/" class="link-hover link flex items-center gap-2 text-xl font-bold"> |
18 | | - <LucidePackageSearch class="size-8" /> |
19 | | - jsDocs.io |
20 | | - </a> |
21 | | - <p> |
22 | | - Created by <a href="https://www.edoardoscibona.com" class="link-hover link font-bold" |
23 | | - >Edoardo Scibona</a |
24 | | - > |
25 | | - <br /> |
26 | | - <span class="text-xs"> |
27 | | - Commit: <a href={githubCommitUrl} class="link-hover link"> |
28 | | - {gitCommitShort} |
29 | | - </a> |
30 | | - </span> |
31 | | - </p> |
| 15 | +<footer class="border-t"> |
| 16 | + <div class="flex flex-col lg:flex-row lg:items-center justify-between gap-4 p-4"> |
32 | 17 | <VercelBanner /> |
33 | | - </aside> |
34 | | - |
35 | | - <nav> |
36 | | - <h6 class="footer-title opacity-70">Links</h6> |
37 | | - <a href="/" class="link-hover link">Home</a> |
38 | | - <a href="/about" class="link-hover link">About</a> |
39 | | - <a href="/donate" class="link-hover link">Donate or sponsor</a> |
40 | | - <a href="/guide" class="link-hover link">Guide for developers</a> |
41 | | - <a href="https://github.com/jsdocs-io/web/issues" class="link-hover link">Report an issue</a> |
42 | | - </nav> |
43 | 18 |
|
44 | | - <nav> |
45 | | - <h6 class="footer-title opacity-70">Social</h6> |
46 | | - <a href="https://github.com/jsdocs-io/web" class="link-hover link">GitHub</a> |
47 | | - <a href="https://x.com/jsDocs" class="link-hover link">X (Twitter)</a> |
48 | | - </nav> |
| 19 | + <nav class="text-muted-foreground text-xs flex flex-col gap-2 md:flex-row md:items-center"> |
| 20 | + <a href={ghCommitUrl} class="underline-offset-4 hover:underline">{commitShort}</a> |
| 21 | + <a href={ghUrl} class="underline-offset-4 hover:underline">GitHub</a> |
| 22 | + <a href="/third-party-licenses.txt" class="underline-offset-4 hover:underline">OSS licenses</a |
| 23 | + > |
| 24 | + <a href="/privacy" class="underline-offset-4 hover:underline">Privacy policy</a> |
| 25 | + <a href="/donate" class="underline-offset-4 hover:underline">Donate</a> |
| 26 | + <a href="/developers" class="underline-offset-4 hover:underline">Developers</a> |
| 27 | + <a href="/about" class="underline-offset-4 hover:underline">About</a> |
49 | 28 |
|
50 | | - <nav> |
51 | | - <h6 class="footer-title opacity-70">Legal</h6> |
52 | | - <a href="/privacy" class="link-hover link">Privacy policy</a> |
53 | | - <a href="/licenses" class="link-hover link">Software licenses</a> |
54 | | - </nav> |
| 29 | + <div class="w-px h-4 bg-border hidden md:block"></div> |
| 30 | + <div> |
| 31 | + Made by |
| 32 | + <a href="https://github.com/velut" class="font-bold underline underline-offset-4" |
| 33 | + >Edoardo Scibona</a |
| 34 | + > |
| 35 | + </div> |
| 36 | + </nav> |
| 37 | + </div> |
55 | 38 | </footer> |
0 commit comments