-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.tsx
More file actions
110 lines (100 loc) · 2.9 KB
/
index.tsx
File metadata and controls
110 lines (100 loc) · 2.9 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
import Layout from "@theme/Layout";
import styles from "./index.module.css";
import {
HeroSection,
CategoryCards,
HandbookSection,
Category,
HeroSectionProps,
Handbook,
HandbookSectionProps,
CategoryCardsTheme,
} from "@handbook/common-config/components";
const efCategories: Category[] = [
{
title: "PRIVACY",
icon: "/img/icons/key.svg",
href: "/docs/kohaku/overview"
},
{
title: "INTEROP",
icon: "/img/icons/cube-transparent.svg",
href: "/docs/interop/coming-soon",
comingSoon: true,
comingSoonBanner: "/common/img/coming-soon-banner.png",
}
];
const efHeroProps: HeroSectionProps = {
title: "Ethereum Foundation Handbook",
titleImage: "/img/ef-handbook-social.svg",
description:
"This handbook explores a key privacy initiative from the Ethereum Foundation",
buttonText: "Enter the Rabbit Hole",
buttonImage: "/common/img/enter-button.svg",
buttonLink: "/docs/intro/welcome",
};
const efHandbooks: Handbook[] = [
{
title: "Wonderland Handbook",
image: "/common/img/wonderland-button-image.png",
href: "https://handbook.wonderland.xyz",
background: {
bgType: "other",
bgImage: "/common/img/wonderland-button-bg.jpg",
},
},
{
title: "Optimism Handbook",
image: "/common/img/optimism-handbook.svg",
href: "https://optimism.handbook.wonderland.xyz",
background: {
bgType: "other",
bgImage: "/common/img/background-handbook-card.jpg",
},
},
{
title: "Aztec handbook",
image: "/common/img/aztec-handbook.svg",
href: "https://aztec.handbook.wonderland.xyz",
background: {
bgType: "other",
bgImage: "/common/img/aztec-background-handbook-card.jpg",
},
},
];
const efHandbookProps: HandbookSectionProps = {
handbooks: efHandbooks,
title: "ALL HANDBOOKS",
description:
"These handbooks are internal onboarding material created by Wonderland for working with our partners. It's not official documentation and may not reflect the latest updates. We share it openly in case it's useful to others.",
};
const efCategoryTheme: CategoryCardsTheme = {
gradientStart: "var(--ef-cyan)",
gradientEnd: "var(--ef-blue)",
iconHoverColorEffect: "none",
};
const EfBackground = () => <div className={styles.efBackground} />;
function Home(): React.ReactElement {
return (
<Layout description="A curated guide to our best practices, processes, and technical insights.">
<style>{`
#__docusaurus {
overflow: hidden;
}
`}</style>
<main className={styles.main}>
<EfBackground />
<section className={styles.centerContent}>
<HeroSection {...efHeroProps} />
<CategoryCards
categories={efCategories}
theme={efCategoryTheme}
columns={2}
/>
</section>
<HandbookSection {...efHandbookProps} />
</main>
</Layout>
);
}
export default Home;