-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.tsx
105 lines (96 loc) · 2.98 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
import React from "react";
import { DocsThemeConfig, useTheme } from "nextra-theme-docs";
import { useRouter } from "next/router";
import { FaTelegram, FaGithub, FaTwitter, FaMediumM } from "react-icons/fa";
const Logo = () => {
const { resolvedTheme } = useTheme();
const logoSrc =
resolvedTheme === "dark"
? "https://github.com/keep-starknet-strange/madara-branding/blob/main/logo/PNGs/Madara%20logomark%20-%20White%20-%20Duotone.png?raw=true"
: "https://github.com/keep-starknet-strange/madara-branding/blob/main/logo/PNGs/Madara%20logomark%20-%20Black%20-%20Duotone.png?raw=true";
return (
<span style={{ display: "flex", alignItems: "center" }}>
<img src={logoSrc} alt="Madara Logo" style={{ height: "50px" }} />
</span>
);
};
const BigLogo = () => {
const { resolvedTheme } = useTheme();
const logoSrc =
resolvedTheme === "dark"
? "https://github.com/keep-starknet-strange/madara-branding/blob/main/logo/PNGs/Madara%20logomark%20-%20White%20-%20Duotone.png?raw=true"
: "https://github.com/keep-starknet-strange/madara-branding/blob/main/logo/PNGs/Madara%20logomark%20-%20Black%20-%20Duotone.png?raw=true";
return (
<span style={{ display: "flex", alignItems: "center" }}>
<img src={logoSrc} alt="Madara Logo" style={{ height: "175px" }} />
</span>
);
};
const HeaderIcons = () => {
return (
<div style={{ display: "flex", alignItems: "center", gap: "10px" }}>
<a
href="https://github.com/keep-starknet-strange/madara"
target="_blank"
rel="noopener noreferrer"
>
<FaGithub style={{ fontSize: "24px" }} />
</a>
<a
href="https://t.me/madarastarknet"
target="_blank"
rel="noopener noreferrer"
>
<FaTelegram style={{ fontSize: "24px" }} />
</a>
<a
href="https://twitter.com/madarastarknet"
target="_blank"
rel="noopener noreferrer"
>
<FaTwitter style={{ fontSize: "24px" }} />
</a>
<a
href="https://medium.com/madarastarknet"
target="_blank"
rel="noopener noreferrer"
>
<FaMediumM style={{ fontSize: "24px" }} />
</a>
</div>
);
};
const config: DocsThemeConfig = {
logo: <Logo />,
chat: {
link: "https://github.com/keep-starknet-strange/madara",
icon: <FaGithub style={{ fontSize: "24px" }} />,
},
docsRepositoryBase: "https://github.com/keep-starknet-strange/madara-docs/tree/main",
footer: {
text: <span>MIT {new Date().getFullYear()} © Madara - Keep Starknet Strange</span>,
},
editLink: {
text: <span>Contribute to Madara | Edit on GitHub</span>,
},
primaryHue: 10,
useNextSeoProps() {
const { asPath } = useRouter();
if (asPath !== "/") {
return {
titleTemplate: "%s",
};
}
},
themeSwitch: {
useOptions() {
return {
light: "Light",
dark: "Dark",
system: "System",
};
},
},
};
export default config;
export { Logo, BigLogo };