Skip to content

Commit

Permalink
Show how to create a prototype on the homepage (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga authored Sep 6, 2024
1 parent 329fcf2 commit fded706
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
20 changes: 19 additions & 1 deletion src/app/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
}

/* Indicate non-functional links */

a[href="#"] {
cursor: not-allowed;
}
Expand All @@ -22,3 +21,22 @@ a[href="#"] {
strong {
font-weight: 800;
}

.ams-details {
color: var(--ams-color-primary-black);
font-family: var(--ams-text-font-family);
font-size: var(--ams-text-level-6-font-size);
font-weight: var(--ams-text-font-weight-normal);
line-height: var(--ams-text-level-6-line-height);

summary {
cursor: var(--ams-action-activate-cursor);
width: max-content;
}

code {
font-size: 75%;
line-height: 2;
}
}

26 changes: 24 additions & 2 deletions src/app/page.tsx
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() {
Expand All @@ -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>
Expand All @@ -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>
)
Expand Down

0 comments on commit fded706

Please sign in to comment.