generated from nl-design-system/example
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
15 changed files
with
665 additions
and
126 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 |
---|---|---|
|
@@ -6,6 +6,8 @@ vendor/ | |
.npm/ | ||
|
||
# Ignore generated files | ||
.next/ | ||
.swc/ | ||
build/ | ||
coverage/ | ||
dist/ | ||
|
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,4 @@ | ||
{ | ||
"extends": "next/core-web-vitals", | ||
"root": true | ||
} |
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,36 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
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,13 @@ | ||
# RIVM demo application | ||
|
||
## Getting Started | ||
|
||
First, run the development server: | ||
|
||
```bash | ||
pnpm dev | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. |
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,5 @@ | ||
/// <reference types="next" /> | ||
/// <reference types="next/image-types/global" /> | ||
|
||
// NOTE: This file should not be edited | ||
// see https://nextjs.org/docs/basic-features/typescript for more information. |
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,6 @@ | ||
/* eslint-env node */ | ||
|
||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
|
||
module.exports = nextConfig; |
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,47 @@ | ||
{ | ||
"version": "1.0.0-alpha.0", | ||
"author": "Community for NL Design System", | ||
"description": "Storybook based on the NL Design System architecture", | ||
"license": "EUPL-1.2", | ||
"name": "@rijkshuisstijl-community/rvs.rivm.nl", | ||
"keywords": [ | ||
"nl-design-system" | ||
], | ||
"private": true, | ||
"publishConfig": { | ||
"access": "restricted", | ||
"registry": "https://registry.npmjs.org/" | ||
}, | ||
"repository": { | ||
"type": "git+ssh", | ||
"url": "git@github.com:nl-design-system/rijkshuisstijl-community.git" | ||
}, | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"lint": "next lint", | ||
"lint:ts": "tsc --noEmit --project tsconfig.json", | ||
"start": "next start" | ||
}, | ||
"dependencies": { | ||
"next": "14.0.3", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@rijkshuisstijl-community/components-css": "workspace:*", | ||
"@rijkshuisstijl-community/components-react": "workspace:*", | ||
"@rijkshuisstijl-community/font": "workspace:*", | ||
"@rijkshuisstijl-community/rivm-design-tokens": "workspace:*", | ||
"@rijkshuisstijl-community/web-components-react": "workspace:*", | ||
"@rijkshuisstijl-community/web-components-stencil": "workspace:*", | ||
"@types/node": "20.9.4", | ||
"@types/react": "18.2.38", | ||
"@types/react-dom": "18.2.17", | ||
"@utrecht/component-library-css": "1.0.2-alpha.0", | ||
"@utrecht/component-library-react": "1.0.2-alpha.0", | ||
"eslint": "8.54.0", | ||
"eslint-config-next": "14.0.3", | ||
"typescript": "5.3.2" | ||
} | ||
} |
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 @@ | ||
/* global CSS here */ |
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,25 @@ | ||
import { Document } from '@utrecht/component-library-react'; | ||
import type { Metadata } from 'next'; | ||
import { PropsWithChildren } from 'react'; | ||
import '@utrecht/component-library-css'; | ||
import '@rijkshuisstijl-community/components-css/index.scss'; | ||
import '@rijkshuisstijl-community/rivm-design-tokens/dist/theme.css'; | ||
import './globals.css'; | ||
|
||
export const metadata: Metadata = { | ||
title: "Risico's van stoffen - RIVM", | ||
description: 'Demo met NL Design System.', | ||
}; | ||
const RivmTheme = ({ children }: PropsWithChildren<{}>) => <div className="rivm-theme">{children}</div>; | ||
|
||
export default function RootLayout({ children }: PropsWithChildren<{}>) { | ||
return ( | ||
<html lang="nl"> | ||
<body> | ||
<RivmTheme> | ||
<Document>{children}</Document> | ||
</RivmTheme> | ||
</body> | ||
</html> | ||
); | ||
} |
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 @@ | ||
/* page CSS here */ |
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,32 @@ | ||
import { Article, Button, ButtonGroup, Heading1, Link, Paragraph } from '@utrecht/component-library-react'; | ||
import { Logo } from '@rijkshuisstijl-community/components-react'; | ||
import './page.css'; | ||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<main> | ||
<Logo | ||
organisation="Rijksinstituut voor Volksgezondheid | ||
en Milieu" | ||
subtitle="Ministerie van Volksgezondheid, | ||
Welzijn en Sport" | ||
></Logo> | ||
<Article> | ||
<Heading1>Risico's van stoffen</Heading1> | ||
<Paragraph> | ||
De informatie op deze website is vooral gericht op het bevoegd gezag van de Wet milieubeheer, de Waterwet, | ||
de inspecties en andere overheidsorganisaties. Voor vragen over risico's van stoffen, of opmerkingen | ||
over deze website kunt u terecht bij de{' '} | ||
<Link href="https://rvs.rivm.nl/onderwerpen/helpdesk">helpdesk</Link>. | ||
</Paragraph> | ||
<ButtonGroup> | ||
<Button type="submit" appearance="primary-action-button"> | ||
Bla | ||
</Button> | ||
</ButtonGroup> | ||
</Article> | ||
</main> | ||
</> | ||
); | ||
} |
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,28 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["dom", "dom.iterable", "esnext"], | ||
"allowJs": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"noEmit": true, | ||
"esModuleInterop": true, | ||
"module": "esnext", | ||
"moduleResolution": "bundler", | ||
"resolveJsonModule": true, | ||
"isolatedModules": true, | ||
"jsx": "preserve", | ||
"incremental": true, | ||
"plugins": [ | ||
{ | ||
"name": "next" | ||
} | ||
], | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
}, | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], | ||
"exclude": ["node_modules"] | ||
} |
Oops, something went wrong.