Remake the home page.

This commit is contained in:
yuanhau 2025-05-13 14:14:50 +08:00
parent 5a585ddf7c
commit 34a0868b26
6 changed files with 72 additions and 7 deletions

View file

@ -6,13 +6,16 @@ import Button from "~/components/ui/button/Button.vue";
const pending = ref();
try {
const { data, pending: isPending } = await useFetch("/api/rss/google");
const { data, pending } = await useFetch("/api/rss/google");
ffeed.value = data.value;
} catch (error) {
console.error("Error:", error);
}
</script>
<template>
<div v-if="!ffeed">
Loading...
</div>
<div
v-for="item in ffeed"
class="justify-center align-center text-center p-4 border border-black rounded-lg m-4"