feat: integrate GSAP for animations and add Tailwind CSS support

- Added GSAP and ScrambleTextPlugin for text animations in navigation.
- Implemented locale switching in navigation component.
- Updated i18n locales for navigation links.
- Created a new layout for news organization pages.
- Removed unused index page and added home page with greeting.
- Implemented dynamic fetching of news organization info with API.
- Configured Tailwind CSS and added necessary plugins.
- Updated nuxt.config.ts for routing and site metadata.
This commit is contained in:
yuanhau 2025-05-06 14:52:42 +08:00
parent 3ccb186530
commit 391bd7df26
15 changed files with 377 additions and 15 deletions

View file

@ -1,7 +1,12 @@
const { t } = useI18n();
import tailwindcss from '@tailwindcss/vite';
export default defineNuxtConfig({
compatibilityDate: '2025-05-06',
devtools: { enabled: true },
routeRules: {
"/": { redirect: "/home"},
"/zh_tw": { redirect: "/zh_tw/home"},
} ,
css: ['~/styles/tailwind.css'],
modules: [
'@nuxt/image',
'@nuxtjs/robots',
@ -15,4 +20,25 @@ export default defineNuxtConfig({
{ code: 'zh_tw', name: 'Chinese Tradional', file: 'zh-tw.json' },
]
},
site: {
url: "https://news.yuanhau.com",
title: "BlindSpec",
description: "",
},
app: {
head: {
meta: [
{ "http-equiv": "X-UA-Compatible", content: "IE=edge" },
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ name: "og:author", content: "@hpware on GitHub" },
{ name: "og:author:email", content: "public+newscompareauthor@yuanhau.com" },
]
}
},
vite: {
plugins: [
tailwindcss(),
],
}
})