first version

This commit is contained in:
2023-11-12 10:02:26 +00:00
parent b107392907
commit 92ca030e6c
33 changed files with 1005 additions and 444 deletions

114
types/global.d.ts vendored
View File

@@ -10,9 +10,14 @@ interface Pages {
interface Page {
path: string
active: boolean
type: "page" | "teamMembers" | "jobOffers"
pageTitle: string
personType: string
personPreview: PersonPreview
teaser: teaserHomepage
sectionHomepage: Row
rows: outerRow[]
jobOffer: jobOffer
rows: Row[]
id: string
}
@@ -22,62 +27,48 @@ interface teaserHomepage {
teaserTitle: string
teaserDescription: string
}
interface outerRow {
row: Row
}
interface Row {
topTitle: string
topTitleRed: boolean
subTitle: string
topTitleUpperCase: boolean
title: string
pageTitle: string
subTitle: string
backgroundImage: string
noBottomMargin: boolean
noTopMargin: boolean
flexWrapNormal: boolean
twoToThree: boolean
columns: Column[]
backgroundImage: FileField
}
interface Column {
contentType:
| "image"
| "iconCycleSquare"
| "iconCycleCircle"
| "text"
| "infoBoard"
| "worldCard"
| "nestedCard"
| "topDown"
| "personPreview"
| "boxlist"
| "extendableBoxes"
| "textLink"
| "iconBlocks"
| "pageLinkBlocks"
| "publications"
| "networkEvents"
type Column =
| { contentType: "image"; image: string; icons: { icon: string; link: string }[] }
| { contentType: "moduleImport"; moduleImport: string }
| { contentType: "text"; text: string }
| { contentType: "infoBoard"; infoBoard: InfoBoard }
| { contentType: "nestedCard"; nestedCard: NestedCard[] }
| { contentType: "topDown"; topDown: TopDown }
| { contentType: "textLink"; textLink: TextLink }
| { contentType: "iconBlocks"; iconBlocks: IconBlock[] }
| { contentType: "networkEvents"; networkEvents: NetworkEvent[] }
| { contentType: "publications"; publications: Publication[] }
image?: FileField
icons: {
icon: FileField
link: string
}[]
iconCycleSquare?: IconCycleSquare
iconCycleCircle?: IconCycleCircle
text: string
textLink: TextLink
infoBoard: InfoBoard
worldCard: WorldCard
nestedCard: NestedCard[]
topDown: TopDown
personPreview: PersonPreview[]
boxList: BoxList
extendableBoxes: ExtendableBox[]
iconBlocks: iconBlock[]
pageLinkBlocks: pageLinkBlock[]
networkEvents: NetworkEvent[]
publications: Publication[]
interface MediaLibrary {
file: FileField
id: string
}
type Module =
| { id: string; type: "iconCycleCircle"; iconCycleCircle: IconCycleCircle }
| { id: string; type: "iconCycleSquare"; iconCycleSquare: IconCycleSquare }
| { id: string; type: "worldCard"; worldCard: WorldCard }
| { id: string; type: "chefTeam" }
| { id: string; type: "employeeTeam" }
| { id: string; type: "jobOfferLink" }
| { id: string; type: "jobOffer" }
interface Publication {
file: FileField
file: string
content: string
}
@@ -85,23 +76,15 @@ interface NetworkEvent {
beginDate: Date
endDate: Date
title: string
file: FileField
file: string
}
interface iconBlock {
icon: FileField
iconFocused: FileField
icon: string
bigText: string
smallText: string
}
interface pageLinkBlock {
name: string
rowNr: number
page: string
extendableRowNr: number
}
interface IconCycleSquare {
boxes: Box[]
}
@@ -112,14 +95,14 @@ interface IconCycleCircle {
}
interface Box {
icon: FileField
icon: string
text: string
circle: boolean
}
interface InfoBoard {
title: string
icon: FileField
icon: string
text: string
}
@@ -133,7 +116,7 @@ interface worldCardRow {
interface Card {
verticalAlignment: string
horizontalAlignment: string
image: FileField
image: string
title: string
properties: number[]
}
@@ -154,10 +137,9 @@ interface TopDownRow {
}
interface PersonPreview {
initialImage: FileField
hoverImage: FileField
initialImage: string
hoverImage: string
name: string
link: string
}
interface BoxList {
@@ -166,14 +148,14 @@ interface BoxList {
}[]
}
interface ExtendableBox {
interface jobOffer {
title: string
text: string
emailButton: boolean
emailSubject: string
}
interface FileField {
interface string {
path: string
src: string
type: string