Files
training/website/vite.config.js
T
Pine 23f390902c 优化下载页面:像素字+彩虹渐变标题、修正背景、减少顶部间距
1. 标题对齐首页Hero风格:
   - 整个标题使用像素字体(--font-pixel)
   - YunOPC-Hub 使用彩虹渐变(--rainbow)文字
2. 内容区背景修正:
   - 添加品牌氛围渐变背景(顶部蓝色光晕+两侧点缀)
   - 与首页的设计氛围保持一致
3. 减少顶部间距:
   - .dl-wrap padding-top 从 48px 减到 8px
   - .dl-hero padding-top 从 56px 减到 26px
   - 内容整体上移,避免内容区过于靠下
4. 布局细节优化:
   - 各区块间距微调(版本条/平台卡片/更新说明)
   - 状态区(加载/错误)内边距优化
2026-09-07 09:45:26 +08:00

21 lines
637 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { fileURLToPath, URL } from 'node:url';
// 全部 API 由真实后端(server-core / opc.pinesound.cn)提供,见 src/services/base.js
// dev 默认读 .env.development 的 VITE_API_BASE(本地 server-core);
// 生产构建读 .env.production 的 VITE_API_BASE;均未设置时兜底 https://opc.pinesound.cn。
export default defineConfig({
plugins: [react()],
base: './',
server: {
host: '0.0.0.0',
port: 8092,
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
});