Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | 4x 4x 2x 4x 4x 4x 4x | <template>
<UContainer as="figure" class="pb-16">
<img
v-bind="screenshot"
sizes="(min-width: 72rem) 72rem, 100vw"
fetchpriority="high"
:alt="work.screenshot.alt"
:style="carriedShot"
width="1440"
height="900"
class="w-full border border-default"
/>
<figcaption
class="mt-3 flex flex-col gap-1 text-sm text-muted md:flex-row md:justify-between"
>
<span>{{ work.screenshot.caption }}</span>
<ULink :to="live" class="text-primary underline underline-offset-4">
{{ work.live.label }}
</ULink>
</figcaption>
</UContainer>
</template>
<script setup lang="ts">
import type { WorkCase } from "~/types/WorkCase";
interface Props {
work: WorkCase;
}
const { work } = defineProps<Props>();
const screenshot = computed(() => workScreenshot(work));
const carriedShot = computed(() => carried(`work-shot-${work.slug}`));
const live = computed(() => portalUrl(work.live.href));
</script>
|