Refactor navigation bar styling, update localization files, and enhance news organization page

- Updated navigation bar styles for improved aesthetics and functionality.
- Added loading text to English and Traditional Chinese localization files.
- Enhanced the news organization about page with better layout and SEO metadata.
- Updated API response to include Facebook link for news organizations.
- Removed old Tailwind CSS configuration and styles, replacing them with a new main CSS file.
- Updated package.json to include new dependencies and scripts for better development experience.
This commit is contained in:
yuanhau 2025-05-06 16:16:43 +08:00
parent 391bd7df26
commit dce96b3a35
13 changed files with 300 additions and 172 deletions

View file

@ -1,4 +1,3 @@
import tailwindcss from '@tailwindcss/vite';
export default defineNuxtConfig({
compatibilityDate: '2025-05-06',
devtools: { enabled: true },
@ -6,13 +5,8 @@ export default defineNuxtConfig({
"/": { redirect: "/home"},
"/zh_tw": { redirect: "/zh_tw/home"},
} ,
css: ['~/styles/tailwind.css'],
modules: [
'@nuxt/image',
'@nuxtjs/robots',
'@nuxtjs/seo',
'@nuxtjs/i18n'
],
css: ['~/styles/main.css'],
modules: ['@nuxt/image', '@nuxtjs/robots', '@nuxtjs/seo', '@nuxtjs/i18n', "@nuxtjs/tailwindcss"],
i18n: {
defaultLocale: 'en',
locales: [
@ -27,6 +21,7 @@ export default defineNuxtConfig({
},
app: {
head: {
title: "",
meta: [
{ "http-equiv": "X-UA-Compatible", content: "IE=edge" },
{ charset: "utf-8" },
@ -36,9 +31,10 @@ export default defineNuxtConfig({
]
}
},
vite: {
plugins: [
tailwindcss(),
],
}
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},// Add your content paths here
},
})