Edit hero banner

This commit is contained in:
= 2024-12-06 04:06:07 +01:00
parent 1de47f3fb8
commit 71a829e726
3 changed files with 7 additions and 6 deletions

View file

@ -17,7 +17,7 @@ export default function ArticlesSection() {
}, []); }, []);
return ( return (
<div className="row" style={{ <div className="row" id="articles" style={{
display: 'flex', display: 'flex',
flexWrap: 'wrap', flexWrap: 'wrap',
justifyContent: 'space-around', justifyContent: 'space-around',

View file

@ -1,4 +1,5 @@
import Button from "./Button"; import Button from "./Button";
import ButtonLink from "./ButtonLink";
import NavBar from "./NavBar"; import NavBar from "./NavBar";
interface FstSectionProps { interface FstSectionProps {
@ -30,8 +31,8 @@ export default function FstSection ({centertxt, txtbt1, txtbt2, image}: FstSecti
<div style={{height:"150px"}} /> <div style={{height:"150px"}} />
<h1>{centertxt}</h1><br /> <h1>{centertxt}</h1><br />
<div style={{display:"flex", justifyContent: "center", gap: "20px"}}> <div style={{display:"flex", justifyContent: "center", gap: "20px"}}>
<Button onClick={() => alert("One")} color="primary" children={txtbt1} /> <ButtonLink url="/game" color="primary" text={txtbt1} />
<Button onClick={() => {alert("Two")}} color="secondary" children={txtbt2} /> <ButtonLink url="#articles" color="secondary" text={txtbt2} />
</div> </div>
</div></div> </div></div>
) )

View file

@ -7,9 +7,9 @@ export default function MainPage() {
<> <>
<div style={{ display: 'flex', flexDirection: 'column', minHeight: '100vh' }}> <div style={{ display: 'flex', flexDirection: 'column', minHeight: '100vh' }}>
<FstSection <FstSection
centertxt="Choisissez votre numéro :" centertxt="Sauvez l'océan :"
txtbt1="Un" txtbt1="Jeu interactif"
txtbt2="Deux" txtbt2="Découvrez nos articles"
image="url('/pictures/sea.gif')"/> image="url('/pictures/sea.gif')"/>
<ArticlesSection /> <ArticlesSection />
<Footer bgcolor="lightblue"/> <Footer bgcolor="lightblue"/>