mirror of
https://github.com/rjNemo/lekol-plus
synced 2026-06-06 05:26:40 +00:00
🦸♀️ lay header banner out
This commit is contained in:
parent
27ca23222d
commit
5b2a6a30c4
2 changed files with 29 additions and 1 deletions
24
src/components/hero.jsx
Normal file
24
src/components/hero.jsx
Normal 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
|
||||
|
|
@ -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>
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue