Skip to content

Commit 419807c

Browse files
authored
conf: add banner with call to action to the graphql.org pages (graphql#1519)
1 parent 52811a2 commit 419807c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/components/Layout/index.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,34 @@ interface Props {
99
children: React.ReactNode
1010
className?: string
1111
pageContext?: { sourcePath?: string }
12+
showConfBanner?: boolean
1213
}
1314
const IndexLayout = ({
1415
children,
1516
className,
1617
pageContext: { sourcePath } = {},
18+
showConfBanner = true,
1719
}: Props): JSX.Element => (
1820
<>
1921
<div className={className}>
22+
{showConfBanner && (
23+
<div
24+
className="flex items-center justify-center gap-6 p-6 h-full"
25+
style={{ backgroundColor: "#4F224C" }}
26+
>
27+
<div className="text-center md:text-right text-white">
28+
<a
29+
href="https://graphql.org/conf/#attend"
30+
className="rounded-md border-2 px-3 py-2 font-normal text-white underline-offset-2"
31+
>
32+
📣 GraphQL Conf 2023 • Sept 19-21 • San Francisco •{" "}
33+
<span className="underline underline-offset-2">
34+
Register Now!
35+
</span>
36+
</a>
37+
</div>
38+
</div>
39+
)}
2040
<Header />
2141
{children}
2242
<Footer sourcePath={sourcePath} />

src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Seo from "../components/Seo"
1414

1515
export default ({ pageContext }: PageProps<{}, { sourcePath: string }>) => {
1616
return (
17-
<Layout className="index" pageContext={pageContext}>
17+
<Layout className="index" pageContext={pageContext} showConfBanner={false}>
1818
<Hero />
1919
<section className="conf-banner">
2020
<a href="/conf/">

0 commit comments

Comments
 (0)