Skip to content

Commit f6779a5

Browse files
committed
Fix event details
1 parent 3bc60bf commit f6779a5

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

src/components/LandingPage/AboutEventTile.tsx

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ interface EventDetailProps {
1717

1818
const EventDetail = ({ iconSrc, iconName, children }: EventDetailProps) => {
1919
return (
20-
<div className="ml-10 flex items-center">
20+
<div className="ml-4 flex items-center md:ml-10">
2121
<div className="m-4 rounded-xl bg-white p-1">
2222
<Image
2323
src={iconSrc || "/placeholder.svg"}
@@ -44,22 +44,26 @@ export default async function AboutEventTile() {
4444
});
4545

4646
return (
47-
<div className="flex w-full flex-col items-center bg-white">
48-
<div className="z-100 mb-8 mt-4 flex w-4/5 flex-row rounded-3xl border-4 border-dark-pink bg-pastel-pink shadow-[15px_15px_0px_0px_dark-pink] xl:mb-12 xl:mt-8">
49-
<div className="relative flex aspect-[16/9] w-full max-w-xl items-center justify-center overflow-hidden rounded-l-2xl bg-dark-grey">
50-
<Image
51-
src={
52-
eventDetails.locationImage.fields.file?.url
53-
?.toString()
54-
.replace("//", "https://") ?? ""
55-
}
56-
alt={eventDetails.locationName}
57-
fill
58-
sizes="(max-width: 768px) 100vw, 345px"
59-
priority
60-
/>
47+
<div className="flex w-full flex-col items-center bg-white py-10 md:py-20">
48+
<div className="z-100 mb-8 mt-4 flex w-4/5 flex-col rounded-3xl border-4 border-dark-pink bg-pastel-pink shadow-[15px_15px_0px_0px_dark-pink] xl:mb-12 xl:mt-8">
49+
<div className="relative rounded-t-2xl border-b-4 border-dark-pink bg-dark-pink">
50+
<div className="flex h-1/2 w-full items-center justify-center overflow-hidden rounded-t-3xl ">
51+
<Image
52+
src={
53+
eventDetails.locationImage.fields.file?.url
54+
?.toString()
55+
.replace("//", "https://") ?? ""
56+
}
57+
alt={eventDetails.locationName}
58+
sizes="100vw"
59+
height={0}
60+
width={0}
61+
priority
62+
className="size-full object-contain"
63+
/>
64+
</div>
6165
</div>
62-
<div className="flex w-full items-center rounded-b-20 md:rounded-r-2xl md:rounded-bl-none xl:w-1/2">
66+
<div className="flex w-full items-center rounded-b-20 md:rounded-r-2xl md:rounded-bl-none">
6367
<div>
6468
<EventDetail iconSrc={icons.date} iconName="date">
6569
{formattedDate}

src/components/LandingPage/HeroSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default async function HeroSection() {
1111
const res = (await fetchContent("hackathonDetails"))[0];
1212
const hackathonDetails = res.fields;
1313
return (
14-
<div className="relative flex h-[85dvh] flex-col items-center justify-center md:px-8 md:py-16 lg:px-32">
14+
<div className="relative flex h-[100dvh] flex-col items-center justify-center md:px-8 md:py-16 lg:px-32">
1515
<Image
1616
src={HERO_SECTION_BACKGROUND}
1717
alt="Landing page background"

src/components/LandingPage/HeroSectionTile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const HeroSectionTile = ({
1111
const eventYear = eventDate.getFullYear();
1212

1313
return (
14-
<div className={"flex flex-col px-4 pt-10 md:items-center md:px-0 "}>
14+
<div className={"flex flex-col px-4 md:items-center md:px-0 md:pt-16 "}>
1515
<h1 className="text-shadow-title flex-wrap text-5xl font-black text-pastel-green drop-shadow-lg md:text-center md:text-6xl">
1616
<span className="text-white">{eventName} </span> {" " + eventYear}
1717
</h1>

0 commit comments

Comments
 (0)