From 538d8593c9515427eb8da9cfaf6486bbc7ada118 Mon Sep 17 00:00:00 2001 From: Sacha Weatherstone Date: Fri, 24 Dec 2021 13:17:40 +1100 Subject: [PATCH] Showcase Placeholder & Clean Footer --- docusaurus.config.js | 42 --- src/pages/showcase/_components/Card.tsx | 21 +- src/pages/showcase/_components/Network.tsx | 331 +++++++++++++++++---- 3 files changed, 283 insertions(+), 111 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 7cdb75dd..a61b1e1e 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -63,48 +63,6 @@ const config = { ], }, footer: { - style: "dark", - links: [ - { - title: "Docs", - items: [ - { - label: "Get Started", - to: "docs/getting-started", - }, - { - label: "Showcase", - to: "showcase", - }, - ], - }, - { - title: "Community", - items: [ - { - label: "Forum", - href: "https://meshtastic.discourse.group", - }, - { - label: "Discord", - href: "https://discord.gg/UQJ5QuM7vq", - }, - ], - }, - { - title: "More", - items: [ - { - label: "GitHub", - href: "https://github.com/meshtastic/meshtastic", - }, - { - label: "Legal", - to: "docs/legal", - }, - ], - }, - ], copyright: `Powered by ▲ Vercel | Meshtastic® trademark is a registered trademark belonging to Geeksville Industries LLC`, }, algolia: { diff --git a/src/pages/showcase/_components/Card.tsx b/src/pages/showcase/_components/Card.tsx index e910f94f..c7396790 100644 --- a/src/pages/showcase/_components/Card.tsx +++ b/src/pages/showcase/_components/Card.tsx @@ -13,7 +13,9 @@ export interface CardProps { export const Card = React.memo(({ network }: CardProps) => (
- {network.title} +
+ {network.title} +

{network.title}

@@ -43,7 +45,7 @@ export const PlaceholderCard = (): JSX.Element => (
@@ -82,7 +84,20 @@ export const PlaceholderCard = (): JSX.Element => ( >   -
+
+
{ fetcher ).data; - return data && !error ? ( -
-

{data.title}

-

{data.summary}

- {githubData && ( -
- {githubData.name} -
-
{githubData.name}
-
{githubData.bio}
+ return true ? ( + + ) : ( +
+ + Back + + + {data && !error ? ( +
+

{data.title}

+

{data.summary}

+ {githubData && ( +
+ {githubData.name} +
+
{githubData.name}
+
{githubData.bio}
+
+
+ )} +
{data.body}
+ +
+
+

Bill of Materials

+
+
+ {data.materials?.map((material, index) => ( +
+
+ +
+
+
{material.name}
+ + {material.details} + +
+ + View + +
+ ))} +
+ ) : ( +
+ {error && ( +
+ +
+ )} + {!data &&
Loading...
} +
)} -
{data.body}
+
+ ); +}; +export const PlaceholderNetwork = (): JSX.Element => { + return ( +
-

Bill of Materials

-
-
- {data.materials?.map((material, index) => ( +
+
+
+
- -
-
-
{material.name}
- {material.details} -
- +
+
+
+
+
+