Skip to content

Commit

Permalink
fix spacing in schedule section
Browse files Browse the repository at this point in the history
  • Loading branch information
GovindKurapati committed Jan 4, 2025
1 parent 340421e commit e86bd3a
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/pages/main/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,17 @@ import { useToast } from "@chakra-ui/react";
import emailjs from "@emailjs/browser";

const ScheduleItem = ({ time, event }) => (
<Grid templateColumns="1fr auto" gap={24} w="100%">
<Text fontSize="2xl">{event}</Text>
<Text fontSize="2xl">{time}</Text>
<Grid
templateColumns="1fr auto"
gap={{ base: "12", md: "20", lg: "24" }}
w="100%"
>
<Text lineHeight="26px" fontSize="2xl">
{event}
</Text>
<Text lineHeight="26px" fontSize="2xl">
{time}
</Text>
</Grid>
);

Expand All @@ -51,7 +59,7 @@ const DaySchedule = ({ day, date, events }) => (
<Text fontSize="2xl" mb={2} fontWeight={"600"}>
{date}
</Text>
<VStack align="stretch" spacing={2}>
<VStack align="stretch" spacing={4}>
{events.map((event, index) => (
<ScheduleItem key={index} {...event} />
))}
Expand Down Expand Up @@ -641,7 +649,7 @@ export const MainPage = () => {

<Grid
templateColumns={{ base: "1fr", md: "1fr 1fr" }}
gap={24}
gap={{ base: "12", md: "16", lg: "24" }}
maxWidth={"1000px"}
w="100%"
px={{ base: 8, md: 0 }}
Expand Down

0 comments on commit e86bd3a

Please sign in to comment.