-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
316c025
commit 7e022ec
Showing
8 changed files
with
117 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Box, Heading, Icon, ListItem, UnorderedList } from '@chakra-ui/react'; | ||
import React from 'react'; | ||
import { IoThumbsDown } from 'react-icons/io5'; | ||
|
||
function Cons({ items }: { items: string[] }): JSX.Element { | ||
if (items.length === 0) return <></>; | ||
|
||
return ( | ||
<Box | ||
bgColor="red.50" | ||
borderRadius={16} | ||
display="flex" | ||
flexDirection="column" | ||
gap={3} | ||
padding={6} | ||
> | ||
<Box alignItems="center" display="flex" gap={2}> | ||
<Icon as={IoThumbsDown} boxSize={4} color="red.500" /> | ||
<Heading as="h4" color="red.500" fontSize="1rem" fontWeight={700}> | ||
Ce qu'on a moins aimé | ||
</Heading> | ||
</Box> | ||
<UnorderedList> | ||
{items.map((item, index) => ( | ||
<ListItem key={index}>{item}</ListItem> | ||
))} | ||
</UnorderedList> | ||
</Box> | ||
); | ||
} | ||
|
||
export default Cons; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Box, Heading, Icon, ListItem, UnorderedList } from '@chakra-ui/react'; | ||
import React from 'react'; | ||
import { IoThumbsUp } from 'react-icons/io5'; | ||
|
||
function Pros({ items }: { items: string[] }): JSX.Element { | ||
if (items.length === 0) return <></>; | ||
|
||
return ( | ||
<Box | ||
bgColor="green.50" | ||
borderRadius={16} | ||
display="flex" | ||
flexDirection="column" | ||
gap={3} | ||
padding={6} | ||
> | ||
<Box alignItems="center" display="flex" gap={2}> | ||
<Icon as={IoThumbsUp} boxSize={4} color="green.500" /> | ||
<Heading as="h4" color="green.500" fontSize="1rem" fontWeight={700}> | ||
Ce qu'on a aimé | ||
</Heading> | ||
</Box> | ||
<UnorderedList> | ||
{items.map((item, index) => ( | ||
<ListItem key={index}>{item}</ListItem> | ||
))} | ||
</UnorderedList> | ||
</Box> | ||
); | ||
} | ||
|
||
export default Pros; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters