-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathdata.ts
More file actions
199 lines (191 loc) · 4 KB
/
Copy pathdata.ts
File metadata and controls
199 lines (191 loc) · 4 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
import { BRIDGE_URL, LEVEL_UP_URL, SCROLL_OPEN_URL, SESSIONS_URL } from "@/constants/link"
import { isSepolia } from "@/utils"
interface MenuItem {
rootKey: string
label: string
key: string
href: string
reload?: boolean
isNew?: boolean
}
interface Navigation {
label: string
key: string
children?: MenuItem[]
isNew?: boolean
href?: string
reload?: boolean
}
const sepoliaNavigations: Navigation[] = [
{
label: "Build",
key: "build",
children: [
{
rootKey: "build",
label: "Docs",
key: "docs",
href: "https://docs.scroll.io/en/home/",
},
{
rootKey: "build",
label: "Scroll Open",
key: "scroll-open",
href: SCROLL_OPEN_URL,
},
{
rootKey: "build",
label: "Level Up",
key: "level-up",
href: LEVEL_UP_URL,
},
{
rootKey: "build",
label: "Block Explorer",
key: "block-explorer",
href: process.env.NEXT_PUBLIC_EXTERNAL_EXPLORER_URI_L2,
},
// {
// label: "Rollup Explorer",
// key: "rollupscan",
// href: "/rollupscan",
// rootKey: "develop",
// },
],
},
{
label: "Bridge",
key: "bridge",
href: BRIDGE_URL,
},
]
const mainnetNavigations: Navigation[] = [
{
label: "Build",
key: "build",
children: [
{
rootKey: "build",
label: "Docs",
key: "docs",
href: "https://docs.scroll.io/en/home/",
},
{
rootKey: "build",
label: "Scroll Open",
key: "scroll-open",
href: SCROLL_OPEN_URL,
},
{
rootKey: "build",
label: "Level Up",
key: "level-up",
href: LEVEL_UP_URL,
},
{
rootKey: "build",
label: "Block Explorer",
key: "block-explorer",
href: process.env.NEXT_PUBLIC_EXTERNAL_EXPLORER_URI_L2,
},
{
rootKey: "participate",
label: "Bug Bounty",
key: "bug-bounty",
href: "https://immunefi.com/bug-bounty/scroll/information/",
},
],
},
{
label: "Use",
key: "use",
children: [
{
rootKey: "use",
label: "Projects",
key: "projects",
href: "/ecosystem",
},
{
rootKey: "use",
label: "Bridge",
key: "bridge",
href: BRIDGE_URL,
},
{
rootKey: "use",
label: "Governance",
key: "governance",
href: "https://gov.scroll.io/info",
},
{
rootKey: "use",
label: "Sessions",
key: "sessions",
href: SESSIONS_URL,
},
// {
// rootKey: "use",
// label: "Community",
// key: "community",
// href: "/community",
// },
],
},
{
label: "Vision",
key: "vision",
children: [
{
rootKey: "vision",
label: "Technology",
key: "technology",
href: "https://scroll.io/technology",
},
{
rootKey: "vision",
label: "Strategy",
key: "strategy",
href: "https://scroll.io/blog/vision-and-values",
},
],
},
{
label: "Resources",
key: "resources",
children: [
{
rootKey: "resources",
label: "Blog",
key: "blog",
href: "/blog",
},
{
rootKey: "resources",
label: "Brand Kit",
key: "brand kit",
href: "/brand-kit",
},
{
rootKey: "resources",
label: "Audits",
key: "audits",
href: "https://docs.scroll.io/en/technology/security/audits-and-bug-bounty/",
},
{
rootKey: "resources",
label: "Jobs",
key: "jobs",
href: "/join-us",
},
{
rootKey: "resources",
label: "Whitepaper",
key: "whitepaper",
href: "https://scroll.io/files/whitepaper.pdf",
},
],
},
]
const navigations = isSepolia ? sepoliaNavigations : mainnetNavigations
export { navigations }