2024-12-23 21:18:55 +00:00
|
|
|
---
|
|
|
|
import { getCollection } from "astro:content";
|
|
|
|
import { Icon } from "astro-icon/components";
|
|
|
|
|
|
|
|
const collection = await getCollection("skills");
|
|
|
|
|
|
|
|
const skills = await Promise.all(
|
|
|
|
collection.map(async (item) => {
|
|
|
|
const { Content } = await item.render();
|
|
|
|
return { ...item, Content };
|
|
|
|
}),
|
|
|
|
);
|
|
|
|
---
|
|
|
|
|
|
|
|
<ul class="flex max-w-full list-none flex-wrap gap-4 px-0">
|
|
|
|
{
|
|
|
|
skills.map((entry) => (
|
2025-01-13 14:48:14 +00:00
|
|
|
<li class="group flex items-center gap-2 rounded border border-tertiary p-2 text-tertiary transition-colors hover:border-accent hover:text-accent">
|
2024-12-23 21:18:55 +00:00
|
|
|
<Icon
|
|
|
|
name={entry.data.icon}
|
|
|
|
title={entry.data.title}
|
2025-01-13 14:48:14 +00:00
|
|
|
class="h-6 w-auto text-tertiary transition-colors group-hover:text-accent"
|
2024-12-23 21:18:55 +00:00
|
|
|
/>
|
2025-01-13 14:48:14 +00:00
|
|
|
<p class="m-0 cursor-default">{entry.data.title}</p>
|
2024-12-23 21:18:55 +00:00
|
|
|
</li>
|
|
|
|
))
|
|
|
|
}
|
|
|
|
</ul>
|