diff --git a/components/app/windows/news.vue b/components/app/windows/news.vue index e1e12c0..7f7ae39 100644 --- a/components/app/windows/news.vue +++ b/components/app/windows/news.vue @@ -1,5 +1,11 @@ @@ -105,7 +113,9 @@ const tf = (text: string) => { @@ -139,7 +149,19 @@ const tf = (text: string) => { {{ item.title }} - {{ item.publisher }} -- + + + + + {{ item.publisher }} + + + + 會打開關於媒體的視窗 + + + + -- {{ new Date(item.publishTimeUnix).toLocaleString("zh-TW", { year: "numeric", @@ -151,13 +173,24 @@ const tf = (text: string) => { }) }} - - - 觀看文章 - + + + + + + 觀看文章 + + + + 會打開新的視窗 + + + 類似文章 diff --git a/components/ui/tooltip/Tooltip.vue b/components/ui/tooltip/Tooltip.vue index 90741e3..f13c30f 100644 --- a/components/ui/tooltip/Tooltip.vue +++ b/components/ui/tooltip/Tooltip.vue @@ -1,10 +1,15 @@ diff --git a/components/ui/tooltip/TooltipContent.vue b/components/ui/tooltip/TooltipContent.vue index 18cdf7f..9570a52 100644 --- a/components/ui/tooltip/TooltipContent.vue +++ b/components/ui/tooltip/TooltipContent.vue @@ -1,27 +1,44 @@ - + diff --git a/components/ui/tooltip/TooltipProvider.vue b/components/ui/tooltip/TooltipProvider.vue index abf42d8..291b323 100644 --- a/components/ui/tooltip/TooltipProvider.vue +++ b/components/ui/tooltip/TooltipProvider.vue @@ -1,7 +1,7 @@ diff --git a/components/ui/tooltip/TooltipTrigger.vue b/components/ui/tooltip/TooltipTrigger.vue index 9255272..7abe9ec 100644 --- a/components/ui/tooltip/TooltipTrigger.vue +++ b/components/ui/tooltip/TooltipTrigger.vue @@ -1,7 +1,7 @@ diff --git a/components/ui/tooltip/index.ts b/components/ui/tooltip/index.ts index 5ab9653..0a8a878 100644 --- a/components/ui/tooltip/index.ts +++ b/components/ui/tooltip/index.ts @@ -1,4 +1,4 @@ -export { default as Tooltip } from './Tooltip.vue' -export { default as TooltipContent } from './TooltipContent.vue' -export { default as TooltipProvider } from './TooltipProvider.vue' -export { default as TooltipTrigger } from './TooltipTrigger.vue' +export { default as Tooltip } from "./Tooltip.vue"; +export { default as TooltipContent } from "./TooltipContent.vue"; +export { default as TooltipProvider } from "./TooltipProvider.vue"; +export { default as TooltipTrigger } from "./TooltipTrigger.vue"; diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 31969f1..67840f0 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -17,9 +17,11 @@ "newsComparePlatform": "news comparison platform" }, "startusing": "Let's Start!", + "openapp": "This will open the desktop application in your browser.", "learnmore": "Learn more", "documentation": "Documentation", "tools": "Tools", + "opentools": "This will open simple tools", "qanda": { "titles": { "whydes": "Why make this platform?", diff --git a/i18n/locales/zh-tw.json b/i18n/locales/zh-tw.json index faf1429..3009ebe 100644 --- a/i18n/locales/zh-tw.json +++ b/i18n/locales/zh-tw.json @@ -17,6 +17,7 @@ "newsComparePlatform": "新聞觀點比對平台" }, "startusing": "開始使用!", + "openapp": "會打開在瀏覽器的桌面程式", "learnmore": "了解更多", "documentation": "如何使用", "tools": "工具", diff --git a/pages/home.vue b/pages/home.vue index ca27c1b..bbe7524 100644 --- a/pages/home.vue +++ b/pages/home.vue @@ -5,6 +5,12 @@ import { AccordionItem, AccordionTrigger, } from "~/components/ui/accordion"; +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from "@/components/ui/tooltip"; import { ComputerDesktopIcon, CircleStackIcon, @@ -123,20 +129,38 @@ useSeoMeta({ > - - - {{ t("home.startusing") }} - - - - - {{ t("home.tools") }} - - + + + + + + {{ t("home.startusing") }} + + + + + {{ t("home.openapp") }} + + + + + + + + + {{ t("home.tools") }} + + + + + {{ t("home.opentools") }} + + +
- {{ item.publisher }} -- + + + + + {{ item.publisher }} + + + + 會打開關於媒體的視窗 + + + + -- {{ new Date(item.publishTimeUnix).toLocaleString("zh-TW", { year: "numeric", @@ -151,13 +173,24 @@ const tf = (text: string) => { }) }}