fix: make organizer faq optional

This commit is contained in:
techpixel 2026-01-22 17:55:53 -05:00
parent eb7ec519d4
commit 9d97a6a3b0
No known key found for this signature in database
GPG key ID: 34D6A091A305A398
2 changed files with 25 additions and 23 deletions

View file

@ -709,31 +709,33 @@ function App({slug, content}: {slug: string | undefined, content: SatelliteConte
</div> </div>
</div> </div>
<div className="relative w-full md:w-auto"> {content.event.faq.organizer && (
<div className="absolute inset-0 md:w-[608px] pointer-events-none flex flex-col min-h-[105%]"> <div className="relative w-full md:w-auto">
<img src="/ui/woodboard-2-top.svg" alt="" className="w-full flex-shrink-0 select-none" /> <div className="absolute inset-0 md:w-[608px] pointer-events-none flex flex-col min-h-[105%]">
<div className="bg-[#AD684F] flex-1 w-full"></div> <img src="/ui/woodboard-2-top.svg" alt="" className="w-full flex-shrink-0 select-none" />
<img src="/ui/woodboard-2-bottom.svg" alt="" className="w-full flex-shrink-0 select-none" /> <div className="bg-[#AD684F] flex-1 w-full"></div>
</div> <img src="/ui/woodboard-2-bottom.svg" alt="" className="w-full flex-shrink-0 select-none" />
</div>
<div className="relative z-10 flex flex-col gap-10 items-center px-4 md:px-16 pt-9 w-full md:w-[608px]"> <div className="relative z-10 flex flex-col gap-10 items-center px-4 md:px-16 pt-9 w-full md:w-[608px]">
<p <p
className="text-[#d7cfeb] text-6xl font-bold text-center mb-4 font-ember-and-fire" className="text-[#d7cfeb] text-6xl font-bold text-center mb-4 font-ember-and-fire"
style={{ style={{
textShadow: "0px 4px 4px rgba(0,0,0,0.25)" textShadow: "0px 4px 4px rgba(0,0,0,0.25)"
}} }}
> >
{content.event.faq.organizer.title} {content.event.faq.organizer.title}
</p> </p>
{content.event.faq.organizer.questions.map((q, i) => ( {content.event.faq.organizer.questions.map((q, i) => (
<FaqQuestion key={i} question={q.question}> <FaqQuestion key={i} question={q.question}>
{q.answer} {q.answer}
</FaqQuestion> </FaqQuestion>
))} ))}
<FaqButton href={FORM_URL_ORGANIZER_APPLICATION} content={content.event.faq.organizer.buttonText} /> <FaqButton href={FORM_URL_ORGANIZER_APPLICATION} content={content.event.faq.organizer.buttonText} />
</div>
</div> </div>
</div> )}
</div> </div>
</div> </div>
</section> </section>

View file

@ -259,7 +259,7 @@ export type SatelliteContent = {
}[]; }[];
buttonText: string; buttonText: string;
}; };
organizer: { organizer?: {
title: string; title: string;
questions: { questions: {
question: string; question: string;