-
Notifications
You must be signed in to change notification settings - Fork 0
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
21 changed files
with
377 additions
and
338 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", | ||
"vcs": { | ||
"enabled": false, | ||
"clientKind": "git", | ||
"useIgnoreFile": false | ||
}, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"ignore": [] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space" | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "single" | ||
} | ||
}, | ||
"json": { | ||
"formatter": { | ||
"enabled": true | ||
} | ||
}, | ||
"css": { | ||
"formatter": { | ||
"enabled": 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
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,35 +1,36 @@ | ||
{ | ||
"name": "capra-fagradar", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc -b && vite build", | ||
"preview": "vite preview", | ||
"test": "echo 'no test'", | ||
"typecheck": "tsc -b" | ||
}, | ||
"dependencies": { | ||
"@fontsource-variable/inter": "^5.0.20", | ||
"d3-scale": "^4.0.2", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"react-router-dom": "^6.26.0", | ||
"react-tooltip": "^5.28.0", | ||
"zustand": "^5.0.1" | ||
}, | ||
"devDependencies": { | ||
"@mdx-js/rollup": "^3.0.1", | ||
"@types/mdx": "^2.0.13", | ||
"@types/react": "^18.3.3", | ||
"@types/react-dom": "^18.3.0", | ||
"@vitejs/plugin-react-swc": "^3.5.0", | ||
"remark-frontmatter": "^5.0.0", | ||
"remark-gfm": "^4.0.0", | ||
"remark-mdx-frontmatter": "^5.0.0", | ||
"typescript": "^5.2.2", | ||
"vite": "^5.3.4" | ||
}, | ||
"packageManager": "[email protected]+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf" | ||
"name": "capra-fagradar", | ||
"private": true, | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc -b && vite build", | ||
"preview": "vite preview", | ||
"test": "echo 'no test'", | ||
"typecheck": "tsc -b" | ||
}, | ||
"dependencies": { | ||
"@fontsource-variable/inter": "^5.0.20", | ||
"d3-scale": "^4.0.2", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"react-router-dom": "^6.26.0", | ||
"react-tooltip": "^5.28.0", | ||
"zustand": "^5.0.1" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.4", | ||
"@mdx-js/rollup": "^3.0.1", | ||
"@types/mdx": "^2.0.13", | ||
"@types/react": "^18.3.3", | ||
"@types/react-dom": "^18.3.0", | ||
"@vitejs/plugin-react-swc": "^3.5.0", | ||
"remark-frontmatter": "^5.0.0", | ||
"remark-gfm": "^4.0.0", | ||
"remark-mdx-frontmatter": "^5.0.0", | ||
"typescript": "^5.2.2", | ||
"vite": "^5.3.4" | ||
}, | ||
"packageManager": "[email protected]+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf" | ||
} |
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,36 +1,36 @@ | ||
import { Outlet, Link } from "react-router-dom"; | ||
import style from "./app.module.css"; | ||
import { Breadcrumb } from "./breadcrumb"; | ||
import { Header } from "./header"; | ||
import { Footer } from "./footer"; | ||
import { Outlet, Link } from 'react-router-dom'; | ||
import style from './app.module.css'; | ||
import { Breadcrumb } from './breadcrumb'; | ||
import { Header } from './header'; | ||
import { Footer } from './footer'; | ||
|
||
export const App = () => { | ||
return ( | ||
<div> | ||
<Header /> | ||
<main> | ||
<Breadcrumb /> | ||
<Outlet /> | ||
</main> | ||
<Footer /> | ||
</div> | ||
); | ||
return ( | ||
<div> | ||
<Header /> | ||
<main> | ||
<Breadcrumb /> | ||
<Outlet /> | ||
</main> | ||
<Footer /> | ||
</div> | ||
); | ||
}; | ||
|
||
const HalfWidthSection : React.FC<React.PropsWithChildren> = ({ children }) => { | ||
return <section className={style.halfWidthSection}>{children}</section>; | ||
const HalfWidthSection: React.FC<React.PropsWithChildren> = ({ children }) => { | ||
return <section className={style.halfWidthSection}>{children}</section>; | ||
}; | ||
|
||
export const MainPage = () => { | ||
return ( | ||
<> | ||
<h2> Capra sine fagradarer </h2> | ||
<HalfWidthSection> | ||
<Link to="/technical-radar/">Teknisk radar</Link> | ||
</HalfWidthSection> | ||
<HalfWidthSection> | ||
<Link to="/tech-leader-radar/">Teknologiledelse radar</Link> | ||
</HalfWidthSection> | ||
</> | ||
); | ||
return ( | ||
<> | ||
<h2> Capra sine fagradarer </h2> | ||
<HalfWidthSection> | ||
<Link to="/technical-radar/">Teknisk radar</Link> | ||
</HalfWidthSection> | ||
<HalfWidthSection> | ||
<Link to="/tech-leader-radar/">Teknologiledelse radar</Link> | ||
</HalfWidthSection> | ||
</> | ||
); | ||
}; |
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,18 +1,18 @@ | ||
.breadcrumb { | ||
list-style-type: none; | ||
margin: 0; | ||
padding: 0; | ||
list-style-type: none; | ||
margin: 0; | ||
padding: 0; | ||
display: flex; | ||
gap: 0.3rem; | ||
font-size: 0.9rem; | ||
} | ||
|
||
.breadcrumb > * + *::before { | ||
content:"\A"; | ||
width:0.5em; | ||
height:0.5em; | ||
border-radius:50%; | ||
background: #4a4a4a; | ||
display:inline-block; | ||
margin:0 0.4rem; | ||
content: "\A"; | ||
width: 0.5em; | ||
height: 0.5em; | ||
border-radius: 50%; | ||
background: #4a4a4a; | ||
display: inline-block; | ||
margin: 0 0.4rem; | ||
} |
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,19 +1,19 @@ | ||
import style from "./breadcrumb.module.css"; | ||
import { useMatches } from "react-router-dom"; | ||
import style from './breadcrumb.module.css'; | ||
import { useMatches } from 'react-router-dom'; | ||
|
||
export const Breadcrumb = () => { | ||
const matches = useMatches(); | ||
const crumbs = (matches as { handle: { crumb?: Function }}[]) | ||
.filter((match) => typeof match.handle?.crumb === 'function') | ||
.map((match) => (match.handle as any).crumb); | ||
const matches = useMatches(); | ||
const crumbs = (matches as { handle: { crumb?: Function } }[]) | ||
.filter((match) => typeof match.handle?.crumb === 'function') | ||
.map((match) => (match.handle as any).crumb); | ||
|
||
return ( | ||
<ol className={style.breadcrumb}> | ||
{crumbs.map((Crumb, index) => ( | ||
<li key={index}> | ||
return ( | ||
<ol className={style.breadcrumb}> | ||
{crumbs.map((Crumb, index) => ( | ||
<li key={index}> | ||
<Crumb /> | ||
</li> | ||
))} | ||
</ol> | ||
); | ||
))} | ||
</ol> | ||
); | ||
}; |
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,13 +1,13 @@ | ||
import style from "./app.module.css"; | ||
import Logo from "./logo"; | ||
import style from './app.module.css'; | ||
import Logo from './logo'; | ||
|
||
export const Footer = () => { | ||
return ( | ||
<footer className={style.footer}> | ||
<Logo /> | ||
<div> | ||
<a href="https://capraconsulting.no">Tilbake til capraconsulting.no</a> | ||
</div> | ||
</footer> | ||
); | ||
return ( | ||
<footer className={style.footer}> | ||
<Logo /> | ||
<div> | ||
<a href="https://capraconsulting.no">Tilbake til capraconsulting.no</a> | ||
</div> | ||
</footer> | ||
); | ||
}; |
Oops, something went wrong.