|
Last change
on this file since 42da64d was 42da64d, checked in by Andrej <asumanovski@…>, 8 weeks ago |
|
Fixed auth issue
|
-
Property mode
set to
100644
|
|
File size:
1.8 KB
|
| Line | |
|---|
| 1 | import {
|
|---|
| 2 | Button,
|
|---|
| 3 | Accordion,
|
|---|
| 4 | AccordionContent,
|
|---|
| 5 | AccordionItem,
|
|---|
| 6 | AccordionTrigger,
|
|---|
| 7 | } from "@relume_io/relume-ui";
|
|---|
| 8 |
|
|---|
| 9 | import { FaqDefaults } from "./Faq.defaults";
|
|---|
| 10 |
|
|---|
| 11 | export const Faq = (props) => {
|
|---|
| 12 | const {
|
|---|
| 13 | heading,
|
|---|
| 14 | description,
|
|---|
| 15 | questions,
|
|---|
| 16 | footerHeading,
|
|---|
| 17 | footerDescription,
|
|---|
| 18 | button,
|
|---|
| 19 | } = {
|
|---|
| 20 | ...FaqDefaults,
|
|---|
| 21 | ...props,
|
|---|
| 22 | };
|
|---|
| 23 | return (
|
|---|
| 24 | <section
|
|---|
| 25 | id="relume"
|
|---|
| 26 | className="px-[5%] py-16 md:py-24 lg:py-28 flex items-center justify-center"
|
|---|
| 27 | >
|
|---|
| 28 | <div className="mx-auto w-full max-w-2xl">
|
|---|
| 29 | <div className="rb-12 mb-12 text-center md:mb-18 lg:mb-20">
|
|---|
| 30 | <h2 className="rb-5 mb-5 font-bold text-4xl sm:text-5xl md:mb-6 md:text-6xl lg:text-7xl leading-tight">
|
|---|
| 31 | {heading}
|
|---|
| 32 | </h2>
|
|---|
| 33 | <p className="text-sm sm:text-base md:text-lg opacity-80">
|
|---|
| 34 | {description}
|
|---|
| 35 | </p>
|
|---|
| 36 | </div>
|
|---|
| 37 | <Accordion type="multiple">
|
|---|
| 38 | {questions.map((question, index) => (
|
|---|
| 39 | <AccordionItem key={index} value={`item-${index}`}>
|
|---|
| 40 | <AccordionTrigger className="md:py-5 md:text-md">
|
|---|
| 41 | {question.title}
|
|---|
| 42 | </AccordionTrigger>
|
|---|
| 43 | <AccordionContent className="md:pb-6">
|
|---|
| 44 | {question.answer}
|
|---|
| 45 | </AccordionContent>
|
|---|
| 46 | </AccordionItem>
|
|---|
| 47 | ))}
|
|---|
| 48 | </Accordion>
|
|---|
| 49 | <div className="mx-auto mt-12 max-w-md text-center md:mt-18 lg:mt-20">
|
|---|
| 50 | <h4 className="mb-3 text-2xl font-bold md:mb-4 md:text-3xl md:leading-[1.3] lg:text-4xl">
|
|---|
| 51 | {footerHeading}
|
|---|
| 52 | </h4>
|
|---|
| 53 | <p className="text-sm sm:text-base md:text-lg opacity-80">
|
|---|
| 54 | {footerDescription}
|
|---|
| 55 | </p>
|
|---|
| 56 | <div className="mt-6 md:mt-8">
|
|---|
| 57 | <Button {...button}>{button.title}</Button>
|
|---|
| 58 | </div>
|
|---|
| 59 | </div>
|
|---|
| 60 | </div>
|
|---|
| 61 | </section>
|
|---|
| 62 | );
|
|---|
| 63 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.