-
Notifications
You must be signed in to change notification settings - Fork 3
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
6cf5644
commit aba09f3
Showing
16 changed files
with
441 additions
and
314 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
import { | ||
Image, | ||
Text, | ||
VStack, | ||
Card, | ||
CardBody, | ||
Box, | ||
Skeleton, | ||
} from "@chakra-ui/react"; | ||
|
||
interface IEventCardFull { | ||
name: string; | ||
date: Date; | ||
location: string; | ||
image: string; | ||
description: string; | ||
loading: boolean; | ||
} | ||
|
||
export default function EventCardFull(props: IEventCardFull) { | ||
const {name, date, location, image, description, loading} = props; | ||
|
||
return ( | ||
<Card | ||
variant='elevated' | ||
size='sm' | ||
key={name} | ||
width='300px' | ||
borderRadius='15px' | ||
marginX='25px' | ||
background='brand.mid_white' | ||
color="black" | ||
> | ||
<CardBody alignContent='flex-start'> | ||
<Skeleton isLoaded={!loading}> | ||
<Image | ||
src={image} | ||
alt={name} | ||
borderRadius='15px' | ||
width='100%' | ||
height='300px' | ||
objectFit='cover' | ||
/> | ||
</Skeleton> | ||
<VStack paddingTop='10px' direction='column' spacing='2'> | ||
<Skeleton isLoaded={!loading} width='100%'> | ||
<Box justifyContent='flex-start' width='100%'> | ||
<Text fontSize='xl' fontWeight='bold'> | ||
{name} | ||
</Text> | ||
</Box> | ||
</Skeleton> | ||
<Skeleton isLoaded={!loading} width='100%'> | ||
<Box justifyContent='flex-start' width='100%'> | ||
<Text fontSize='md'> | ||
{date.toLocaleDateString()} •{" "} | ||
{date.toLocaleTimeString()} | ||
</Text> | ||
</Box> | ||
</Skeleton> | ||
<Skeleton isLoaded={!loading} width='100%'> | ||
<Box justifyContent='flex-start' width='100%'> | ||
<Text fontSize='md'> | ||
Location: {location} | ||
</Text> | ||
</Box> | ||
</Skeleton> | ||
<Skeleton isLoaded={!loading} width='100%'> | ||
<Box justifyContent='flex-start' width='100%'> | ||
<Text fontSize='sm'> | ||
{description} | ||
</Text> | ||
</Box> | ||
</Skeleton> | ||
</VStack> | ||
</CardBody> | ||
</Card> | ||
); | ||
} |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.