diff --git a/site/src/components/banner.js b/site/src/components/banner.js index 3442bf6..82a594a 100644 --- a/site/src/components/banner.js +++ b/site/src/components/banner.js @@ -1,12 +1,24 @@ -import React from "react" +import React from "react"; +import { useStaticQuery, graphql, Link } from "gatsby"; + export default function Banner() { + const data = useStaticQuery(graphql` + query BannerQuery { + site { + siteMetadata { + title + } + } + } + `); + return ( -
- - Tickets are on sale now for X Conf! - --
+ Tickets are on sale now for {data.site.siteMetadata.title}! ++