-
Notifications
You must be signed in to change notification settings - Fork 355
Expand file tree
/
Copy pathFooter.tsx
More file actions
162 lines (159 loc) · 3.62 KB
/
Footer.tsx
File metadata and controls
162 lines (159 loc) · 3.62 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
export default function Footer_new() {
return (
<footer class="text-smaller bg-gray-50 dark:bg-gray-950 p-4 pt-12 sm:px-8 border-t border-t-foreground-tertiary">
<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">
{data.map((category) => (
<section class="flex-auto">
<h3 class="mb-2 uppercase font-bold text-foreground-primary whitespace-pre">
{category.title}
</h3>
<ul class="m-0 p-0 pl-3 border-l border-l-background-tertiary list-none">
{category.items.map((item) => (
<li>
<a
class="block mb-2 hover:text-primary hover:underline"
href={item.to ?? item.href}
dangerouslySetInnerHTML={{ __html: item.label }}
/>
</li>
))}
</ul>
</section>
))}
</nav>
<p class="m-0 mt-16 mx-auto text-center text-xs text-foreground-secondary">
Copyright © {new Date().getFullYear()} the Deno authors.
</p>
</footer>
);
}
interface FooterCategory {
title: string;
items: FooterItem[];
}
type FooterItem = {
label: string;
to: string;
} | {
label: string;
href: string;
};
const data = [
{
title: "Deno Docs",
items: [
{
label: "Deno Runtime",
to: "/runtime/",
},
{
label: "Examples",
href: "/examples/",
},
{
label: "Standard Library",
href: "https://jsr.io/@std",
},
{
label: "Deno API Reference",
href: "/api/deno/~/Deno",
},
],
},
{
title: "Services Docs",
items: [
{
label: "Deno Deploy <sup>EA</sup>",
to: "/deploy/early-access/",
},
{
label: "Deno Deploy Classic",
to: "/deploy/manual/",
},
{
label: "Deno Subhosting",
to: "/subhosting/manual/",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
href: "https://discord.gg/deno",
},
{
label: "GitHub",
href: "https://github.com/denoland",
},
{
label: "YouTube",
href: "https://youtube.com/@deno_land",
},
{
label: "Bluesky",
href: "https://bsky.app/profile/deno.land",
},
{
label: "Mastodon",
href: "https://fosstodon.org/@deno_land",
},
{
label: "Twitter",
href: "https://twitter.com/deno_land",
},
{
label: "Newsletter",
href: "https://deno.news/",
},
],
},
{
title: "Help & Feedback",
items: [
{
label: "Community Support",
href: "https://discord.gg/deno",
},
{
label: "Deploy System Status",
href: "https://denostatus.com",
},
{
label: "Deploy Feedback",
href: "https://github.com/denoland/deploy_feedback",
},
{
label: "Report a Problem",
href: "mailto:support@deno.com",
},
],
},
{
title: "Company",
items: [
{
label: "Deno Website",
href: "https://deno.com/",
},
{
label: "Blog",
href: "https://deno.com/blog",
},
{
label: "Careers",
href: "https://deno.com/jobs",
},
{
label: "Merch",
href: "https://merch.deno.com/",
},
{
label: "Privacy Policy",
href: "/deploy/manual/privacy-policy",
},
],
},
] satisfies FooterCategory[];