This commit is contained in:
Andras Schmelczer 2022-09-25 21:24:32 +02:00
parent b6aef2bcf8
commit 33051841f5
No known key found for this signature in database
GPG key ID: 0EA1BC97D0AB076E
10 changed files with 32 additions and 39 deletions

View file

@ -1,4 +1,3 @@
import { createElement } from '../../helper/create-element';
import { ResponsiveImage } from '../../types/responsive-image';
import { Image } from '../image-viewer/image/image.html';
import { PageElement } from '../page-element';
@ -18,16 +17,14 @@ export class Header extends PageElement {
about: Array<string>;
}) {
super(
createElement(
generate({
name,
about,
photo: Image({
image,
alt: imageAltText,
}),
})
)
generate({
name,
about,
photo: Image({
image,
alt: imageAltText,
}),
})
);
this.attachElement(new ThemeSwitcher());
}