🦸‍♀️ lay header banner out

This commit is contained in:
Ruidy Nemausat 2020-07-16 11:10:04 +02:00
parent 27ca23222d
commit 5b2a6a30c4
2 changed files with 29 additions and 1 deletions

24
src/components/hero.jsx Normal file
View file

@ -0,0 +1,24 @@
import React from "react"
import PropTypes from "prop-types"
import ButtonCTA from "./buttonCTA"
const Hero = ({ title, subtitle }) => (
<section
id="hero"
className="d-flex justify-content-center align-items-center"
>
<div className="container position-relative">
<h1>{title}</h1>
<h2>{subtitle}</h2>
<ButtonCTA variant="secondary" />
</div>
</section>
)
Hero.propTypes = {
title: PropTypes.string.isRequired,
subtitle: PropTypes.string.isRequired,
}
export default Hero

View file

@ -1,12 +1,16 @@
import React from "react"
import { Link } from "gatsby"
import Layout from "../components/layout"
import SEO from "../components/seo"
import Hero from "../components/hero"
const IndexPage = () => (
<Layout>
<SEO title="Accueil" />
<Hero
title="Le PLUS pour mener votre enfant vers la réussite"
subtitle="Accompagnement et suivi personnalisé orienté vers l'international"
/>
</Layout>
)