diff --git a/app.vue b/app.vue index 75c910a..b42a5b7 100644 --- a/app.vue +++ b/app.vue @@ -1,6 +1,8 @@ \ No newline at end of file diff --git a/pages/newsOrgAbout/[slug].vue b/pages/newsOrgAbout/[slug].vue index e466499..895c8c4 100644 --- a/pages/newsOrgAbout/[slug].vue +++ b/pages/newsOrgAbout/[slug].vue @@ -26,6 +26,20 @@ const { }, }); +const { + data: fetchOtherData, + pending: fetchOtherDataPending, + error: fetchOtherDataError, +} = useFetch("/api/getData/fetchSidebarData", { + method: "POST", + headers: { + "Content-Type": "application/json" + }, + body: { + lang: locale, + } +}) + watchEffect(() => { loading.value = pending.value; }); @@ -46,10 +60,10 @@ onMounted(() => { import { GlobeAltIcon } from "@heroicons/vue/24/outline"; diff --git a/pages/newsOrgs.vue b/pages/newsOrgs.vue new file mode 100644 index 0000000..27e0f69 --- /dev/null +++ b/pages/newsOrgs.vue @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/server/api/getData/fetchSidebarData.ts b/server/api/getData/fetchSidebarData.ts new file mode 100644 index 0000000..62f1116 --- /dev/null +++ b/server/api/getData/fetchSidebarData.ts @@ -0,0 +1,13 @@ +export default defineEventHandler(async (event) => { + const body = await readBody(event); + return { + 0: { + id: "1", + image: "whatever", + tags: [], + title: "三立新聞", + lean: "left", + score: "40" + } + }; +}); diff --git a/styles/main.css b/styles/main.css index ad8e690..81aefe9 100644 --- a/styles/main.css +++ b/styles/main.css @@ -9,4 +9,16 @@ body { @apply bg-black m-0 p-0 min-h-screen text-white; } + html,body { + font-family: 'Noto Sans TC Variable', "Fira Sans", sans-serif; + } } + +/* noto-sans-tc-chinese-traditional-wght-normal */ +@font-face { + font-family: 'Noto Sans TC Variable'; + font-style: normal; + font-display: auto; + font-weight: 100 900; + src: url(@fontsource-variable/noto-sans-tc/files/noto-sans-tc-chinese-traditional-wght-normal.woff2) format('woff2-variations'); +} \ No newline at end of file