init: 整合项目(dashboard + www + docs)

This commit is contained in:
eafonyang
2026-07-30 11:23:50 +08:00
commit 99ab6cc4f4
435 changed files with 61037 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<script setup lang="ts">
const { t } = useI18n();
const currentYear = new Date().getFullYear();
</script>
<template>
<footer class="border-t border-gray-100 bg-gray-50 dark:bg-dark-900 dark:border-dark-700">
<div class="section-container py-32px flex flex-col items-center gap-12px">
<p class="text-sm text-gray-500 dark:text-gray-400">
{{ t('footer.copyright', { year: currentYear }) }}
</p>
</div>
</footer>
</template>
+47
View File
@@ -0,0 +1,47 @@
<script setup lang="ts">
const { t, locale, locales } = useI18n();
const switchLocalePath = useSwitchLocalePath();
const navItems = computed(() => [
{ label: t('nav.home'), path: '/' },
{ label: t('nav.products'), path: '/products' },
{ label: t('nav.news'), path: '/news' },
{ label: t('nav.about'), path: '/about' }
]);
</script>
<template>
<header class="sticky top-0 z-50 bg-white/80 backdrop-blur-md border-b border-gray-100 dark:bg-dark-900/80 dark:border-dark-700">
<div class="section-container h-64px flex items-center justify-between">
<!-- Logo -->
<NuxtLink :to="switchLocalePath(locale)" class="flex items-center gap-8px text-xl font-bold text-primary">
{{ t('app.name') }}
</NuxtLink>
<!-- 导航 -->
<nav class="hidden md:flex items-center gap-24px">
<NuxtLink
v-for="item in navItems"
:key="item.path"
:to="switchLocalePath(locale) === '/' ? item.path : switchLocalePath(locale) + item.path"
class="text-sm text-gray-600 hover:text-primary transition-colors dark:text-gray-300"
>
{{ item.label }}
</NuxtLink>
</nav>
<!-- 语言切换 -->
<div class="flex items-center gap-12px">
<NuxtLink
v-for="loc in locales"
:key="loc.code"
:to="switchLocalePath(loc.code)"
class="px-8px py-4px rounded text-sm transition-colors"
:class="locale === loc.code ? 'bg-primary text-white' : 'text-gray-500 hover:text-primary'"
>
{{ loc.code === 'zh' ? '中' : 'EN' }}
</NuxtLink>
</div>
</div>
</header>
</template>