base structure and display

This commit is contained in:
Julian Krauser 2024-11-01 14:15:09 +01:00
parent de049e9125
commit 9d96e3a6dc
22 changed files with 1210 additions and 15 deletions

View file

@ -0,0 +1,8 @@
import type FooterLink from "./footerLink";
export default interface Footer {
id: number;
copyright: string;
designed_developed_by: string;
links: FooterLink[];
}

View file

@ -0,0 +1,6 @@
export default interface FooterLink {
id: number;
text: string;
URL: string;
target: string;
}

21
types/component/image.ts Normal file
View file

@ -0,0 +1,21 @@
export default interface Image {
id: number;
documentId: string;
name: string;
alternativeText: string | null;
caption: string | null;
width: number;
height: number;
formats: any;
hash: string;
ext: string;
mime: string;
size: number;
url: string;
previewUrl: string | null;
provider: string;
provider_metadata: any;
createdAt: string;
updatedAt: string;
publishedAt: string;
}

View file

@ -0,0 +1,8 @@
import type Image from "./image";
import type NavbarItem from "./navbarItem";
export default interface Navbar {
id: number;
logo: Image;
navbar_items: NavbarItem[];
}

View file

@ -0,0 +1,10 @@
import type NavbarSubItem from "./navbarSubItem";
export default interface NavbarItem {
id: number;
name: string;
URL: string;
default_active_child: string;
page: any;
navbar_sub_items: NavbarSubItem[];
}

View file

@ -0,0 +1,8 @@
import type Page from "../collection/page";
export default interface NavbarSubItem {
id: number;
name: string;
URL: string;
page: Page | null;
}