Commit 803744e 1 parent 49af0ef commit 803744e Copy full SHA for 803744e
File tree 6 files changed +29
-2
lines changed
6 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 61
61
62
62
.cluster {
63
63
position : absolute;
64
- z-index : 0 ;
64
+ z-index : 3 ;
65
65
}
66
66
67
67
.cluster1 ,
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ const Layout = ({ children }: { children: React.ReactNode }) => {
74
74
>
75
75
< Container className = { classes . container } >
76
76
< div className = { classes . text } >
77
- < div className = { classes . betaTag } > Beta </ div >
77
+ < div className = { classes . betaTag } > Next </ div >
78
78
< Heading size = 'lg' >
79
79
Designsystemet hjelper deg å lage gode digitale tjenester
80
80
</ Heading >
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { Header } from '@repo/components';
6
6
import { Analytics } from '@vercel/analytics/react' ;
7
7
import type { Metadata } from 'next' ;
8
8
9
+ import { VersionBanner } from '@components' ;
9
10
import { Footer } from '../components/Footer/Footer' ;
10
11
11
12
export const metadata : Metadata = {
@@ -57,6 +58,7 @@ export default function RootLayout({
57
58
< html lang = 'en' >
58
59
< body >
59
60
< div className = 'root' >
61
+ < VersionBanner />
60
62
< Header menu = { menu } />
61
63
{ children }
62
64
< Footer />
Original file line number Diff line number Diff line change
1
+ .banner {
2
+ background : var (--ds-color-brand2-surface-hover );
3
+ color : var (--ds-color-neutral-text-default );
4
+ display : grid;
5
+ place-items : center;
6
+ width : 100% ;
7
+ height : var (--ds-sizing-12 );
8
+ }
Original file line number Diff line number Diff line change
1
+ import cl from 'clsx/lite' ;
2
+ import React from 'react' ;
3
+ import classes from './VersionBanner.module.css' ;
4
+
5
+ function VersionBanner ( ) {
6
+ return (
7
+ < a
8
+ href = 'https://v0.designsystemet.no'
9
+ className = { cl ( classes . banner , 'ds-focus' ) }
10
+ >
11
+ Gå til dokumentasjon for v0.63
12
+ </ a >
13
+ ) ;
14
+ }
15
+
16
+ export { VersionBanner } ;
Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ export { TokenList } from './Tokens';
17
17
export { Image } from './Image' ;
18
18
export { ComponentCard } from './ComponentCard' ;
19
19
export { GithubLink } from './GithubLink/GithubLink' ;
20
+ export { VersionBanner } from './VersionBanner/VersionBanner' ;
You can’t perform that action at this time.
0 commit comments