Skip to content

Commit 6be1053

Browse files
authored
remove hero from Community pages (#1648)
1 parent e7192d9 commit 6be1053

File tree

6 files changed

+2
-57
lines changed

6 files changed

+2
-57
lines changed

public/img/community/contribute.png

-485 KB
Binary file not shown.

public/img/community/events.png

-764 KB
Binary file not shown.

public/img/community/resources.png

-606 KB
Binary file not shown.

src/pages/_meta.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ export default {
3030
href: "/community/contribute/essential-links",
3131
},
3232
},
33-
theme: {
34-
breadcrumb: false,
35-
},
3633
},
3734
faq: {
3835
type: "page",

src/pages/community/_meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
resources: "Community Resources",
2+
resources: "Resources",
33
events: "",
44
contribute: "Contribute to GraphQL",
55
}

theme.config.tsx

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
import {
2-
DocsThemeConfig,
3-
ThemeSwitch,
4-
useConfig,
5-
Navbar,
6-
} from "nextra-theme-docs"
1+
import { DocsThemeConfig, ThemeSwitch, useConfig } from "nextra-theme-docs"
72
import NextLink from "next/link"
83
import {
94
GraphQLWordmarkLogo,
@@ -201,53 +196,6 @@ export default {
201196
content: Footer,
202197
},
203198
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-
},
251199
extraContent: <ThemeSwitch lite className="[&_span]:hidden" />,
252200
},
253201
toc: {

0 commit comments

Comments
 (0)