From 391bd7df2625c4d1932a084029b87716e82b8d1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Tue, 6 May 2025 14:52:42 +0800 Subject: [PATCH] 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. --- app.vue | 4 + bun.lock | 82 ++++++++++++- components/navigation.vue | 60 +++++++++- i18n/locales/en.json | 3 + i18n/locales/zh-tw.json | 3 + layouts/default.vue | 8 +- layouts/newsorg.vue | 15 +++ nuxt.config.ts | 28 ++++- package.json | 4 + pages/home.vue | 7 ++ pages/index.vue | 7 -- pages/newsOrgAbout/[slug].vue | 154 +++++++++++++++++++++++++ server/api/getData/fetchNewsOrgInfo.ts | 12 ++ styles/tailwind.css | 1 + tailwind.config.ts | 4 + 15 files changed, 377 insertions(+), 15 deletions(-) create mode 100644 layouts/newsorg.vue create mode 100644 pages/home.vue delete mode 100644 pages/index.vue create mode 100644 pages/newsOrgAbout/[slug].vue create mode 100644 server/api/getData/fetchNewsOrgInfo.ts create mode 100644 styles/tailwind.css create mode 100644 tailwind.config.ts diff --git a/app.vue b/app.vue index b5a6ef2..d56b278 100644 --- a/app.vue +++ b/app.vue @@ -1,3 +1,7 @@ +