Skip to content

Commit ccbf366

Browse files
committed
feat: update Footer
1 parent 6fffc08 commit ccbf366

File tree

1 file changed

+24
-41
lines changed

1 file changed

+24
-41
lines changed

src/components/Footer.astro

Lines changed: 24 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,38 @@
11
---
2-
import LucidePackageSearch from "~icons/lucide/package-search";
32
import VercelBanner from "./VercelBanner.astro";
43
54
declare global {
65
// See `astro.config.mjs` for definition.
76
const __GIT_COMMIT: string;
87
}
98
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}`;
1313
---
1414

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">
3217
<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>
4318

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>
4928

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>
5538
</footer>

0 commit comments

Comments
 (0)