File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,34 @@ interface Props {
9
9
children : React . ReactNode
10
10
className ?: string
11
11
pageContext ?: { sourcePath ?: string }
12
+ showConfBanner ?: boolean
12
13
}
13
14
const IndexLayout = ( {
14
15
children,
15
16
className,
16
17
pageContext : { sourcePath } = { } ,
18
+ showConfBanner = true ,
17
19
} : Props ) : JSX . Element => (
18
20
< >
19
21
< 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
+ ) }
20
40
< Header />
21
41
{ children }
22
42
< Footer sourcePath = { sourcePath } />
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import Seo from "../components/Seo"
14
14
15
15
export default ( { pageContext } : PageProps < { } , { sourcePath : string } > ) => {
16
16
return (
17
- < Layout className = "index" pageContext = { pageContext } >
17
+ < Layout className = "index" pageContext = { pageContext } showConfBanner = { false } >
18
18
< Hero />
19
19
< section className = "conf-banner" >
20
20
< a href = "/conf/" >
You can’t perform that action at this time.
0 commit comments