personal-site/pages/index.vue

44 lines
1.2 KiB
Vue
Raw Normal View History

2024-12-21 19:11:09 -08:00
<script setup>
import { ref } from 'vue';
import markdownit from 'markdown-it'
import PostCard from '../components/PostCard.vue';
2024-12-22 12:22:47 -08:00
import configured_markdown from '~/assets/markdown_conf';
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 * as siteConfig from "../assets/config.ts";
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>
2025-01-03 18:30:06 -08:00
<MetaSet title="Home" description="TheFelidae's personal site :3" tags="home, personal, author"/>
2024-12-22 13:21:05 -08:00
<div class="relative flex w-full justify-center text-white">
2024-12-22 12:22:47 -08:00
<div class="mt-8 flex-col text-center">
<div class="flex justify-center">
2025-01-01 00:26:10 -08:00
<div id="PFP" class="p-1 shadow-md rounded-full bg-pink-500">
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">
2024-12-22 12:22:47 -08:00
<Markdown :text="aboutMe"></Markdown>
2025-01-01 00:26:10 -08:00
</Card>
2024-12-22 12:22:47 -08:00
</div>
</div>
2024-12-21 19:11:09 -08:00
</template>
2025-01-01 00:26:10 -08:00
<style scoped>
#PFP {
box-shadow: 0 0 10px 0 pink;
}
</style>