|
1 |
| -import { |
2 |
| - DocsThemeConfig, |
3 |
| - ThemeSwitch, |
4 |
| - useConfig, |
5 |
| - Navbar, |
6 |
| -} from "nextra-theme-docs" |
| 1 | +import { DocsThemeConfig, ThemeSwitch, useConfig } from "nextra-theme-docs" |
7 | 2 | import NextLink from "next/link"
|
8 | 3 | import {
|
9 | 4 | GraphQLWordmarkLogo,
|
@@ -201,53 +196,6 @@ export default {
|
201 | 196 | content: Footer,
|
202 | 197 | },
|
203 | 198 | navbar: {
|
204 |
| - component(props) { |
205 |
| - const { frontMatter } = useConfig() |
206 |
| - let { asPath } = useRouter() |
207 |
| - |
208 |
| - if (asPath.startsWith("/community/resources/")) asPath = "/community/" |
209 |
| - if (asPath.startsWith("/community/contribute/")) |
210 |
| - asPath = "/community/contribute/" |
211 |
| - if (asPath === "/community/") { |
212 |
| - frontMatter.title = "Community Resources" |
213 |
| - frontMatter.description = |
214 |
| - "The GraphQL community is worldwide, and includes developers, users, supporters, and fans from around the globe. You are welcome to join us! If you're new to the community, here are a few things to get you started." |
215 |
| - } |
216 |
| - if (asPath === "/community/contribute/") { |
217 |
| - frontMatter.title = "Contribute to GraphQL" |
218 |
| - frontMatter.description = |
219 |
| - "The following resources describe how GraphQL development processes work, how to get involved, and where to get help." |
220 |
| - } |
221 |
| - |
222 |
| - return ( |
223 |
| - <> |
224 |
| - <Navbar {...props} /> |
225 |
| - {asPath.startsWith("/community/") && ( |
226 |
| - <div className="code-page lg:min-h-96 lg:max-h-96 relative overflow-hidden"> |
227 |
| - <div className="container conf-block relative z-10"> |
228 |
| - <h1 className="text-7xl font-extrabold mb-10"> |
229 |
| - {frontMatter.title} |
230 |
| - </h1> |
231 |
| - <p className="text-2xl/[2.375rem] text-balance lg:w-2/3"> |
232 |
| - {frontMatter.description} |
233 |
| - </p> |
234 |
| - </div> |
235 |
| - <img |
236 |
| - src={ |
237 |
| - { |
238 |
| - "/community/": "/img/community/resources.png", |
239 |
| - "/community/events/": "/img/community/events.png", |
240 |
| - "/community/contribute/": "/img/community/contribute.png", |
241 |
| - }[asPath] |
242 |
| - } |
243 |
| - alt="Figure" |
244 |
| - className="max-xl:hidden select-none absolute right-0 top-0 h-full -translate-x-1/4 scale-125" |
245 |
| - /> |
246 |
| - </div> |
247 |
| - )} |
248 |
| - </> |
249 |
| - ) |
250 |
| - }, |
251 | 199 | extraContent: <ThemeSwitch lite className="[&_span]:hidden" />,
|
252 | 200 | },
|
253 | 201 | toc: {
|
|
0 commit comments