From 803744ea9e535d7ae57a064dbf0a5b9d585e2e85 Mon Sep 17 00:00:00 2001 From: Tobias Barsnes Date: Thu, 29 Aug 2024 12:25:18 +0200 Subject: [PATCH] chore(storefront): add banner about version on next site (#2346) resolves #2344 --- .../storefront/app/(frontpage)/layout.module.css | 2 +- apps/storefront/app/(frontpage)/layout.tsx | 2 +- apps/storefront/app/layout.tsx | 2 ++ .../VersionBanner/VersionBanner.module.css | 8 ++++++++ .../components/VersionBanner/VersionBanner.tsx | 16 ++++++++++++++++ apps/storefront/components/index.ts | 1 + 6 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 apps/storefront/components/VersionBanner/VersionBanner.module.css create mode 100644 apps/storefront/components/VersionBanner/VersionBanner.tsx diff --git a/apps/storefront/app/(frontpage)/layout.module.css b/apps/storefront/app/(frontpage)/layout.module.css index 6b7d3bcc8f..197d22131f 100644 --- a/apps/storefront/app/(frontpage)/layout.module.css +++ b/apps/storefront/app/(frontpage)/layout.module.css @@ -61,7 +61,7 @@ .cluster { position: absolute; - z-index: 0; + z-index: 3; } .cluster1, diff --git a/apps/storefront/app/(frontpage)/layout.tsx b/apps/storefront/app/(frontpage)/layout.tsx index e6430f2be7..f0fdf770f9 100644 --- a/apps/storefront/app/(frontpage)/layout.tsx +++ b/apps/storefront/app/(frontpage)/layout.tsx @@ -74,7 +74,7 @@ const Layout = ({ children }: { children: React.ReactNode }) => { >
-
Beta
+
Next
Designsystemet hjelper deg å lage gode digitale tjenester diff --git a/apps/storefront/app/layout.tsx b/apps/storefront/app/layout.tsx index fb843812cd..bf36a8453e 100644 --- a/apps/storefront/app/layout.tsx +++ b/apps/storefront/app/layout.tsx @@ -6,6 +6,7 @@ import { Header } from '@repo/components'; import { Analytics } from '@vercel/analytics/react'; import type { Metadata } from 'next'; +import { VersionBanner } from '@components'; import { Footer } from '../components/Footer/Footer'; export const metadata: Metadata = { @@ -57,6 +58,7 @@ export default function RootLayout({
+
{children}