Skip to content

Commit

Permalink
redesign home page
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoussand committed Jul 11, 2023
1 parent fbd31a3 commit f974e7d
Showing 1 changed file with 45 additions and 28 deletions.
73 changes: 45 additions & 28 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Stack, Container } from "@mui/material";
import { Stack, Container, Typography, Box } from "@mui/material";
import { useAtom } from "jotai";
import type { NextPage } from "next";
import Image from "next/image";
import { useEffect } from "react";

import AppBar from "components/ui/AppBar/AppBar";
import AppLink from "src/components/ui/Buttons/AppLink";
import ObjectiveCard from "src/components/ui/Cards/ObjectiveCard/ObjectiveCard";
import PageTextTemplate from "src/components/ui/PageTextTemplate/PageTextTemplate";
import { cartAtom } from "src/store/cart";

const Home: NextPage = () => {
Expand All @@ -16,34 +16,51 @@ const Home: NextPage = () => {
setCart({});
}, [setCart]);

return (
<>
<AppBar />
<Container
sx={{
height: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<Stack
py="2em"
spacing="5em"
textAlign="center"
justifyContent="center"
marginTop="5em"
>
<Stack direction="row" justifyContent="space-around" spacing="5em">
<Image src={require("../../public/images/apple-pie.jpeg")} alt="" />

<ObjectiveCard></ObjectiveCard>
</Stack>
<AppLink text="Commencer l'expérience" link="/fruits" />
const emphasisStyle = { color: "primary.main", fontWeight: "bold" };

const presentationText = (
<Typography>
A11Y INYERFACE est un projet visant à{" "}
<Box component="span" sx={emphasisStyle}>
sensibiliser les utilisateurs aux principes de l&apos;accessibilité{" "}
</Box>
et à les encourager à{" "}
<Box component="span" sx={emphasisStyle}>
adopter des pratiques{" "}
</Box>{" "}
qui rendent le web{" "}
<Box component="span" sx={emphasisStyle}>
plus inclusif
</Box>{" "}
pour tous.
</Typography>
);

const content = (
<Container
sx={{
display: "flex",
flexDirection: "column",
justifyContent: "center",
textAlign: "center",
marginTop: "3em",
width: "120%",
marginLeft: "-10%",
marginBottom: "-5em",
}}
>
{presentationText}
<Stack py="2em" spacing="5em" textAlign="center" justifyContent="center">
<Stack direction="row" justifyContent="space-around" spacing="5em">
<Image src={require("../../public/images/apple-pie.jpeg")} alt="" />
<ObjectiveCard />
</Stack>
</Container>
</>
<AppLink text="Commencer l'expérience" link="/fruits" />
</Stack>
</Container>
);

return <PageTextTemplate content={content} />;
};

export default Home;

0 comments on commit f974e7d

Please sign in to comment.