Update features
This commit is contained in:
parent
f66f052d7e
commit
4d7d15c3c7
34 changed files with 482 additions and 238 deletions
15
src/page/basics/preview/preview.html.ts
Normal file
15
src/page/basics/preview/preview.html.ts
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import './preview.scss';
|
||||
import play from '../../../static/icons/play-button.svg';
|
||||
import loading from '../../../static/icons/loading.svg';
|
||||
import { html } from '../../../types/html';
|
||||
|
||||
export const generate = ({ alt }: { alt: string }): html => `
|
||||
<div class="preview">
|
||||
<img image-viewer-ignore class="poster" />
|
||||
<div class="overlay">
|
||||
<iframe title="${alt}" height=300 allowfullscreen loading="lazy"></iframe>
|
||||
<div class="loading">${loading}</div>
|
||||
<div class="load-button">${play}</div>
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
Loading…
Add table
Add a link
Reference in a new issue