mirror of
https://github.com/System-End/campfire.git
synced 2026-04-19 20:55:10 +00:00
fix: make organizer faq optional
This commit is contained in:
parent
eb7ec519d4
commit
9d97a6a3b0
2 changed files with 25 additions and 23 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,7 @@ export type SatelliteContent = {
|
||||||
}[];
|
}[];
|
||||||
buttonText: string;
|
buttonText: string;
|
||||||
};
|
};
|
||||||
organizer: {
|
organizer?: {
|
||||||
title: string;
|
title: string;
|
||||||
questions: {
|
questions: {
|
||||||
question: string;
|
question: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue