Skip to content

Commit

Permalink
docs: make showcase image clickable (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
gokulkrishh and antfu committed May 6, 2021
1 parent 3cb4f75 commit 18e3bab
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions docs/.vitepress/theme/components/ShowCaseInfo.vue
Expand Up @@ -9,11 +9,15 @@ defineProps<{

<template>
<div>
<div
class="block mb-1.5 w-full overflow-hidden relative aspect-9/16"
border="~ rounded gray-400 opacity-20"
>
<img :src="info.cover" class="absolute top-0 bottom-0 left-0 right-0" />
<div class="block mb-1.5 w-full relative aspect-9/16">
<a
class="absolute top-0 bottom-0 left-0 right-0 overflow-hidden"
border="~ rounded gray-400 opacity-20"
:href="info.slidesLink"
target="_blank"
>
<img :src="info.cover" />
</a>
</div>
<div class="font-bold">
{{ info.title }}
Expand Down

0 comments on commit 18e3bab

Please sign in to comment.