personal-site/pages/index.vue

34 lines
983 B
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';
2025-01-03 18:30:06 -08:00
import MetaSet from '~/components/MetaSet.vue';
2024-12-21 19:11:09 -08:00
2024-12-22 12:22:47 -08:00
const aboutMe = ref("");
2024-12-21 19:11:09 -08:00
2024-12-22 12:22:47 -08:00
fetch("/about_me.md")
.then((res) => res.text())
.then((data) => {
console.log(data);
aboutMe.value = data;
});
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-03 21:50:12 -08:00
<MetaSet title="Home" description="TheFelidae's personal site :3" 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-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>