39 lines
1.5 KiB
Vue
39 lines
1.5 KiB
Vue
<template>
|
|
<section id="work" class="px-6 py-28 md:px-10 md:py-40">
|
|
<div class="mx-auto max-w-[1500px]">
|
|
<SectionTag index="۰۳" :title="data.tag" right="۱۴۰۲ — ۱۴۰۴" />
|
|
<div class="mt-16 grid gap-6 md:grid-cols-2">
|
|
<article
|
|
v-for="p in data.items"
|
|
:key="p.n"
|
|
class="group relative overflow-hidden border border-white/[0.07] bg-coal p-6 transition-colors hover:border-volt/30 md:p-8"
|
|
>
|
|
<div
|
|
class="mb-16 aspect-[16/10] bg-gradient-to-br from-smoke to-ink bg-cover bg-center transition-transform duration-700 group-hover:scale-[1.03]"
|
|
:style="p.imageUrl ? { backgroundImage: `url(${p.imageUrl})` } : {}"
|
|
/>
|
|
<div class="flex items-end justify-between gap-4">
|
|
<div>
|
|
<p class="font-mono text-[10px] tracking-[0.2em] text-ash">{{ p.n }} / {{ p.year }}</p>
|
|
<h3 class="mt-2 font-display text-2xl font-extrabold tracking-[-0.02em] transition-colors group-hover:text-volt md:text-3xl">
|
|
{{ p.title }}
|
|
</h3>
|
|
<p class="mt-2 text-sm text-ash">{{ p.cat }}</p>
|
|
</div>
|
|
<span class="text-volt transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5">↗</span>
|
|
</div>
|
|
</article>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
defineProps<{
|
|
data: {
|
|
tag: string;
|
|
items: Array<{ n: string; title: string; cat: string; year: string; imageUrl?: string }>;
|
|
};
|
|
}>();
|
|
</script>
|