Skip to content

Commit

Permalink
feat: update home design
Browse files Browse the repository at this point in the history
  • Loading branch information
FredericNumericite committed Jan 10, 2024
1 parent 77a3da8 commit bfce783
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 23 deletions.
82 changes: 59 additions & 23 deletions tumeplay-vitrine/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {
Text,
Flex,
Divider,
UnorderedList,
ListItem,
Heading,
Link as ChakraLink,
Image,
} from "@chakra-ui/react";
import Header from "../components/header";
import Link from "next/link";
Expand All @@ -25,9 +25,26 @@ const Home = () => {
};

const siteData = [
{ url: "https://www.onsexprime.fr/", name: "Onsexprime" },
{ url: "https://questionsexualite.fr/", name: "Questions Sexualité" },
{ url: "https://ivg.gouv.fr/", name: "Le site officiel sur l'IVG" },
{
url: "https://www.onsexprime.fr/",
name: "Onsexprime",
img: "logo-onsex.svg",
},
{
url: "https://questionsexualite.fr/",
name: "Questions Sexualité",
img: "questionsex_logo.svg",
},
{
url: "https://ivg.gouv.fr/",
name: "Le site officiel sur l'IVG",
img: "gouvernement_logo.png",
},
{
url: "https://www.filsantejeunes.com/",
name: "Filsantéjeunes",
img: "numero_vert.png",
},
];

useEffect(() => {
Expand Down Expand Up @@ -204,30 +221,49 @@ const Home = () => {
<meta name="robots" content="all" />
</Head>
<Header />
<Flex flexDir={"column"} align={"center"} fontSize={18}>
<Text fontWeight={"bold"} textAlign={"center"}>
<Flex flexDir={"column"} align={"center"} fontSize={18} mt={4}>
<Heading
as="h1"
mb={[4, 4, 6]}
fontSize={["2xl", "2xl", "xl"]}
textAlign={"center"}
>
Tumeplay c’est terminé ! Mais tu peux retrouver d’autres contenus
sur les sites suivants :
</Text>
</Heading>

<UnorderedList mt={4}>
<Flex
gap={5}
width={"100%"}
flexWrap={["wrap", "wrap", "nowrap"]}
justifyContent={"space-around"}
align={"center"}
padding={10}
>
{siteData.map((site, index) => (
<ListItem key={index}>
<ChakraLink
href={site.url}
color={"blue.600"}
target="_blank"
_hover={{ textDecoration: "underline" }}
<ChakraLink
target="_blank"
w={"100%"}
href={site.url}
key={index}
>
<Box
background={"#F4F0EB"}
w={"100%"}
p={4}
borderRadius="lg"
height={"200px"}
display={"flex"}
alignItems={"center"}
cursor={"pointer"}
_hover={{ transform: "scale(1.05)" }}
transition="transform 0.3s ease-in-out"
>
{site.name}
</ChakraLink>
</ListItem>
<Image src={site.img} alt={site.name} width={"100%"} />
</Box>
</ChakraLink>
))}
</UnorderedList>
<Box mt={10} textAlign={"center"}>
<Text fontWeight={"bold"}>Numéro vert fil santé jeune :</Text>
<Text>0 800 235 236</Text>
</Box>
</Flex>
</Flex>
</Container>
</Box>
Expand Down
Binary file added tumeplay-vitrine/public/gouvernement_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions tumeplay-vitrine/public/logo-onsex.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tumeplay-vitrine/public/numero_vert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions tumeplay-vitrine/public/questionsex_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bfce783

Please sign in to comment.