feat(WEB-38, WEB-9, WEB-19): add static page for sponsoring, add Header and add Footer
This commit is contained in:
58
app/[lang]/layout.tsx
Normal file
58
app/[lang]/layout.tsx
Normal file
@@ -0,0 +1,58 @@
|
||||
import "../core.css";
|
||||
import "../scandic.css";
|
||||
|
||||
import Footer from "@/components/Current/Footer";
|
||||
import LangPopup from "@/components/Current/LangPopup";
|
||||
import Script from "next/script";
|
||||
import SkipToMainContent from "@/components/SkipToMainContent";
|
||||
|
||||
import type { Metadata } from "next";
|
||||
import type { Params } from "@/types/params";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
description: "New web",
|
||||
title: "Scandic Hotels New Web",
|
||||
};
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
params,
|
||||
}: React.PropsWithChildren<Params>) {
|
||||
return (
|
||||
<html lang={params.lang}>
|
||||
<head>
|
||||
<Script
|
||||
src="https://www.scandichotels.com/Static/dist/js/head.js?85c84c9e24ae8da3e7af"
|
||||
data-cookieconsent="ignore"
|
||||
/>
|
||||
<Script
|
||||
src="https://www.scandichotels.com/Static/dist/js/inline.js?00133e5a37de35c51a5d"
|
||||
data-cookieconsent="ignore"
|
||||
/>
|
||||
<Script
|
||||
src="https://www.scandichotels.com/Static/dist/js/ng/polyfills.js?1701356813379"
|
||||
data-cookieconsent="ignore"
|
||||
/>
|
||||
<Script
|
||||
src="https://www.scandichotels.com/Static/dist/js/ng/runtime.js?1701356813379"
|
||||
data-cookieconsent="ignore"
|
||||
/>
|
||||
<Script
|
||||
src="https://www.scandichotels.com/Static/dist/js/ng/main.js?1701356813379"
|
||||
data-cookieconsent="ignore"
|
||||
/>
|
||||
<Script
|
||||
src="https://www.scandichotels.com/Static/dist/js/main-ng.js?2b211af0a0699f1ffcec"
|
||||
data-cookieconsent="ignore"
|
||||
strategy="lazyOnload"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<LangPopup lang={params.lang} />
|
||||
<SkipToMainContent lang={params.lang} />
|
||||
{children}
|
||||
<Footer lang={params.lang} />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user