Move files and add minor fixes
This commit is contained in:
parent
6fbc15c402
commit
51c8d06569
16 changed files with 89 additions and 105 deletions
|
|
@ -1,28 +0,0 @@
|
|||
import loading from '../../../../static/icons/loading.svg';
|
||||
import play from '../../../../static/icons/play-button.svg';
|
||||
import { html } from '../../../types/html';
|
||||
import { ResponsiveImage } from '../../../types/responsive-image';
|
||||
import { Image } from '../../basics/image/image.html';
|
||||
import './preview.scss';
|
||||
|
||||
export const generate = ({
|
||||
alt,
|
||||
poster,
|
||||
}: {
|
||||
alt: string;
|
||||
poster: ResponsiveImage;
|
||||
}): html => `
|
||||
<div class="preview">
|
||||
${Image({
|
||||
image: poster,
|
||||
alt,
|
||||
container: true,
|
||||
isIgnoredByImageViewer: true,
|
||||
})}
|
||||
<div class="overlay">
|
||||
<div class="loading">${loading}</div>
|
||||
<iframe title="${alt}" allowfullscreen loading="lazy"></iframe>
|
||||
<div class="start-button">${play}</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
Loading…
Add table
Add a link
Reference in a new issue