feat(WEB-38, WEB-9, WEB-19): add static page for sponsoring, add Header and add Footer

This commit is contained in:
Christel Westerberg
2024-01-12 16:03:50 +01:00
parent 0a208923f8
commit bb90e2bf50
69 changed files with 3739 additions and 27 deletions

View File

@@ -0,0 +1,3 @@
export type HeaderProps = {
pathname: string
}

View File

@@ -0,0 +1,9 @@
export type LanguageSwitcherLink = {
href: string
title: string
}
export type LanguageSwitcherProps = {
currentLanguage: string
links: LanguageSwitcherLink[]
}

14
types/lang.ts Normal file
View File

@@ -0,0 +1,14 @@
export const langEnum = {
en: "en",
sv: "sv",
no: "no",
fi: "fi",
da: "da",
de: "de",
};
export type Lang = keyof typeof langEnum;
export type LangProps<T = {}> = T & {
lang: Lang
}

5
types/params.ts Normal file
View File

@@ -0,0 +1,5 @@
import { Lang } from "./lang";
export type Params<T = {}> = T & { params: { lang: Lang } };
export type SearchParams<T = {}> = T & { searchParams: { [key: string]: string } };