880bc7a38a
* perf: use a separate icons.svg file This splits icons into inline and non-inline. The inline ones are high priority; the rest go in an icons.svg file. * create SvgIcon.html * determine inlined svgs at build time
37 lines
700 B
HTML
37 lines
700 B
HTML
<div class="play-video-icon {className || ''}">
|
|
<SvgIcon className="play-video-icon-svg" href="#fa-play-circle" />
|
|
</div>
|
|
<style>
|
|
.play-video-icon {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 40;
|
|
pointer-events: none;
|
|
}
|
|
:global(.play-video-icon-svg) {
|
|
width: 72px;
|
|
height: 72px;
|
|
fill: var(--mask-svg-fill);
|
|
border-radius: 100%;
|
|
background: var(--mask-opaque-bg);
|
|
}
|
|
</style>
|
|
<script>
|
|
import SvgIcon from './SvgIcon.html'
|
|
|
|
export default {
|
|
data: () => ({
|
|
className: void 0
|
|
}),
|
|
components: {
|
|
SvgIcon
|
|
}
|
|
}
|
|
</script>
|