forked from taikoxyz/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
112 lines (111 loc) · 3.2 KB
/
theme.config.tsx
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
import { Footer } from "./components/Home";
import { ThemeToggle } from "./components/ThemeToggle";
import { ThemedImage } from "./components/ThemedImage";
import { useConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
export default {
search: {
component: <></>, // disable search
},
banner: {
key: "banner",
text: (
<a
href="https://taiko.mirror.xyz/a5SHfg_V16TOVS_LpFgrbfgi_shwC5HhpPZ5C2hnuFo"
target="_blank">
📌 Katla is here! Read the full blog post →
</a>
),
},
chat: {
link: "https://discord.gg/taikoxyz",
},
gitTimestamp: <></>,
darkMode: false,
docsRepositoryBase: "https://github.com/taikoxyz/website/blob/main",
editLink: {
text: "Edit this page 📝",
},
feedback: {
content: (
<button
onClick={() => {
const win = window.open(
"https://forms.gle/TAnV1xLmFwH13ryj7",
"_blank",
"noopener,noreferrer"
);
if (win) win.opener = null;
}}>
Leave feedback 💬
</button>
),
},
footer: {
component: Footer,
},
head: () => {
const { asPath } = useRouter();
const { frontMatter } = useConfig();
return (
<>
<meta
property="og:url"
content={`https://taiko.xyz${asPath}`}
/>
<meta
property="og:title"
content={frontMatter.title || "Taiko"}
/>
<meta
property="og:description"
content={
frontMatter.description ||
"A decentralized, Ethereum-equivalent ZK-Rollup."
}
/>
<meta
property="og:image"
content={"/images/Taiko_social_media_preview.png"}
/>
<link rel="icon" href="/images/favicon.svg" />
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-96XHJ533EK"></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-96XHJ533EK');
`,
}}
/>
</>
);
},
logo: <ThemedImage />,
navbar: {
extraContent: (
<>
<ThemeToggle />
</>
),
},
nextThemes: {
defaultTheme: "light",
},
primaryHue: 323,
project: {
link: "https://github.com/taikoxyz",
},
useNextSeoProps() {
return {
titleTemplate: "%s – Taiko",
};
},
sidebar: {
autoCollapse: true,
},
};