Skip to content

Commit

Permalink
added code tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
remorses committed Jan 18, 2024
1 parent 523efdb commit ca747f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion website/src/components/code-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function CodeTabs() {
}, [value])
return (
<Tabs
className='min-h-[400px]'
className='min-h-[400px] shrink-0'
value={value}
key={value}
onValueChange={setValue}
Expand Down
13 changes: 9 additions & 4 deletions website/src/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,19 @@ const Page = ({ clients }: InferGetStaticPropsType<typeof getStaticProps>) => (
</Button>
</div>
}

image={<CodeTabs />}
heading={
<div className=''>Generate an SDK for any GraphQL API</div>
<div className=''>
Generate an SDK <br /> for any GraphQL API
</div>
}
subheading={
<Fragment>
Genql generates a TypeScript SDK for your GraphQL API
</Fragment>
<div className='max-w-[600px]'>
Genql turns you GraphQL API into a type safe SDK for your
language of choice. Get a developer hub with examples and
documentation for your API.
</div>
}
// image={<Image h='200px' w='300px' src='/robot.svg' />}
// image={
Expand Down

0 comments on commit ca747f0

Please sign in to comment.