Files
js/components/hackathon/gaming/FAQSection.tsx
T
Manan TankandJonas Daniels bc06b8286e Ready Player 3 Hackthon page redesign (#783)
* rp3: reduce layout shift and fade-in the timer

* rp3: content and UI tweaks

* rp3: content and UI tweaks

* rp3: spacing tweaks

* rp3: update casting of title and hackathon date range

* rp3: update end date

* rp3: update end date in schedule

Co-authored-by: Jonas Daniels <[email protected]>
2023-01-10 22:24:26 +05:30

123 lines
3.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import {
Accordion,
AccordionButton,
AccordionIcon,
AccordionItem,
AccordionPanel,
Flex,
Link,
} from "@chakra-ui/react";
import { Heading, Text } from "tw-components";
const FAQs = [
{
question: "Who can participate?",
answer:
"18+ only. If you're under the age limit, please reach out to our team for the necessary registration forms for minors.",
},
{
question: "Where will this event take place?",
answer: (
<>
The ReadyPlayer3 Hackathon will take place via{" "}
<Link href="https://readyplayer3.devpost.com/" color="primary.600">
DevPost
</Link>
.
</>
),
},
{
question: "I don’t have a team. Is there any way I can find one?",
answer:
"You can use DevPost to find other individuals looking to team up! Additionally, feel free to post in our #team-up channel in the discord if you need additional ",
},
{
question:
"I need to modify my submission but I already submitted my project. Is it too late to change it?",
answer:
"As long as it is not past the submission date, send us a message and we will note to review your most recent submission. ",
},
{
question: "Do I need to host the project live or can it be on localhost?",
answer: "It can be on localhost. Just don’t tell Furqan. 🤫",
},
{
question: "When can I start working on my project?",
answer:
"To keep it fair, we ask participants to start their project on or after the start date. Any submissions with a repository created prior to the start date will be automatically disqualified. ",
},
{
question: "Where can I see all the build tracks?",
answer: (
<>
Check out{" "}
<Link
href="https://www.notion.so/thirdweb/thirdweb-s-Ready-Player-3-Hackathon-Build-Tracks-f1eede16a3e343f48a9ec25a395d0afc"
textDecor="underline"
>
this notion document.
</Link>
</>
),
},
];
export const FaqSection: React.FC = () => {
return (
<Flex
flexDir="column"
mt={{ base: 4, md: 12 }}
maxW="800px"
ml="auto"
mr="auto"
alignItems="center"
>
<Heading size="title.2xl" mb={8}>
FAQs
</Heading>
<Flex
w={{ base: "full", md: "3xl" }}
justify={{ base: "center", md: "space-between" }}
flexDir="column"
align="center"
borderRadius="lg"
overflow="hidden"
boxShadow="0 0 0 1px rgba(255, 255, 255, 0.15)"
>
<Accordion borderColor="borderColor" allowMultiple overflow="hidden">
{FAQs.map(({ question, answer }) => (
<AccordionItem
key={question}
_first={{ borderTop: "none" }}
_last={{ borderBottom: "none" }}
role="group"
w="full"
px={{ base: 4, md: 4 }}
_hover={{ bg: "whiteAlpha.100" }}
py={2}
gap={4}
>
<AccordionButton py={4} _hover={{ bg: "transparent" }}>
<Heading
mr="auto"
pr={4}
size="label.lg"
textAlign="left"
lineHeight={1.3}
>
{question}
</Heading>
<AccordionIcon />
</AccordionButton>
<AccordionPanel pb={4}>
<Text size="body.md">{answer}</Text>
</AccordionPanel>
</AccordionItem>
))}
</Accordion>
</Flex>
</Flex>
);
};