Make WebP the default image format
This commit is contained in:
parent
890133d10e
commit
94faabca34
23 changed files with 65 additions and 72 deletions
|
|
@ -8,12 +8,12 @@ import { PageThemeSwitcher } from './theme-switcher/theme-switcher';
|
|||
export class PageHeader extends PageElement {
|
||||
public constructor({
|
||||
name,
|
||||
imageWebP,
|
||||
image,
|
||||
imageAltText,
|
||||
about,
|
||||
}: {
|
||||
name: string;
|
||||
imageWebP: ResponsiveImage;
|
||||
image: ResponsiveImage;
|
||||
imageAltText: string;
|
||||
about: Array<string>;
|
||||
}) {
|
||||
|
|
@ -23,7 +23,7 @@ export class PageHeader extends PageElement {
|
|||
name,
|
||||
about,
|
||||
photo: Image({
|
||||
imageWebP,
|
||||
image,
|
||||
alt: imageAltText,
|
||||
imageScreenRatio: 0.2,
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue