Files
artsite/app/pages/uses.vue
2024-06-21 13:09:37 +02:00

59 lines
1.4 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
const description
= 'Software I use, gadgets I love, and other things I recommend. Heres a big list of all of my favorite stuff.'
useSeoMeta({
title: 'Things I use | Arthur Danjou',
description
})
const { data: items } = await useAsyncData('uses', () =>
queryContent('/uses').find()
)
const hardware = items.value!.filter(item => item.category === 'hardware')
const software = items.value!.filter(item => item.category === 'software')
const ide = items.value!.filter(item => item.category === 'ide')
</script>
<template>
<main>
<AppTitle
:description="description"
title="Uses"
/>
<div class="mt-12 space-y-24">
<ul class="space-y-8">
<UDivider
label="Hardware"
size="xs"
/>
<UsesItem
v-for="(item, id) in hardware"
:key="id"
:item="item"
/>
</ul>
<ul class="space-y-8">
<UDivider
label="Software"
size="xs"
/>
<UsesItem
v-for="(item, id) in software"
:key="id"
:item="item"
/>
</ul>
<ul class="space-y-8">
<UDivider
label="IDE & Font"
size="xs"
/>
<UsesItem
v-for="(item, id) in ide"
:key="id"
:item="item"
/>
</ul>
</div>
</main>
</template>