From f30d92a66cfd21a686d4f6e3280a9853b0e148e8 Mon Sep 17 00:00:00 2001 From: Damian Stasik <920747+damianstasik@users.noreply.github.com> Date: Mon, 4 Sep 2023 13:52:30 +0200 Subject: [PATCH] Clean up FAQ section --- src/components/Accordion/Item.tsx | 2 +- src/components/Accordion/index.tsx | 2 +- src/components/Button/index.tsx | 12 +++++++----- src/components/FAQ/index.tsx | 9 ++++++++- src/components/Hero/index.tsx | 2 +- src/components/LatestNews/index.tsx | 5 ++++- src/components/Supporters/index.tsx | 2 +- tailwind.config.js | 5 +++++ 8 files changed, 28 insertions(+), 11 deletions(-) diff --git a/src/components/Accordion/Item.tsx b/src/components/Accordion/Item.tsx index c1405e76..4edfac31 100644 --- a/src/components/Accordion/Item.tsx +++ b/src/components/Accordion/Item.tsx @@ -20,7 +20,7 @@ const AccordionItem = ({ summary, open, children }: AccordionItemProps) => { return (
{ - return
{children}
; + return
{children}
; }; export default Accordion; diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index 198ef43c..1a8da9f1 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -3,7 +3,7 @@ import clsx from "clsx"; import Link, { Props } from "@docusaurus/Link"; type ButtonProps = Props & { - variant: "primary" | "secondary"; + variant: "primary" | "secondaryOnDark" | "secondaryOnLight"; }; export default function Button({ children, variant, ...rest }: ButtonProps) { @@ -11,11 +11,13 @@ export default function Button({ children, variant, ...rest }: ButtonProps) { {children} diff --git a/src/components/FAQ/index.tsx b/src/components/FAQ/index.tsx index a23e7b37..5b339bc5 100644 --- a/src/components/FAQ/index.tsx +++ b/src/components/FAQ/index.tsx @@ -1,10 +1,11 @@ import React from "react"; import Accordion from "../Accordion"; import AccordionItem from "../Accordion/Item"; +import Button from "../Button"; export default function FAQ() { return ( -
+

Frequently Asked Questions @@ -40,6 +41,12 @@ export default function FAQ() { future, and isn’t subhect to the whims of a singe vendor. + +
+ +

); diff --git a/src/components/Hero/index.tsx b/src/components/Hero/index.tsx index 060dfecb..845236ae 100644 --- a/src/components/Hero/index.tsx +++ b/src/components/Hero/index.tsx @@ -33,7 +33,7 @@ export default function Hero() { will be managed by an independent Foundation.

-
diff --git a/src/components/Supporters/index.tsx b/src/components/Supporters/index.tsx index 94fc5327..91e00c0f 100644 --- a/src/components/Supporters/index.tsx +++ b/src/components/Supporters/index.tsx @@ -104,7 +104,7 @@ export default function Supporters() {
-