Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(website): fix showcase page layout #13303

Merged
merged 1 commit into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
53 changes: 0 additions & 53 deletions packages/website/components/card/index.tsx

This file was deleted.

3 changes: 2 additions & 1 deletion packages/website/pages/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"title": "Showcase",
"type": "page",
"theme": {
"layout": "raw"
"typesetting": "article",
"layout": "full"
}
},
"blog": {
Expand Down
54 changes: 29 additions & 25 deletions packages/website/pages/showcase.mdx
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
<div className="text-center pt-6">
<h2 className="font-oxanium text-3xl font-bold tracking-tight text-neutral-900 sm:text-4xl dark:text-neutral-100">
Showcase
</h2>
<div className="mx-auto mt-3 max-w-2xl text-xl text-neutral-500 sm:mt-4 dark:text-neutral-300">
Dapps integrated with Taiko ✨
</div>
</div>
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";
{<h1 className="font-oxanium text-3xl mt-10 mb-4 text-center text-[2.5rem] font-bold tracking-tight">Showcase</h1>}

<div className="mx-auto max-w-[90rem] mb-6 mt-6">
<div className="grid gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
<Card
title="Taiko Bridge"
description="Taiko's official bridge."
href="https://bridge.a1.taiko.xyz"
imageSrc="/images/showcase/bridge-showcase.png"
/>
<Card
title="Orbiter"
description="A decentralized cross-rollup bridge."
href="https://orbiter.finance"
imageSrc="/images/showcase/orbiter-showcase.png"
/>
</div>
</div>
{<p className="mb-16 text-center text-xl text-neutral-500 dark:text-neutral-400">Dapps integrated with Taiko ✨</p>}

<Cards>
{[
{
name: 'Taiko Bridge',
url: 'https://bridge.a2.taiko.xyz',
image: taikoBridge
},
{
name: 'Orbiter',
url: 'https://orbiter.finance',
image: orbiter
},
].map(({ name, url, image }) => (
<Card key={name} image arrow target="_blank" title={name} href={url}>
<Image
src={image}
alt={`${name} preview`}
className="object-cover [aspect-ratio:12/6.3]"
/>
</Card>
))}
</Cards>
1 change: 1 addition & 0 deletions packages/website/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export default {
footer: {
component: Footer,
},
gitTimestamp: false,
head: () => {
const { asPath } = useRouter();
const { frontMatter } = useConfig();
Expand Down