Remove "framework"
This commit is contained in:
parent
b45bdb18a0
commit
dc86d30eb2
72 changed files with 359 additions and 333 deletions
1
src/types/html.ts
Normal file
1
src/types/html.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export type html = string;
|
||||
48
src/types/portfolio.ts
Normal file
48
src/types/portfolio.ts
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
import { Video } from '../page/basics/video/video';
|
||||
import { Text } from '../page/basics/text/text';
|
||||
import { Image } from '../page/basics/image/image';
|
||||
import { Anchor } from '../page/basics/anchor/anchor';
|
||||
import { PageElement } from '../page/page-element';
|
||||
import { url } from './url';
|
||||
|
||||
export interface Portfolio {
|
||||
header: Header;
|
||||
timeline: Timeline;
|
||||
footer: Footer;
|
||||
}
|
||||
|
||||
export interface Header {
|
||||
name: string;
|
||||
picture: Image;
|
||||
about: Content;
|
||||
}
|
||||
|
||||
export interface Timeline {
|
||||
showMoreText: string;
|
||||
showLessText: string;
|
||||
elements: Array<TimelineElement>;
|
||||
}
|
||||
|
||||
export interface TimelineElement {
|
||||
title: string;
|
||||
date: string;
|
||||
figure: Image | Video;
|
||||
description: Text;
|
||||
more?: Content;
|
||||
link?: Anchor;
|
||||
}
|
||||
|
||||
export interface Footer {
|
||||
title: string;
|
||||
email: string;
|
||||
curiumVitaes: Array<CV>;
|
||||
lastEditText: string;
|
||||
lastEdit: Date;
|
||||
}
|
||||
|
||||
export interface CV {
|
||||
name: string;
|
||||
url: url;
|
||||
}
|
||||
|
||||
export type Content = Array<PageElement>;
|
||||
14
src/types/responsive-image.ts
Normal file
14
src/types/responsive-image.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { url } from './url';
|
||||
|
||||
export type ResponsiveImage = {
|
||||
srcSet: string;
|
||||
src: url;
|
||||
placeholder: string;
|
||||
width: number;
|
||||
height: number;
|
||||
images: Array<{
|
||||
path: url;
|
||||
width: number;
|
||||
height: number;
|
||||
}>;
|
||||
};
|
||||
1
src/types/url.ts
Normal file
1
src/types/url.ts
Normal file
|
|
@ -0,0 +1 @@
|
|||
export type url = string;
|
||||
Loading…
Add table
Add a link
Reference in a new issue