-
-
BlindSpec
+
BlindSpec
-
-
+ {{ t("nav.home") }}{{ t("nav.home") }}
-
{{ t("nav.dailybriefing") }}{{ t("nav.dailybriefing") }}
+
\ No newline at end of file
diff --git a/i18n/locales/en.json b/i18n/locales/en.json
index 17981df..f81748c 100644
--- a/i18n/locales/en.json
+++ b/i18n/locales/en.json
@@ -6,6 +6,15 @@
"home": "Home",
"dailybriefing": "Daily Briefing"
},
+ "home": {
+ "nonMoving": "Hi! This is your ",
+ "moving": {
+ "newsPlatform": "News Platform",
+ "miniWikipedia": "Mini Wikipedia",
+ "newsComparePlatform": "news comparison platform"
+ },
+ "startusing": "Let's Start!"
+ },
"dailybriefing": "Daily Briefing",
"Welcome": "Welcome",
"loading": "Loading..."
diff --git a/i18n/locales/zh-tw.json b/i18n/locales/zh-tw.json
index c0aaf52..f4f52a2 100644
--- a/i18n/locales/zh-tw.json
+++ b/i18n/locales/zh-tw.json
@@ -6,6 +6,15 @@
"home": "首頁",
"dailybriefing": "今日報導"
},
+ "home": {
+ "nonMoving": "嗨!這是你的",
+ "moving": {
+ "newsPlatform": "新聞平台",
+ "miniWikipedia": "米你維基百科",
+ "newsComparePlatform": "新聞觀點比對平台"
+ },
+ "startusing": "開始使用!"
+ },
"dailybriefing": "今日報導",
"Welcome": "歡迎",
"loading": "載入中..."
diff --git a/package.json b/package.json
index adb7986..f938480 100644
--- a/package.json
+++ b/package.json
@@ -11,6 +11,9 @@
"prettier": "prettier --write ."
},
"dependencies": {
+ "@fontsource-variable/noto-sans-tc": "^5.2.5",
+ "@fontsource/fira-code": "^5.2.6",
+ "@fontsource/fira-sans": "^5.2.5",
"@heroicons/vue": "^2.2.0",
"@nuxt/image": "1.10.0",
"@nuxtjs/i18n": "9.5.4",
diff --git a/pages/dailybriefing.vue b/pages/dailybriefing.vue
new file mode 100644
index 0000000..27e0f69
--- /dev/null
+++ b/pages/dailybriefing.vue
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file
diff --git a/pages/home.vue b/pages/home.vue
index cf68daa..267bbf6 100644
--- a/pages/home.vue
+++ b/pages/home.vue
@@ -1,5 +1,48 @@
+
-
嗨!
+
+
+ {{ t("home.nonMoving") }}
+
+
+
+
+
+
-
+
\ 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";
-
-
+
+
+
+
其他媒體
+
+
+
+
+
{{ data.title }}
+
+ (
+ {{ data.lean }}
+ -
+ 文章分數:
+ {{ data.score }}
+ )
+
+
+
+
+
+
+
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