Remove "framework"

This commit is contained in:
schmelczerandras 2020-11-17 20:52:59 +01:00
parent b45bdb18a0
commit dc86d30eb2
72 changed files with 359 additions and 333 deletions

1
src/types/html.ts Normal file
View file

@ -0,0 +1 @@
export type html = string;

48
src/types/portfolio.ts Normal file
View 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>;

View 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
View file

@ -0,0 +1 @@
export type url = string;