-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tangle website - FAQ section (#1131)
- Loading branch information
1 parent
039148a
commit bebed92
Showing
4 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
apps/tangle-website/src/components/sections/FAQSection.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
import { | ||
Accordion, | ||
AccordionItem, | ||
AccordionButton, | ||
AccordionContent, | ||
} from '@webb-tools/webb-ui-components'; | ||
|
||
import { SectionDescription2, SectionHeader, SectionTitle } from '..'; | ||
|
||
const faqItems = [ | ||
{ | ||
question: 'Why host a crowdloan and how does it work?', | ||
answer: | ||
'Crowdloans are an excellent opportunity for people to support a project they are passionate about and earn tokens in that network.', | ||
}, | ||
{ | ||
question: 'What is the Tangle Token (TNT) and what is it used for?', | ||
answer: | ||
'Amet duo ipsum sanctus sanctus aliquyam lorem ipsum voluptua. Dolor erat aliquyam aliquyam ipsum duo amet amet ea. Vero invidunt.', | ||
}, | ||
{ | ||
question: 'How to deploy dApps on Tangle Network?', | ||
answer: | ||
'Amet duo ipsum sanctus sanctus aliquyam lorem ipsum voluptua. Dolor erat aliquyam aliquyam ipsum duo amet amet ea. Vero invidunt.', | ||
}, | ||
{ | ||
question: 'How are collators rewards calculated?', | ||
answer: | ||
'Amet duo ipsum sanctus sanctus aliquyam lorem ipsum voluptua. Dolor erat aliquyam aliquyam ipsum duo amet amet ea. Vero invidunt.', | ||
}, | ||
{ | ||
question: 'Why is Tangle Network launched on Kusama Network?', | ||
answer: | ||
'Amet duo ipsum sanctus sanctus aliquyam lorem ipsum voluptua. Dolor erat aliquyam aliquyam ipsum duo amet amet ea. Vero invidunt.', | ||
}, | ||
]; | ||
|
||
export const FAQSection = () => { | ||
return ( | ||
<section className="bg-mono-0 py-20 px-5 lg:flex lg:flex-col lg:items-center"> | ||
<div className="max-w-[1440px] mx-auto"> | ||
<div className="flex flex-col items-center mb-9"> | ||
<SectionHeader className="text-center pb-2">Learn More</SectionHeader> | ||
<SectionTitle className="pb-4"> | ||
Frequently asked questions | ||
</SectionTitle> | ||
<SectionDescription2 className="text-center lg:w-[70%]"> | ||
Need more information? Explore our documentation site or connect | ||
with others in our community channels to learn more! | ||
</SectionDescription2> | ||
</div> | ||
<Accordion | ||
defaultValue={[faqItems[0].question]} | ||
type="multiple" | ||
className="lg:w-[70%] lg:mx-auto" | ||
> | ||
{faqItems.map((item, index) => ( | ||
<AccordionItem | ||
key={index} | ||
value={item.question} | ||
className="border-b border-mono-40 px-0" | ||
> | ||
<AccordionButton className="px-0 gap-8 items-start"> | ||
{item.question} | ||
</AccordionButton> | ||
<AccordionContent className="px-0 pr-[52.5px]"> | ||
<SectionDescription2>{item.answer}</SectionDescription2> | ||
</AccordionContent> | ||
</AccordionItem> | ||
))} | ||
</Accordion> | ||
</div> | ||
</section> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters