mirror of
https://github.com/hyprwm/hyprland-website.git
synced 2024-11-17 10:55:58 +01:00
improve preview slice
This commit is contained in:
parent
6417ed647e
commit
e61b27c376
1 changed files with 2 additions and 12 deletions
|
@ -2,10 +2,8 @@
|
|||
import { inview } from 'svelte-inview'
|
||||
import previewRice from '$lib/videos/end_4_rice_intro.mp4'
|
||||
import previewRiceThumbnail from '$lib/videos/end_4_thumbnail.webp'
|
||||
import PauseIcon from '~icons/mingcute/pause-circle-line'
|
||||
import PlayIcon from '~icons/mingcute/play-circle-line'
|
||||
import clsx from 'clsx'
|
||||
import { onMount } from 'svelte'
|
||||
import { getIsMobile } from '$lib/Helper.mjs'
|
||||
|
||||
/** @type HTMLVideoElement */
|
||||
let videoElement
|
||||
|
@ -26,14 +24,6 @@
|
|||
function makeFullscreen() {
|
||||
videoElement.requestFullscreen()
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
const isMobile = getIsMobile()
|
||||
|
||||
if (isMobile) {
|
||||
//
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<section class={$$restProps.class} class:isVisible>
|
||||
|
@ -85,7 +75,7 @@
|
|||
<div
|
||||
class="pointer-events-none absolute left-1/2 top-1/2 h-14 w-14 -translate-x-1/2 -translate-y-1/2 rounded-full opacity-80 hover:opacity-100"
|
||||
>
|
||||
<PauseIcon class="h-full w-full" />
|
||||
<PlayIcon class="h-full w-full" />
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue