From 71dfeb721d271dd58c5e2f4f26cff1fe407eef80 Mon Sep 17 00:00:00 2001 From: Nikita Tchayka Date: Thu, 14 Sep 2023 23:01:22 +0100 Subject: Start roadmap --- src/components/Frame.tsx | 6 ++++- src/components/HomepageFeatures/index.tsx | 40 +++++++++++++++++++++++++------ src/pages/index.tsx | 24 +++++++++++++++---- static/img/Star1.svg | 3 +++ static/img/Star2.svg | 3 +++ 5 files changed, 63 insertions(+), 13 deletions(-) create mode 100644 static/img/Star1.svg create mode 100644 static/img/Star2.svg diff --git a/src/components/Frame.tsx b/src/components/Frame.tsx index 62467b6..6f858ba 100644 --- a/src/components/Frame.tsx +++ b/src/components/Frame.tsx @@ -6,6 +6,7 @@ type FrameType = { children?: ReactElement | ReactElement[]; rainbow?: boolean; shadowClass?: string; + background?: string; width?: "fit" | "full" | "1/2" | "1/3"; }; @@ -34,11 +35,14 @@ const Frame = ({ children, width, shadowClass = "shadow-neoblack", + background = "bg-white", }: FrameType) => { const s = rainbow ? classes.filter((c) => !c.includes("shadow")).concat("shadow-rainbow") : classes; - const cls = [...s, `${widthClasses[width]}`, shadowClass].join(" "); + const cls = [...s, `${widthClasses[width]}`, shadowClass, background].join( + " " + ); return
{children}
; }; diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index a13fb23..f4471f3 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -4,6 +4,7 @@ import styles from "./styles.module.css"; import CodeFrame from "../CodeFrame"; import Button from "../Button"; import CodeBlock from "@theme/CodeBlock"; +import Frame from "../Frame"; type ShowCase = | { code: string; language: string } @@ -81,13 +82,13 @@ const FeatureList: FeatureItem[] = [ function Feature({ n, title, showcase, description, buttonText }: FeatureItem) { const k = n ?? 0; - const reverse = k % 2 === 0 ? "flex-row" : "flex-row-reverse"; + const reverse = k % 2 === 0 ? "xl:flex-row" : "xl:flex-row-reverse"; const showcaseComponent = "code" in showcase ? ( // {showcase.code} {showcase.code} @@ -98,13 +99,15 @@ function Feature({ n, title, showcase, description, buttonText }: FeatureItem) { //
return (
-
{showcaseComponent}
-
+
+ {showcaseComponent} +
+

{title}

{description}

-
+
@@ -117,8 +120,31 @@ function Feature({ n, title, showcase, description, buttonText }: FeatureItem) { export default function HomepageFeatures(): JSX.Element { return (
-
+
+
+
+ {/* horrible hack to hide the vertical bar */} + + + +

+ Roadmap +

+
+
+ +

Coming Soon

+ +
+
+
{FeatureList.map((props, idx) => ( ))} diff --git a/src/pages/index.tsx b/src/pages/index.tsx index ba6224c..60e7a7d 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -12,6 +12,7 @@ import Button from "../components/Button"; import CodeFrame from "../components/CodeFrame"; import Dialog from "../components/Dialog"; import Modal from "../components/Modal"; +import Disclaimer from "../components/Disclaimer"; const dynC = (className: string, color: string) => `dark:${className}-dark${color} ${className}-light${color}`; @@ -48,10 +49,21 @@ function HomepageHeader() {

+
+