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 | 7x 1x 2x 2x | <template>
<div class="relative h-32">
<img
v-for="(item, index) in fanned"
:key="item.id"
:src="item.screenshot"
alt=""
decoding="async"
class="absolute inset-x-6 top-2 aspect-video border border-default bg-default object-cover object-top shadow-md"
:class="FAN[index]"
/>
</div>
</template>
<script setup lang="ts">
import type { SiteData } from "~/types/SiteData";
interface Props {
benchmarks: readonly SiteData["benchmarks"][number][];
}
const { benchmarks } = defineProps<Props>();
const FAN = ["-translate-x-4 -rotate-6", "translate-x-4 rotate-6", "translate-y-2"] as const;
const fanned = computed(() => benchmarks.slice(0, FAN.length));
</script>
|