-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add Tag to Docs, align colours [MDS-727] (#2465)
* fix: add Pagination to Docs, align colours [MDS-724] * fix: add Pagination to Docs, align colours [MDS-724] * fix: add Table to Docs, align colours [MDS-725] * fix: add Tabs to Docs, align colours [MDS-726] * fix: add Tag to Docs, align colours [MDS-727]
- Loading branch information
Showing
2 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
import { Default } from "@/app/components/server/tag/examples/Default"; | ||
import { getExamples } from "@/app/utils/getExamples"; | ||
import { MDX } from "@/components/MDX"; | ||
import { Default } from '@/app/components/server/tag/examples/Default'; | ||
import ExampleSection from '@/app/components/shared/ExampleSection'; | ||
import QuickNav from '@/app/components/shared/QuickNav'; | ||
import { getExamples } from '@/app/utils/getExamples'; | ||
import { MDX } from '@/components/MDX'; | ||
|
||
export default async function Home() { | ||
export default async function Tag() { | ||
const { server } = await getExamples(); | ||
|
||
const examplesList = Object.keys(server.tag.examples); | ||
return ( | ||
<div className="flex flex-col gap-4 text-moon-14"> | ||
<h1>Tag</h1> | ||
|
||
<div className="w-full max-w-7xl flex flex-col gap-4 text-moon-14"> | ||
<h1 className="font-medium text-moon-32">Tag</h1> | ||
<MDX markdown={server.tag.description} /> | ||
|
||
<div className="space-y-2"> | ||
<h2>Default</h2> | ||
<div className={'flex flex-wrap items-center justify-around p-4 gap-2 w-full bg-goku rounded-moon-s-sm'}> | ||
<Default /> | ||
</div> | ||
<pre className="bg-goku rounded-moon-s-sm p-4">{server.tag.examples.Default}</pre> | ||
</div> | ||
<QuickNav items={examplesList} /> | ||
<ExampleSection | ||
title="Default" | ||
component={<Default />} | ||
code={server.tag.examples.Default} | ||
/> | ||
</div> | ||
) | ||
); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters