1
0
Fork 0

refactor: split components to multiple subdirs

subdirs
- homepage
- trainingpage
- layout
This commit is contained in:
Vojtěch Mareš 2023-01-11 12:17:35 +01:00
parent 0f8f9ccb04
commit c170415fd0
15 changed files with 21 additions and 21 deletions

View file

@ -0,0 +1,110 @@
import Image from "next/image";
import { Container } from "@/components/Container";
import backgroundImage from "@/images/background-faqs.jpg";
const faqs = [
[
{
question: "Does TaxPal handle VAT?",
answer:
"Well no, but if you move your company offshore you can probably ignore it.",
},
{
question: "Can I pay for my subscription via purchase order?",
answer: "Absolutely, we are happy to take your money in all forms.",
},
{
question: "How do I apply for a job at TaxPal?",
answer:
"We only hire our customers, so subscribe for a minimum of 6 months and then lets talk.",
},
],
[
{
question: "What was that testimonial about tax fraud all about?",
answer:
"TaxPal is just a software application, ultimately your books are your responsibility.",
},
{
question:
"TaxPal sounds horrible but why do I still feel compelled to purchase?",
answer:
"This is the power of excellent visual design. You just cant resist it, no matter how poorly it actually functions.",
},
{
question:
"I found other companies called TaxPal, are you sure you can use this name?",
answer:
"Honestly not sure at all. We havent actually incorporated or anything, we just thought it sounded cool and made this website.",
},
],
[
{
question: "How do you generate reports?",
answer:
"You just tell us what data you need a report for, and we get our kids to create beautiful charts for you using only the finest crayons.",
},
{
question: "Can we expect more inventory features?",
answer: "In life its really better to never expect anything at all.",
},
{
question: "I lost my password, how do I get into my account?",
answer:
"Send us an email and we will send you a copy of our latest password spreadsheet so you can find your information.",
},
],
];
export function Faqs() {
return (
<section
id="faq"
aria-labelledby="faq-title"
className="relative overflow-hidden bg-slate-50 py-20 sm:py-32"
>
<Image
className="absolute top-0 left-1/2 max-w-none translate-x-[-30%] -translate-y-1/4"
src={backgroundImage}
alt=""
width={1558}
height={946}
unoptimized
/>
<Container className="relative">
<div className="mx-auto max-w-2xl lg:mx-0">
<h2
id="faq-title"
className="font-display text-3xl tracking-tight text-black sm:text-4xl"
>
Frequently asked questions
</h2>
<p className="mt-4 text-lg tracking-tight text-slate-700">
If you cant find what youre looking for, email our support team
and if youre lucky someone will get back to you.
</p>
</div>
<ul
role="list"
className="mx-auto mt-16 grid max-w-2xl grid-cols-1 gap-8 lg:max-w-none lg:grid-cols-3"
>
{faqs.map((column, columnIndex) => (
<li key={columnIndex}>
<ul role="list" className="flex flex-col gap-y-8">
{column.map((faq, faqIndex) => (
<li key={faqIndex}>
<h3 className="font-display text-lg leading-7 text-black">
{faq.question}
</h3>
<p className="mt-4 text-sm text-slate-700">{faq.answer}</p>
</li>
))}
</ul>
</li>
))}
</ul>
</Container>
</section>
);
}