Newer
Older
import { Button, Card } from "@onegeo/gatsby-theme-onegeo"
name: string
description: string
image: string
url: string
}
const Hero = (props: Props) => {
// Data structure (default value)
const {
title = "eGEO Project",
subtitle = "Hub géospatial collaboratif",
content = "Solution Open Source sur-mesure pour communiquer et valoriser les données disponibles sur votre territoire ou vos infrastructures.",
name: "Découvres nos cartes interactives",
url: "#",
name: "Datastore",
description: "Accédez à votre catalogue de données.",
image: "../images/hero/datastore.png",
url: "#",
"Consulter, gérer, mettre à jour et diffuser vos contenus cartographiques.",
image: "../images/hero/datastore.png",
url: "#",
name: "Dataviz",
description: "Croisez et mettez en forme vos données.",
image: "../images/hero/datastore.png",
url: "#",
name: "Contrib",
description: "Validez et collectez vos informations.",
image: "../images/hero/datastore.png",
url: "#",
return (
<div className="hero min-h-screen bg-[url('../images/fond.png')]">
{/* <div className="hero-overlay bg-opacity-60"></div> */}
<div className="hero-content text-center text-neutral-content">
<div className="max-w-4xl">
<h1 className="mb-5 text-3xl lg:text-6xl font-extrabold tracking-tight">
{title}
<div className="text-primary">{subtitle}</div>
</h1>
{action ? (
<Button
className="btn-primary text-white"
{...action}
/>
) : null}
</div>
</div>
<div className="row-start-2 flex flex-col lg:flex-row gap-6 mx-6">
{services &&
services.map((service, idx) => (
<Card key={idx} {...service} />
))}