src/components/page/ProjectCard.astro 698 B raw
1
---
2
const { content, index } = Astro.props;
3
import { Image } from "astro:assets";
4
---
5
6
<div
7
	style={{ borderWidth: "1px" }}
8
	class="flex cursor-pointer flex-col items-start justify-start gap-2 overflow-hidden rounded-lg border-accent-2 transition-all ease-in-out hover:border-accent"
9
>
10
	<a href={content.link} target="_blank">
11
    <Image height="800" width="1200" src={content.image} alt={content.title} loading={index < 2 ? "eager" : "lazy"} />
12
		<div class="flex flex-col gap-2 p-4">
13
			<h2 class="text-2xl font-bold">{content.title}</h2>
14
			<p class="">
15
				{content.description}
16
			</p>
17
			<div class="flex gap-2">
18
				{content.tags.map((tag) => <p>#{tag}</p>)}
19
			</div>
20
		</div>
21
	</a>
22
</div>