Skip to content

Commit

Permalink
Veldig enkelt eksempel
Browse files Browse the repository at this point in the history
  • Loading branch information
perkynades committed Jun 20, 2024
1 parent 7119fb4 commit ea72dc4
Show file tree
Hide file tree
Showing 8 changed files with 1,769 additions and 154 deletions.
2 changes: 2 additions & 0 deletions apps/etterlatte-design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"preview": "vite preview"
},
"dependencies": {
"@navikt/ds-css": "^6.11.0",
"@navikt/ds-react": "^6.11.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
1 change: 0 additions & 1 deletion apps/etterlatte-design/public/vite.svg

This file was deleted.

42 changes: 0 additions & 42 deletions apps/etterlatte-design/src/App.css

This file was deleted.

35 changes: 0 additions & 35 deletions apps/etterlatte-design/src/App.tsx

This file was deleted.

1 change: 0 additions & 1 deletion apps/etterlatte-design/src/assets/react.svg

This file was deleted.

68 changes: 0 additions & 68 deletions apps/etterlatte-design/src/index.css

This file was deleted.

30 changes: 23 additions & 7 deletions apps/etterlatte-design/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import React from "react";
import ReactDOM from "react-dom/client";
import "@navikt/ds-css";
import { Box, Heading, HStack, Tag, VStack } from "@navikt/ds-react";

ReactDOM.createRoot(document.getElementById('root')!).render(
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<App />
<Box paddingBlock="8" paddingInline="8">
<VStack gap="4">
<Heading size="large">
Etterlatte sine visuelle bestemmelser for Gjenny!
</Heading>

<Heading size="medium">Tags</Heading>
<VStack gap="2">
<div>
<Tag variant="warning">Barnepejson</Tag>
</div>
<div>
<Tag variant="warning">Omstillingstønad</Tag>
</div>
</VStack>
</VStack>
</Box>
</React.StrictMode>,
)
);
Loading

0 comments on commit ea72dc4

Please sign in to comment.