Skip to content

Commit

Permalink
Merge pull request #49 from icssc/feat/card-enhancements
Browse files Browse the repository at this point in the history
feat: card enhancements
  • Loading branch information
stevem-zhou authored Mar 31, 2024
2 parents 8ee070b + 40825e5 commit 432831c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
21 changes: 17 additions & 4 deletions src/components/ResultCard/ResultCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,14 @@ const ResultCard = React.memo(
);
return (
<>
<Card maxW="lg" align={"center"} mb="10px">
<Card
bg="gray.50"
border="1px"
borderColor="gray.300"
maxW="lg"
align={"center"}
mb="10px"
>
<CardBody>
<Flex justifyContent={"center"} alignItems={"center"}>
{props.isresolved && (
Expand All @@ -79,7 +86,13 @@ const ResultCard = React.memo(
</Text>
</Flex>
)}
<Image rounded={"lg"} src={props.image} loading="lazy" />
<Image
border="1px"
borderColor="gray.300"
rounded={"lg"}
src={props.image}
loading="lazy"
/>
</Flex>
<Stack mt="6" spacing="3">
<Flex justifyContent={"space-between"}>
Expand All @@ -96,11 +109,11 @@ const ResultCard = React.memo(
<CardFooter>
<Flex justifyContent={"space-between"}>
<Button
variant="ghost"
variant="outline"
colorScheme="blue"
leftIcon={<InfoIcon />}
size="md"
w="20"
w="60%"
onClick={infoModalDisclosure.onOpen}
>
View
Expand Down
1 change: 1 addition & 0 deletions src/components/ResultsBar/ResultsBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default function ResultsBar({
_hover={{
transform: "scale(0.99)",
}}
transition="transform .3s ease"
>
<ResultCard
props={item}
Expand Down

0 comments on commit 432831c

Please sign in to comment.