Newer
Older
import { Content, Link ,Hero} from "@onegeo/gatsby-theme-onegeo"
function hero({ data }: PageProps): ReactElement {
return (
<Content>
<div className="prose">
<Link to="/doc">Retour</Link>
<h1>Hero</h1>
<h2>Props</h2>
<div className="mockup-code">
<pre>
<code>
{`
name: string;
description: string;
image: string;
url: string;
}
interface Props {
title: string;
subtitle: string;
action: Action;
services: Array<Service>;
}
GraphQL query
query {
site {
siteMetadata {
title
subtitle
<h2>Example</h2>
</div>
<Hero {...site} />
</Content>
)
query {
site {
siteMetadata {
title
subtitle