From 98e2b017b31ea809d5629349a33b668457000b3d Mon Sep 17 00:00:00 2001 From: Nikita Tchayka Date: Wed, 6 Sep 2023 22:59:20 +0100 Subject: More updates --- src/components/Button.tsx | 4 ++++ src/components/CodeFrame.tsx | 3 ++- src/components/HomepageFeatures/index.tsx | 33 +++++++++++++++++++++---------- src/pages/index.tsx | 4 ++-- 4 files changed, 31 insertions(+), 13 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 90d44f6..9db9054 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -61,6 +61,10 @@ const Button = ({ "bg-cyan-200 hover:bg-cyan-300 active:bg-cyan-400": color === "cyan" && !disabled, }, + { + "bg-none hover:bg-cyan-300 active:bg-cyan-400": + color === "" && !disabled, + }, { "rounded-none": rounded === "none" }, { "rounded-md": rounded === "md" }, { "rounded-full": rounded === "full" }, diff --git a/src/components/CodeFrame.tsx b/src/components/CodeFrame.tsx index 22cff25..b7c9112 100644 --- a/src/components/CodeFrame.tsx +++ b/src/components/CodeFrame.tsx @@ -40,8 +40,9 @@ const Frame = ({ return (
{children} diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index a106a93..a13fb23 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -3,6 +3,7 @@ import clsx from "clsx"; import styles from "./styles.module.css"; import CodeFrame from "../CodeFrame"; import Button from "../Button"; +import CodeBlock from "@theme/CodeBlock"; type ShowCase = | { code: string; language: string } @@ -48,7 +49,7 @@ const FeatureList: FeatureItem[] = [ messages that guide, not hinder. ), - buttonText: "Empower your Development", + buttonText: "Enjoy the Ride", showcase: { code: "", language: "" }, }, { @@ -83,19 +84,31 @@ function Feature({ n, title, showcase, description, buttonText }: FeatureItem) { const reverse = k % 2 === 0 ? "flex-row" : "flex-row-reverse"; const showcaseComponent = "code" in showcase ? ( - {showcase.code} + // {showcase.code} + + {showcase.code} + ) : ( ); + //
return ( -
- {showcaseComponent} -
-

{title}

+
+
{showcaseComponent}
+
+

{title}

{description}

- +
+ +
); @@ -105,7 +118,7 @@ export default function HomepageFeatures(): JSX.Element { return (
-
+
{FeatureList.map((props, idx) => ( ))} diff --git a/src/pages/index.tsx b/src/pages/index.tsx index b8a0ec6..cbff74c 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -55,7 +55,7 @@ function HomepageHeader() { export default function Home(): JSX.Element { const { siteConfig } = useDocusaurusContext(); - const [disclaimerOpen, setDisclaimerOpen] = React.useState(true); + const [disclaimerOpen, setDisclaimerOpen] = React.useState(false); const message = ""; return (
@@ -82,7 +82,7 @@ export default function Home(): JSX.Element {
-
+
-- cgit