Skip to content

Commit

Permalink
Remove tooltips for fullscreen portfolio videos.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmurray8 committed Apr 19, 2024
1 parent 655bb98 commit 100698b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion components/PortfolioPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<OgMeta :title="pageTitle" :description="description" />
<SchemaOrgWebPage :name="pageTitle" />
<h1 class="mb-8 text-center text-4xl">{{ heading }}</h1>
<div class="mx-0 mb-16 mt-16 grid grid-cols-1 gap-8 sm:mx-8 xl:grid-cols-2">
<div v-if="!hideAllVideos" class="mx-0 mb-16 mt-16 grid grid-cols-1 gap-8 sm:mx-8 xl:grid-cols-2">
<section v-for="item in videos" :key="item.id" class="w-full">
<LazyVideo :video="item.videoInfo" :video-title="item.title" />
</section>
Expand All @@ -23,5 +23,17 @@
}[];
}
const hideAllVideos = ref(false);
defineProps<Portfolio>();
onMounted(() => {
window.addEventListener("fullscreenchange", (event: Event | null) => {
if (event) {
hideAllVidoes.value = true;
} else {
hideAllVidoes.value = false;
}
});
});
</script>

0 comments on commit 100698b

Please sign in to comment.