personal-site/pages/index.vue

31 lines
1.1 KiB
Vue
Raw Normal View History

2024-12-21 19:11:09 -08:00
<script setup>
import { ref } from 'vue';
2024-12-22 12:22:47 -08:00
import Markdown from '~/components/Markdown.vue';
2025-01-01 00:26:10 -08:00
import Card from '~/components/Card.vue';
2024-12-21 19:11:09 -08:00
2025-01-04 02:47:38 -08:00
const aboutMe = ref('');
const test = ref('');
2024-12-21 19:11:09 -08:00
2025-01-04 02:47:38 -08:00
const { data } = await useAsyncData('about_me', () => queryContent('/about_me').findOne())
2024-12-21 19:11:09 -08:00
</script>
<template>
2024-12-22 13:21:05 -08:00
<div class="relative flex w-full justify-center text-white">
2025-01-04 02:47:38 -08:00
<!-- Metadata -->
2025-01-04 11:45:02 -08:00
<MetaSet title="Home" description="TheFelidae's personal site" background="https://avatars.githubusercontent.com/u/94077364?v=4"
2025-01-04 02:47:38 -08:00
tags="home, personal, author" />
2024-12-22 12:22:47 -08:00
<div class="mt-8 flex-col text-center">
<div class="flex justify-center">
2025-01-03 21:50:12 -08:00
<div id="PFP" class="shadow-md rounded-full shadow-highlight">
2024-12-22 13:21:05 -08:00
<img class="transition-all w-40 h-40 md:w-56 md:h-56 rounded-full"
2024-12-22 12:22:47 -08:00
src="https://avatars.githubusercontent.com/u/94077364?v=4" alt="User PFP" />
</div>
</div>
2025-01-01 00:26:10 -08:00
<Card class="max-w-4xl mt-4 max-md:w-screen">
2025-01-03 21:50:12 -08:00
<Markdown :input="aboutMe" type="markdown"></Markdown>
2025-01-04 02:47:38 -08:00
<ContentRendererMarkdown :value="data" class="md-content" />
2025-01-01 00:26:10 -08:00
</Card>
2024-12-22 12:22:47 -08:00
</div>
</div>
2025-01-03 21:50:12 -08:00
</template>