-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
825363b
commit fad3da1
Showing
14 changed files
with
665 additions
and
1 deletion.
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
10 changes: 10 additions & 0 deletions
10
storybook/src/pages/amopis/DetailsPage/DetailsPage.docs.mdx
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{/* @license CC0-1.0 */} | ||
|
||
import { Meta } from "@storybook/blocks"; | ||
import * as DetailsPageStories from "./DetailsPage.stories.tsx"; | ||
|
||
<Meta of={DetailsPageStories} /> | ||
|
||
# Details Page | ||
|
||
Displays properties of an entity. |
18 changes: 18 additions & 0 deletions
18
storybook/src/pages/amopis/DetailsPage/DetailsPage.stories.tsx
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* @license EUPL-1.2+ | ||
* Copyright Gemeente Amsterdam | ||
*/ | ||
|
||
import { Meta, StoryObj } from '@storybook/react' | ||
import { DetailsPage } from './DetailsPage' | ||
import { commonMeta } from '../common/config' | ||
|
||
const meta = { | ||
...commonMeta, | ||
title: 'Pages/Amopis/Details Page', | ||
component: DetailsPage, | ||
} satisfies Meta<typeof DetailsPage> | ||
|
||
export default meta | ||
|
||
export const Default: StoryObj = {} |
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 |
---|---|---|
@@ -0,0 +1,163 @@ | ||
import { | ||
AspectRatio, | ||
Breadcrumb, | ||
Column, | ||
DescriptionList, | ||
Grid, | ||
Heading, | ||
Image, | ||
Link, | ||
LinkList, | ||
Paragraph, | ||
Row, | ||
Tabs, | ||
} from '@amsterdam/design-system-react' | ||
import { EditDocumentIcon, EmailIcon } from '@amsterdam/design-system-react-icons' | ||
import '../common/amopis.scss' | ||
import { Submenu } from '../common/Submenu' | ||
import { menu } from '../common/config' | ||
|
||
export const DetailsPage = () => ( | ||
<Grid paddingVertical="medium"> | ||
<Grid.Cell span="all"> | ||
<Breadcrumb> | ||
<Breadcrumb.Link href="#">Dashboard</Breadcrumb.Link> | ||
<Breadcrumb.Link href="#">Projecten</Breadcrumb.Link> | ||
</Breadcrumb> | ||
<Heading className="ams-mb--sm">Kerngegevens</Heading> | ||
<Heading level={2}>Brug 423 opwaardering (Berlagebrug) – ams20192715</Heading> | ||
</Grid.Cell> | ||
<Grid.Cell span={{ narrow: 4, medium: 8, wide: 10 }} start={{ narrow: 1, medium: 1, wide: 3 }}> | ||
<Tabs> | ||
<Tabs.List> | ||
{menu.level3.map(({ label }, index) => ( | ||
<Tabs.Button tab={index} key={label}> | ||
{label} | ||
</Tabs.Button> | ||
))} | ||
</Tabs.List> | ||
</Tabs> | ||
</Grid.Cell> | ||
<Grid.Cell start={1} span={{ narrow: 4, medium: 2, wide: 2 }}> | ||
<div className="ams-application-white-background"> | ||
<Submenu /> | ||
</div> | ||
</Grid.Cell> | ||
<Grid.Cell span={{ narrow: 4, medium: 6, wide: 7 }}> | ||
<div className="ams-application-white-background" style={{ padding: '1rem' }}> | ||
<Column> | ||
<Row className="ams-application-row--align-between amopis-row--valign-baseline"> | ||
<Heading level={3}>Kerngegevens</Heading> | ||
<LinkList> | ||
<LinkList.Link href="#" icon={EditDocumentIcon}> | ||
Wijzig kerngegevens | ||
</LinkList.Link> | ||
</LinkList> | ||
</Row> | ||
<section> | ||
<Heading level={4} className="ams-mb--sm"> | ||
Opdrachtgevers | ||
</Heading> | ||
<DescriptionList> | ||
<DescriptionList.Term>Ambtelijk opdrachtgever</DescriptionList.Term> | ||
<DescriptionList.Details> | ||
<Row style={{ justifyContent: 'space-between' }}> | ||
<span>Marise Ent</span> | ||
<EmailIcon width={24} fill="#004469" /> | ||
</Row> | ||
</DescriptionList.Details> | ||
<DescriptionList.Term>Bestuurlijk Opdrachtgever Stad</DescriptionList.Term> | ||
<DescriptionList.Details> | ||
<Row style={{ justifyContent: 'space-between' }}> | ||
<span>Melanie van der Horst</span> | ||
<EmailIcon width={24} fill="#004469" /> | ||
</Row> | ||
</DescriptionList.Details> | ||
</DescriptionList> | ||
</section> | ||
<section> | ||
<Heading level={4} className="ams-mb--sm"> | ||
Opdrachtnemers | ||
</Heading> | ||
<DescriptionList> | ||
<DescriptionList.Term>Accounthouder</DescriptionList.Term> | ||
<DescriptionList.Details> | ||
<Row style={{ justifyContent: 'space-between' }}> | ||
<span>Paul Brouwer</span> | ||
<EmailIcon width={24} fill="#004469" /> | ||
</Row> | ||
</DescriptionList.Details> | ||
<DescriptionList.Term>Opdrachtnemer</DescriptionList.Term> | ||
<DescriptionList.Details> | ||
<Row style={{ justifyContent: 'space-between' }}> | ||
<span>Erik Bakker</span> | ||
<EmailIcon width={24} fill="#004469" /> | ||
</Row> | ||
</DescriptionList.Details> | ||
<DescriptionList.Term>Projectbeheerser</DescriptionList.Term> | ||
<DescriptionList.Details> | ||
<Row style={{ justifyContent: 'space-between' }}> | ||
<span>Klaas Helmers</span> | ||
<EmailIcon width={24} fill="#004469" /> | ||
</Row> | ||
</DescriptionList.Details> | ||
<DescriptionList.Term>Projectbeheerser</DescriptionList.Term> | ||
<DescriptionList.Details> | ||
<Row style={{ justifyContent: 'space-between' }}> | ||
<span>Marjolein Boomer</span> | ||
<EmailIcon width={24} fill="#004469" /> | ||
</Row> | ||
</DescriptionList.Details> | ||
<DescriptionList.Term>Projectbeheerser</DescriptionList.Term> | ||
<DescriptionList.Details> | ||
<Row style={{ justifyContent: 'space-between' }}> | ||
<span>Carina Cairo</span> | ||
<EmailIcon width={24} fill="#004469" /> | ||
</Row> | ||
</DescriptionList.Details> | ||
</DescriptionList> | ||
</section> | ||
<section> | ||
<Heading level={4} className="ams-mb--sm"> | ||
Basisgegevens | ||
</Heading> | ||
<DescriptionList> | ||
<DescriptionList.Term>Gebied</DescriptionList.Term> | ||
<DescriptionList.Details>Gemeente Amsterdam</DescriptionList.Details> | ||
<DescriptionList.Term>Stadsdeel</DescriptionList.Term> | ||
<DescriptionList.Details>Amsterdam</DescriptionList.Details> | ||
<DescriptionList.Term>Stadsdeel</DescriptionList.Term> | ||
<DescriptionList.Details>Amsterdam</DescriptionList.Details> | ||
<DescriptionList.Term>Status</DescriptionList.Term> | ||
<DescriptionList.Details>Actief</DescriptionList.Details> | ||
<DescriptionList.Term>Projectsoort</DescriptionList.Term> | ||
<DescriptionList.Details>Programma Bruggen</DescriptionList.Details> | ||
</DescriptionList> | ||
</section> | ||
</Column> | ||
</div> | ||
</Grid.Cell> | ||
<Grid.Cell span={{ narrow: 4, medium: 3, wide: 3 }} start={{ narrow: 1, medium: 3, wide: 10 }}> | ||
<div className="ams-application-white-background" style={{ padding: '1rem' }}> | ||
<Column gap="small"> | ||
<div> | ||
<AspectRatio ratio="x-wide"> | ||
<Image alt="" src="https://picsum.photos/900/720?random=1" /> | ||
</AspectRatio> | ||
<Paragraph> | ||
Impressie Brug 423 <Link variant="inline">Afbeelding wijzigen</Link> | ||
</Paragraph> | ||
</div> | ||
<div> | ||
<AspectRatio ratio="x-wide"> | ||
<Image alt="" src="https://picsum.photos/900/720?random=2" /> | ||
</AspectRatio> | ||
<Paragraph> | ||
Locatie Brug 423 <Link variant="inline">Bekijk op datapunt.nl</Link> | ||
</Paragraph> | ||
</div> | ||
</Column> | ||
</div> | ||
</Grid.Cell> | ||
</Grid> | ||
) |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{/* @license CC0-1.0 */} | ||
|
||
import { Meta } from "@storybook/blocks"; | ||
import * as TablePageStories from "./TablePage.stories.tsx"; | ||
|
||
<Meta of={TablePageStories} /> | ||
|
||
# Table Page | ||
|
||
Displays items of a collection. |
18 changes: 18 additions & 0 deletions
18
storybook/src/pages/amopis/TablePage/TablePage.stories.tsx
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* @license EUPL-1.2+ | ||
* Copyright Gemeente Amsterdam | ||
*/ | ||
|
||
import { Meta, StoryObj } from '@storybook/react' | ||
import { TablePage } from './TablePage' | ||
import { commonMeta } from '../common/config' | ||
|
||
const meta = { | ||
...commonMeta, | ||
title: 'Pages/Amopis/Table Page', | ||
component: TablePage, | ||
} satisfies Meta<typeof TablePage> | ||
|
||
export default meta | ||
|
||
export const Default: StoryObj = {} |
Oops, something went wrong.