From 7af5821fb95e7d9a4d781efd4c64009fe4186743 Mon Sep 17 00:00:00 2001 From: Dewantoro Triatmojo <99950492+dewodt@users.noreply.github.com> Date: Thu, 22 Feb 2024 00:51:47 +0700 Subject: [PATCH] Sponsorship: Media Partner (#49) * feat: add media partner. * fix: change main event time. --- app/api/feedback/route.ts | 2 +- app/main-event/announcement/accepted.tsx | 2 +- app/main-event/page.tsx | 2 +- app/sponsorship/page.tsx | 100 +++++++++++++++++++++-- lib/cms.ts | 21 +++++ lib/special-date.ts | 2 +- types/cms.ts | 3 + 7 files changed, 123 insertions(+), 9 deletions(-) diff --git a/app/api/feedback/route.ts b/app/api/feedback/route.ts index 7deee22..5336b2f 100644 --- a/app/api/feedback/route.ts +++ b/app/api/feedback/route.ts @@ -3,7 +3,7 @@ import { appendGoogleSheets } from "@/lib/google-sheets"; import PostHogClient from "@/lib/posthog-server"; import { prisma } from "@/lib/prisma"; import { isUserAllowedFeedback, isUserFeedbacked } from "@/lib/query"; -import { feedbackEndDate, feedbackStartDate } from "@/lib/special-date"; +import { feedbackStartDate } from "@/lib/special-date"; import { feedbackSchema } from "@/lib/zod"; import { getServerSession } from "next-auth"; import { type NextRequest, NextResponse } from "next/server"; diff --git a/app/main-event/announcement/accepted.tsx b/app/main-event/announcement/accepted.tsx index a97cfdd..d724ac4 100644 --- a/app/main-event/announcement/accepted.tsx +++ b/app/main-event/announcement/accepted.tsx @@ -61,7 +61,7 @@ async function Accepted(props: { session: Session }) {

Location: Cornerstone Auditorium, Paskal 23

-

Time: 15:00 - 21:10 WIB

+

Time: 15:00 - 21:00 WIB

Contact Person: @mulan19aja (Line ID)

diff --git a/app/main-event/page.tsx b/app/main-event/page.tsx index 305b31e..bf65d61 100644 --- a/app/main-event/page.tsx +++ b/app/main-event/page.tsx @@ -255,7 +255,7 @@ async function page() { data-aos="fade-right" className="text-3xl italic text-[#FDB10E] lg:text-5xl" > - 15.00 WIB - 21:10 WIB + 15.00 WIB - 21:00 WIB

diff --git a/app/sponsorship/page.tsx b/app/sponsorship/page.tsx index 8cc1639..a7e5eb4 100644 --- a/app/sponsorship/page.tsx +++ b/app/sponsorship/page.tsx @@ -24,7 +24,15 @@ export default async function Sponsorship() { sponsorshipTags ); const { - sponsorship: { xlSponsor, lSponsor, mSponsor, sSponsor }, + sponsorship: { + xlSponsor, + lSponsor, + mSponsor, + sSponsor, + mMediaPartner, + lMediaPartner, + xlMediaPartner, + }, } = sponsorshipQueryResult; return ( @@ -66,9 +74,17 @@ export default async function Sponsorship() {
{/* Sponsors Div Group */}
+ {/* Title */} +

+ SPONSORS +

+ {/* First Class */}
- {xlSponsor.map((data, index) => { + {xlSponsor.map((data) => { return (
- {lSponsor.map((data, index) => { + {lSponsor.map((data) => { return (
- {mSponsor.map((data, index) => { + {mSponsor.map((data) => { return (
- {sSponsor.map((data, index) => { + {sSponsor.map((data) => { + return ( +
+ {data.alt} +
+ ); + })} +
+
+ + {/* Media Partner Div Group */} +
+ {/* Title */} +

+ MEDIA PARTNER +

+ + {/* First Class */} +
+ {xlMediaPartner.map((data) => { + return ( +
+ {data.alt} +
+ ); + })} +
+ + {/* Second Class */} +
+ {lMediaPartner.map((data) => { + return ( +
+ {data.alt} +
+ ); + })} +
+ + {/* Third Class */} +
+ {mMediaPartner.map((data) => { return (