From 994c8b3e431aa7db205795ce520a5818a0ba3a8f Mon Sep 17 00:00:00 2001 From: Gabi Purcaru Date: Tue, 20 Dec 2022 14:57:04 +0000 Subject: [PATCH] fix dark mode --- components/Content.tsx | 16 +++++++++------- components/FAQ.tsx | 6 +++--- components/Footer.tsx | 6 +++--- components/Header.tsx | 4 ++-- components/Hero.tsx | 20 ++++++++++++++++---- 5 files changed, 33 insertions(+), 19 deletions(-) diff --git a/components/Content.tsx b/components/Content.tsx index ae5096c..4261f66 100644 --- a/components/Content.tsx +++ b/components/Content.tsx @@ -148,8 +148,8 @@ export function Content({ }) { e.preventDefault(); return false; }}> -
- +
+ setHandle(e.target.value)} className="form-control block w-80 @@ -164,9 +164,11 @@ export function Content({ }) { transition ease-in-out m-0 - focus:text-gray-700 focus:bg-white focus:border-green-600 focus:outline-none" id="mastodonHandle" + focus:text-gray-900 focus:bg-white focus:border-green-600 focus:outline-none + dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-gray-200 dark:focus:bg-gray-900 dark:focus:text-gray-200 + " id="mastodonHandle" aria-describedby="mastodonHandleHelp" placeholder="johnmastodon@mas.to" /> - Be sure to include the full handle, including the domain. + Be sure to include the full handle, including the domain.
@@ -233,9 +235,9 @@ function AccountDetails({ account, mainDomain }) { {acct} | {numfollows} follows


- +
- + Followed by{' '} {followed_by.map((handle, idx) => ( <>{handle.replace(/@.+/, '')}{idx === followed_by.length - 1 ? '' : ', '} diff --git a/components/FAQ.tsx b/components/FAQ.tsx index f31e27c..d4b85c7 100644 --- a/components/FAQ.tsx +++ b/components/FAQ.tsx @@ -1,6 +1,6 @@ import React, { useState } from "react"; export function FAQ({ }) { - return
+ return

Frequently asked questions

@@ -33,14 +33,14 @@ function FAQItem({ defaultSelected, title, children }: { defaultSelected?: boole const [selected, setSelected] = useState(defaultSelected); return (<>

-

{selected ?
-
+
{children}
: null} diff --git a/components/Footer.tsx b/components/Footer.tsx index c0c057f..da70715 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -4,9 +4,9 @@ export default function Footer({ }) {

- - Followgraph for Mastodon, built by  @gabipurcaru@mastodon.online. - +
+ Followgraph for Mastodon, built by  @gabipurcaru@mastodon.online. +
Built with Flowbite and Tailwind CSS. diff --git a/components/Header.tsx b/components/Header.tsx index fd1cbc9..34d208f 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -18,7 +18,7 @@ export default function Header() { function Logo({ }) { return ( - + Followgraph for Mastodon ); } @@ -31,7 +31,7 @@ function MenuItem({ link, children, selected }: { link: string, children: string {children} : - + {children} } diff --git a/components/Hero.tsx b/components/Hero.tsx index e0e0705..7c17905 100644 --- a/components/Hero.tsx +++ b/components/Hero.tsx @@ -14,15 +14,27 @@ export default function Hero({ }) { Your extended network is a treasure trove!

-