11import React from "react" ;
2- import useDocusaurusContext from "@docusaurus/useDocusaurusContext" ;
32import Layout from "@theme/Layout" ;
43
54import { LandingHero } from "../components/landing/landing-hero" ;
@@ -12,67 +11,70 @@ import {
1211 feature3 ,
1312} from "../components/landing/landing-images" ;
1413import { Divider } from "../components/landing/divider" ;
14+ import { metadata } from "../metadata" ;
1515
1616export default function Home ( ) : JSX . Element {
17- const { siteConfig } = useDocusaurusContext ( ) ;
1817 return (
19- < Layout title = { siteConfig . title } description = { siteConfig . tagline } >
20- < div className = "dark:bg-gray-500 bg-gray-200 dark:text-white text-theme-2" >
21- < LandingHero
22- heading = { siteConfig . title }
23- body = { siteConfig . tagline }
24- copyText = "npm install groqd"
25- navItems = { [
26- { link : "/open-source/groqd/docs" , title : "Documentation" } ,
27- { link : "/open-source/groqd/arcade" , title : "Demo" } ,
18+ < Layout >
19+ < main >
20+ < div className = "dark:bg-gray-500 bg-gray-200 dark:text-white text-theme-2" >
21+ < LandingHero
22+ heading = { metadata . title }
23+ subheading = { metadata . tagline }
24+ body = { metadata . description }
25+ copyText = "npm install groqd"
26+ navItems = { [
27+ { link : "/open-source/groqd/docs" , title : "Documentation" } ,
28+ { link : "/open-source/groqd/arcade" , title : "Demo" } ,
29+ {
30+ link : "https://github.com/FormidableLabs/groqd" ,
31+ title : "Github" ,
32+ } ,
33+ ] }
34+ > </ LandingHero >
35+ </ div >
36+ < LandingFeatures
37+ heading = "Features"
38+ list = { [
2839 {
29- link : "https://github.com/FormidableLabs/groqd" ,
30- title : "Github" ,
40+ imgSrc : feature1 ,
41+ alt : "Flexible" ,
42+ title : "Flexible" ,
43+ html : {
44+ __html : "GROQD maintains the flexibility of GROQ." ,
45+ } ,
3146 } ,
32- ] }
33- > </ LandingHero >
34- </ div >
35- < LandingFeatures
36- heading = "Features"
37- list = { [
38- {
39- imgSrc : feature1 ,
40- alt : "Flexible" ,
41- title : "Flexible" ,
42- html : {
43- __html : "GROQD maintains the flexibility of GROQ." ,
47+ {
48+ imgSrc : feature3 ,
49+ alt : "Type Safe" ,
50+ title : "Type Safe" ,
51+ body : "Leverages the type safety of TypeScript." ,
4452 } ,
45- } ,
46- {
47- imgSrc : feature2 ,
48- alt : "Runtime Safe" ,
49- title : "Runtime Safe" ,
50- html : {
51- __html :
52- "Automatically layers in the runtime safety of <a href='https://github.com/colinhacks/zod' target='_blank'>Zod</a>." ,
53+ {
54+ imgSrc : feature2 ,
55+ alt : "Runtime Safe" ,
56+ title : "Runtime Safe" ,
57+ html : {
58+ __html :
59+ "Automatically layers in the runtime safety of <a href='https://github.com/colinhacks/zod' target='_blank'>Zod</a>." ,
60+ } ,
5361 } ,
54- } ,
55- {
56- imgSrc : feature3 ,
57- alt : "Type Safe" ,
58- title : "Type Safe" ,
59- body : "Leverages the type safety of TypeScript." ,
60- } ,
61- ] }
62- />
63- < Divider />
64- < div className = "flex gap-20 flex-col md:flex-row mx-16 lg:mx-32 xl:mx-64" >
65- < LandingBanner
66- heading = "Get Started"
67- body = "Get the flexibility of GROQ with the runtime/type safety of Zod and TypeScript today!"
68- cta = { { link : "/open-source/groqd/docs" , text : "Documentation" } }
69- />
70- < LandingBanner
71- heading = "GROQD Arcade"
72- body = "View sample queries, and play with live examples in the GROQD Arcade."
73- cta = { { link : "/open-source/groqd/arcade" , text : "Arcade" } }
62+ ] }
7463 />
75- </ div >
64+ < Divider />
65+ < div className = "flex gap-20 flex-col md:flex-row mx-16 lg:mx-32 xl:mx-64" >
66+ < LandingBanner
67+ heading = "Get Started"
68+ body = "Get the flexibility of GROQ with the runtime/type safety of Zod and TypeScript today!"
69+ cta = { { link : "/open-source/groqd/docs" , text : "Documentation" } }
70+ />
71+ < LandingBanner
72+ heading = "GROQD Arcade"
73+ body = "View sample queries, and play with live examples in the GROQD Arcade."
74+ cta = { { link : "/open-source/groqd/arcade" , text : "Arcade" } }
75+ />
76+ </ div >
77+ </ main >
7678 < Divider />
7779 < LandingFeaturedProjects
7880 heading = "Other Open Source"
0 commit comments