-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(storefront): add banner about version on next site (#2346)
resolves #2344
- Loading branch information
Showing
6 changed files
with
29 additions
and
2 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 |
---|---|---|
|
@@ -61,7 +61,7 @@ | |
|
||
.cluster { | ||
position: absolute; | ||
z-index: 0; | ||
z-index: 3; | ||
} | ||
|
||
.cluster1, | ||
|
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
8 changes: 8 additions & 0 deletions
8
apps/storefront/components/VersionBanner/VersionBanner.module.css
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,8 @@ | ||
.banner { | ||
background: var(--ds-color-brand2-surface-hover); | ||
color: var(--ds-color-neutral-text-default); | ||
display: grid; | ||
place-items: center; | ||
width: 100%; | ||
height: var(--ds-sizing-12); | ||
} |
16 changes: 16 additions & 0 deletions
16
apps/storefront/components/VersionBanner/VersionBanner.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,16 @@ | ||
import cl from 'clsx/lite'; | ||
import React from 'react'; | ||
import classes from './VersionBanner.module.css'; | ||
|
||
function VersionBanner() { | ||
return ( | ||
<a | ||
href='https://v0.designsystemet.no' | ||
className={cl(classes.banner, 'ds-focus')} | ||
> | ||
Gå til dokumentasjon for v0.63 | ||
</a> | ||
); | ||
} | ||
|
||
export { VersionBanner }; |
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