Skip to content

Commit

Permalink
fixed event cards
Browse files Browse the repository at this point in the history
  • Loading branch information
GalaxyBoy13 committed Sep 21, 2024
1 parent 515fd7d commit 968a41a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Events/Events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ const Events = () => {
<Title className={classes.heading} order={1}>
Events
</Title>
<SimpleGrid cols={{ base: 1, sm: 2 }}>
<SimpleGrid cols={{ base: 1, sm: 2 }} style={{maxWidth:`${27*2}rem` , margin: '0 auto'}}>
{upcomingEvents.map((event, index) => {
return (
<Card key={index} p="md" radius="md" className={classes.card}>
<AspectRatio ratio="auto">
<Image
width={100}
radius={5}
src={event.banner}
alt="Event Poster"
Expand Down
6 changes: 6 additions & 0 deletions src/components/Events/Events.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@
}

.card {
max-width: 25rem;
margin: auto;
transition:
transform 150ms ease,
box-shadow 150ms ease;

&:hover {
box-shadow: var(--mantine-shadow-md);
}
@media (max-width: $mantine-breakpoint-sm){
max-width: 30rem;
margin: auto;
}
}

.title {
Expand Down

0 comments on commit 968a41a

Please sign in to comment.