From 01cb5558571d5a27c92149420482dd15ff634313 Mon Sep 17 00:00:00 2001
From: dave | d1onys1us <13951458+d1onys1us@users.noreply.github.com>
Date: Mon, 13 Mar 2023 08:20:37 -0400
Subject: [PATCH] fix(website): fix showcase page layout
---
packages/website/components/card/index.tsx | 53 ---------------------
packages/website/pages/_meta.json | 3 +-
packages/website/pages/showcase.mdx | 54 ++++++++++++----------
packages/website/theme.config.tsx | 1 +
4 files changed, 32 insertions(+), 79 deletions(-)
delete mode 100644 packages/website/components/card/index.tsx
diff --git a/packages/website/components/card/index.tsx b/packages/website/components/card/index.tsx
deleted file mode 100644
index f7be342c19..0000000000
--- a/packages/website/components/card/index.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-type Props = {
- title: string;
- description: string;
- href: string;
- imageSrc: string;
-};
-
-export function Card(props: Props): JSX.Element {
- return (
-
- );
-}
diff --git a/packages/website/pages/_meta.json b/packages/website/pages/_meta.json
index 595b041658..8e2e86e9c1 100644
--- a/packages/website/pages/_meta.json
+++ b/packages/website/pages/_meta.json
@@ -15,7 +15,8 @@
"title": "Showcase",
"type": "page",
"theme": {
- "layout": "raw"
+ "typesetting": "article",
+ "layout": "full"
}
},
"blog": {
diff --git a/packages/website/pages/showcase.mdx b/packages/website/pages/showcase.mdx
index 0a7d3f0e04..3eecdd2191 100644
--- a/packages/website/pages/showcase.mdx
+++ b/packages/website/pages/showcase.mdx
@@ -1,27 +1,31 @@
-
-
- Showcase
-
-
- Dapps integrated with Taiko ✨
-
-
+import { Card, Cards } from 'nextra-theme-docs';
+import Image from 'next/image';
+import taikoBridge from '../public/images/showcase/bridge-showcase.png';
+import orbiter from '../public/images/showcase/orbiter-showcase.png';
-import { Card } from "../components/card";
+{Showcase
}
-
+{Dapps integrated with Taiko ✨
}
+
+
+ {[
+ {
+ name: 'Taiko Bridge',
+ url: 'https://bridge.a2.taiko.xyz',
+ image: taikoBridge
+ },
+ {
+ name: 'Orbiter',
+ url: 'https://orbiter.finance',
+ image: orbiter
+ },
+ ].map(({ name, url, image }) => (
+
+
+
+ ))}
+
\ No newline at end of file
diff --git a/packages/website/theme.config.tsx b/packages/website/theme.config.tsx
index 3a32943f33..cf31a286d3 100644
--- a/packages/website/theme.config.tsx
+++ b/packages/website/theme.config.tsx
@@ -28,6 +28,7 @@ export default {
footer: {
component: Footer,
},
+ gitTimestamp: false,
head: () => {
const { asPath } = useRouter();
const { frontMatter } = useConfig();