Skip to content

Commit be77ebf

Browse files
Update footer links and styles
1 parent 4f7c021 commit be77ebf

4 files changed

Lines changed: 48 additions & 22 deletions

File tree

_components/Footer.tsx

Lines changed: 44 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
export default function Footer_new() {
22
return (
3-
<footer class="text-sm bg-gray-50 dark:bg-gray-950 p-4 pt-12 sm:px-8 border-t border-t-foreground-tertiary">
4-
<nav className="flex flex-col gap-y-12 max-w-7xl md:flex-row md:flex-wrap md:justify-between md:w-full md:gap-y-8 md:mx-auto">
3+
<footer class="text-smaller bg-gray-50 dark:bg-gray-950 p-4 pt-12 sm:px-8 border-t border-t-foreground-tertiary">
4+
<nav className="flex flex-col gap-x-4 gap-y-12 max-w-7xl md:flex-row md:flex-wrap md:justify-between md:w-full md:gap-y-8 md:mx-auto">
55
{data.map((category) => (
66
<section>
7-
<h3 class="mb-4 text-base font-bold text-foreground-primary">
7+
<h3 class="mb-2 uppercase font-bold text-foreground-primary whitespace-pre">
88
{category.title}
99
</h3>
10-
<ul class="m-0 p-0 list-none">
10+
<ul class="m-0 p-0 pl-3 border-l border-l-background-tertiary list-none">
1111
{category.items.map((item) => (
1212
<li>
1313
<a
14-
class="block mb-2 text-foreground-secondary hover:text-primary"
14+
class="block mb-2 hover:text-primary hover:underline"
1515
href={item.to ?? item.href}
16-
>
17-
{item.label}
18-
</a>
16+
dangerouslySetInnerHTML={{ __html: item.label }}
17+
/>
1918
</li>
2019
))}
2120
</ul>
@@ -50,14 +49,6 @@ const data = [
5049
label: "Deno Runtime",
5150
to: "/runtime/",
5251
},
53-
{
54-
label: "Deno Deploy",
55-
to: "/deploy/manual/",
56-
},
57-
{
58-
label: "Deno Subhosting",
59-
to: "/subhosting/manual/",
60-
},
6152
{
6253
label: "Examples",
6354
href: "/examples/",
@@ -66,6 +57,27 @@ const data = [
6657
label: "Standard Library",
6758
href: "https://jsr.io/@std",
6859
},
60+
{
61+
label: "Deno API Reference",
62+
href: "/api/deno/~/Deno",
63+
},
64+
],
65+
},
66+
{
67+
title: "Services Docs",
68+
items: [
69+
{
70+
label: "Deno Deploy <sup>EA</sup>",
71+
to: "/deploy/early-access/",
72+
},
73+
{
74+
label: "Deno Deploy Classic",
75+
to: "/deploy/manual/",
76+
},
77+
{
78+
label: "Deno Subhosting",
79+
to: "/subhosting/manual/",
80+
},
6981
],
7082
},
7183
{
@@ -79,14 +91,22 @@ const data = [
7991
label: "GitHub",
8092
href: "https://github.com/denoland",
8193
},
82-
{
83-
label: "Twitter",
84-
href: "https://twitter.com/deno_land",
85-
},
8694
{
8795
label: "YouTube",
8896
href: "https://youtube.com/@deno_land",
8997
},
98+
{
99+
label: "Bluesky",
100+
href: "https://bsky.app/profile/deno.land",
101+
},
102+
{
103+
label: "Mastodon",
104+
href: "https://fosstodon.org/@deno_land",
105+
},
106+
{
107+
label: "Twitter",
108+
href: "https://twitter.com/deno_land",
109+
},
90110
{
91111
label: "Newsletter",
92112
href: "https://deno.news/",
@@ -117,6 +137,10 @@ const data = [
117137
{
118138
title: "Company",
119139
items: [
140+
{
141+
label: "Deno Website",
142+
href: "https://deno.com/",
143+
},
120144
{
121145
label: "Blog",
122146
href: "https://deno.com/blog",

_components/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function (
1515
return (
1616
<>
1717
<aside
18-
className={`fixed transition-all duration-200 md:duration-0 easing-[cubic-bezier(0.165,0.84,0.44,1)] -translate-x-full z-50 w-full bg-background-raw opacity-0 p-4 pb-8 overflow-auto text-[0.8125rem] md:sticky md:overflow-y-auto md:[scrollbar-width:thin] md:z-10 md:!translate-x-0 md:!opacity-100 md:p-0 md:pb-16 lg:border-r lg:border-r-foreground-tertiary lg:w-full sidebar-open:translate-x-0 sidebar-open:opacity-100
18+
className={`fixed transition-all duration-200 md:duration-0 easing-[cubic-bezier(0.165,0.84,0.44,1)] -translate-x-full z-50 w-full bg-background-raw opacity-0 p-4 pb-8 overflow-auto text-smaller md:sticky md:overflow-y-auto md:[scrollbar-width:thin] md:z-10 md:!translate-x-0 md:!opacity-100 md:p-0 md:pb-16 lg:border-r lg:border-r-foreground-tertiary lg:w-full sidebar-open:translate-x-0 sidebar-open:opacity-100
1919
${
2020
hasSubNav
2121
? "top-header-plus-subnav h-screen-minus-both"

_components/TableOfContentsItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function TableOfContentsItem(
77
<li class="m-2 mr-0 leading-4 text-balance">
88
<a
99
href={`#${props.item.slug}`}
10-
className="text-[0.8125rem] lg:text-foreground-secondary hover:text-primary transition-colors duration-200 ease-in-out select-none"
10+
className="text-smaller lg:text-foreground-secondary hover:text-primary transition-colors duration-200 ease-in-out select-none"
1111
>
1212
{props.item.text.replaceAll(/ \([0-9/]+?\)/g, "")}
1313
</a>

styles.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
--breakpoint-xs: 30rem;
7575
--breakpoint-xlplus: 82rem;
7676

77+
--text-smaller: 0.8125rem;
78+
7779
--font-sans:
7880
"Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
7981
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

0 commit comments

Comments
 (0)