mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-24 00:01:03 +08:00
49 lines
1.6 KiB
Vue
49 lines
1.6 KiB
Vue
<script lang="ts" setup>
|
|
const localePath = useLocalePath();
|
|
// Import Icons
|
|
import { SearchXIcon, CircleSlash2Icon } from "lucide-vue-next";
|
|
// Array
|
|
const tools = [
|
|
{
|
|
name: "檢查偏色情標體",
|
|
content: "這個工具檢查新聞記者是不是使用偏色情的標體 (台灣的很愛用)",
|
|
icon: SearchXIcon,
|
|
go: localePath("/tools/checkweirdkeywords"),
|
|
},
|
|
{
|
|
name: "無廣告新聞",
|
|
content: "提供無廣告的LINE Today 新聞",
|
|
icon: CircleSlash2Icon,
|
|
go: localePath("/tools/freelinetoday"),
|
|
},
|
|
];
|
|
</script>
|
|
<template>
|
|
<div
|
|
class="justify-center align-center absolute inset-0 flex flex-col w-full h-screen"
|
|
>
|
|
<h1 class="text-5xl text-bold m-4 text-center">Tools</h1>
|
|
<div
|
|
class="justify-center align-center gap-2 p-2 w-full flex flex-row flex-wrap relative"
|
|
>
|
|
<NuxtLink :to="item.go" v-for="item in tools">
|
|
<div
|
|
class="px-10 bg-gray-900/70 w-[300px] h-[200px] group rounded-xl shadow-lg hover:shadow-sky-700/90 hover:-translate-y-3 backdrop-blur-sm border border-gray-800 hover:border-gray-600/70 transition-all duration-700 justify-center align-middle flex flex-col"
|
|
>
|
|
<component
|
|
:is="item.icon"
|
|
class="w-8 h-8 text-white group-hover:text-sky-500 transition-colors duration-300"
|
|
/>
|
|
<h3 class="text-xl font-bold">{{ item.name }}</h3>
|
|
<p
|
|
class="text-gray-400 group-hover:text-gray-300 transition-colors duration-300 text-wrap"
|
|
>
|
|
{{ item.content }}
|
|
</p>
|
|
</div>
|
|
</NuxtLink>
|
|
</div>
|
|
</div>
|
|
<div class="h-screen"></div>
|
|
</template>
|