-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show how to create a prototype on the homepage (#215)
- Loading branch information
1 parent
329fcf2
commit fded706
Showing
2 changed files
with
43 additions
and
3 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
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,6 +1,6 @@ | ||
'use client' | ||
|
||
import { Grid, Heading, LinkList, PageHeading, Screen } from '@amsterdam/design-system-react' | ||
import { Grid, Heading, LinkList, PageHeading, Paragraph, Screen } from '@amsterdam/design-system-react' | ||
import Link from 'next/link' | ||
|
||
export default function Page() { | ||
|
@@ -9,9 +9,11 @@ export default function Page() { | |
<Grid paddingVertical="large"> | ||
<Grid.Cell span="all"> | ||
<PageHeading>Prototypes</PageHeading> | ||
<Heading level={2} size="level-4" className="ams-mb--md"> | ||
<Heading level={2} size="level-4"> | ||
Amsterdam Design System | ||
</Heading> | ||
</Grid.Cell> | ||
<Grid.Cell span="all"> | ||
<LinkList> | ||
<Link legacyBehavior href="/amopis" passHref> | ||
<LinkList.Link>Amopis</LinkList.Link> | ||
|
@@ -25,6 +27,26 @@ export default function Page() { | |
{/* Append route import here */} | ||
</LinkList> | ||
</Grid.Cell> | ||
<Grid.Cell span="all"> | ||
<details className="ams-details"> | ||
<summary className="ams-mb--xs">Kickstart your own</summary> | ||
<Paragraph size="small"> | ||
<code> | ||
git clone [email protected]:Amsterdam/design-system-prototypes.git | ||
<br /> | ||
cd design-system-prototypes | ||
<br /> | ||
npm install | ||
<br /> | ||
npm run add site 'Site name' | ||
<br /> | ||
npm run add page 'Site name' 'Page name' | ||
<br /> | ||
npm run dev | ||
</code> | ||
</Paragraph> | ||
</details> | ||
</Grid.Cell> | ||
</Grid> | ||
</Screen> | ||
) | ||
|