Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added Heading #29

Merged
merged 1 commit into from
Sep 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 63 additions & 57 deletions src/components/Events/Events.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { IconBrandLinkedin, IconBrandGithub } from '@tabler/icons-react';
import image from "/src/assets/null.jpeg";

Check failure on line 2 in src/components/Events/Events.jsx

View workflow job for this annotation

GitHub Actions / Lint

'image' is defined but never used
import { Title} from '@mantine/core';
import {
Card,
Image,
Expand All @@ -19,85 +20,90 @@
name: 'upcoming',
time: 'NA',
meetingLink: '#',
mode: 'Online',
mode: 'NA',
speakerName: 'NA',
},
{
name: 'To be announced',
time: '4:00 PM',
meetingLink: 'https://example.com/ai-conference',
time: 'NA',
meetingLink: 'NA',
mode: 'Offline',
speakerName: 'Jane Doe',
speakerName: 'NA',
},
{
name: 'To be announced',
time: '6:00 PM',
meetingLink: 'https://example.com/web-dev-bootcamp',
time: 'NA',
meetingLink: 'NA',
mode: 'Online',
speakerName: 'John Smith',
speakerName: 'NA',
},
];

const Events = () => {
const linkProps = { href: 'https://mantine.dev', target: '_blank', rel: 'noopener noreferrer' };
const theme = useMantineTheme();

Check failure on line 44 in src/components/Events/Events.jsx

View workflow job for this annotation

GitHub Actions / Lint

'theme' is assigned a value but never used

return (
<Group className={classes.cardsContainer}>
{eventData.map((event, index) => (
<Card key={index} withBorder radius="md" className={classes.card}>
<Card.Section>
<a {...linkProps}>
<Image src={image} height={200} fit="cover" />
</a>
</Card.Section>
<>
<Title ta="center" className={classes.title1}>
Upcoming Events
</Title>
<Group className={classes.cardsContainer}>
{eventData.map((event, index) => (
<Card key={index} withBorder radius="md" className={classes.card}>
<Card.Section>
<a {...linkProps}>
<Image src="https://media1.tenor.com/m/-4_cFnz_D3YAAAAC/btc-mechanics-ordinals.gif" height={200} fit="cover" />
</a>
</Card.Section>

<Text className={classes.title} fw={500} component="a" {...linkProps}>
{event.name}
</Text>
<Text className={classes.title} fw={500} component="a" {...linkProps}>
{event.name}
</Text>

<Group justify="space-between" className={classes.footer}>
<Center>
<Avatar
src="https://raw.githubusercontent.com/mantinedev/mantine/master/.demo/avatars/avatar-1.png"
size={34}
radius="xl"
mr="xs"
/>
<Text fz="sm" inline >
{event.speakerName}
</Text>
</Center >
<Group justify="space-between" className={classes.footer}>
<Center>
<Avatar
src=""
size={34}
radius="xl"
mr="xs"
/>
<Text fz="sm" inline>
{event.speakerName}
</Text>
</Center>

<Group gap={8} mr={0}>
<ActionIcon className={classes.action} style={{ backgroundColor: 'black' }}>
<IconBrandLinkedin style={{ width: rem(16), height: rem(16), color: 'white' }} />
</ActionIcon>
<ActionIcon className={classes.action} style={{ backgroundColor: 'black' }}>
<IconBrandGithub style={{ width: rem(16), height: rem(16), color: 'white' }} />
</ActionIcon>
<Group gap={8} mr={0}>
<ActionIcon className={classes.action} style={{ backgroundColor: 'black' }}>
<IconBrandLinkedin style={{ width: rem(16), height: rem(16), color: 'white' }} />
</ActionIcon>
<ActionIcon className={classes.action} style={{ backgroundColor: 'black' }}>
<IconBrandGithub style={{ width: rem(16), height: rem(16), color: 'white' }} />
</ActionIcon>
</Group>
</Group>
</Group>

<Text fz="sm" c="dimmed" lineClamp={4}>
Date: {event.time}
</Text>
<Text fz="sm" c="dimmed" lineClamp={4}>
Mode: {event.mode}
</Text>
<Button
component="a"
href={event.meetingLink}
target="_blank"
rel="noopener noreferrer"
variant="outline"
style={{ width: '100%' }}
>
Join
</Button>
</Card>
))}
</Group>
<Text fz="sm" c="dimmed" lineClamp={4}>
Date: {event.time}
</Text>
<Text fz="sm" c="dimmed" lineClamp={4}>
Mode: {event.mode}
</Text>
<Button
component="a"
href={event.meetingLink}
target="_blank"
rel="noopener noreferrer"
variant="outline"
style={{ width: '100%' }}
>
Join
</Button>
</Card>
))}
</Group>
</>
);
}

Expand Down
9 changes: 9 additions & 0 deletions src/components/Events/Events.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,12 @@
flex: 1 1 100%;
}
}
.title1 {
background: linear-gradient(90deg, #272626 22%, #25424a 68%, #37616c 84%);
color: var(--mantine-color-white);
font-size: 52px;
font-family:
Greycliff CF,
var(--mantine-font-family);

}
Loading