Skip to content

Commit

Permalink
💩 WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
scguaquetam committed Sep 26, 2023
1 parent b3103bd commit 4b81065
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
11 changes: 0 additions & 11 deletions src/components/events/EventDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ const EventDetails = ({event} : EventDetailsProps) => {
<Text fontSize='md' color={'#00001C'} fontFamily={'space'}>
{event?.description}
</Text>
<Text
fontSize='md'
color={'#00001C'}
fontFamily={'space'}
fontWeight={'bold'}
>
BENEFICIOS COMO VOLUNTARIADO
</Text>
<Text fontSize='md' color={'#00001C'} fontFamily={'space'}>
{}
</Text>
</VStack>
</Flex>
)
Expand Down
8 changes: 5 additions & 3 deletions src/components/events/EventImage.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import React from 'react'
import { Flex, Text, Box } from '@chakra-ui/react'

const EventImage = () => {
interface EventImageProps {
eventName: string
}
const EventImage = ({eventName} : EventImageProps) => {
return (
<Box position='relative' width='full' mx='auto'>
<Box
Expand All @@ -20,7 +22,7 @@ const EventImage = () => {
fontWeight={'bold'}
fontSize={{ base: '16px', lg: '19px' }}
>
{'Eres Voluntari@ de Impacto en el BSL 2023 '}
{eventName}
</Text>
</Box>
<Flex
Expand Down
8 changes: 6 additions & 2 deletions src/pages/events/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,9 @@ export default function Event(): JSX.Element {
alignItems={'center'}
justify={'center'}
>
<EventImage />
<EventImage
eventName={eventInfo?.name ?? 'My event'}
/>
<EventDetails
event={eventInfo}
/>
Expand Down Expand Up @@ -331,7 +333,9 @@ export default function Event(): JSX.Element {
mb={'3em'}
>
<Flex direction={'column'} w={'full'} gap={'3em'}>
<EventImage />
<EventImage
eventName={eventInfo?.name ?? 'My event'}
/>
<EventLocation />
<EventDetails
event={eventInfo}
Expand Down

0 comments on commit 4b81065

Please sign in to comment.