From 7a49cc7eec881da932bb4f05cd8205920e5fd62c Mon Sep 17 00:00:00 2001 From: Ou Date: Sat, 12 Oct 2024 15:50:44 +0800 Subject: [PATCH] pref: ui --- shared/sources.ts | 3 ++- src/components/header.tsx | 28 +++++++++++++--------------- src/components/section/card.tsx | 20 ++++++++++---------- src/components/section/index.tsx | 12 ++++++++---- src/routes/__root.tsx | 6 +++--- uno.config.ts | 12 ++++-------- vitest.config.ts | 2 +- 7 files changed, 41 insertions(+), 42 deletions(-) diff --git a/shared/sources.ts b/shared/sources.ts index 8675b27..7e95120 100644 --- a/shared/sources.ts +++ b/shared/sources.ts @@ -21,6 +21,7 @@ export const originSources = { name: "酷安", type: "hottest", color: "green", + title: "今日最热", home: "https://coolapk.com", }, "wallstreetcn": { @@ -31,7 +32,7 @@ export const originSources = { }, "sputniknewscn": { name: "俄罗斯卫星通讯社", - color: "yellow", + color: "orange", home: "https://sputniknews.cn", }, "cankaoxiaoxi": { diff --git a/src/components/header.tsx b/src/components/header.tsx index bc607bb..b3ad988 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -54,21 +54,19 @@ function RefreshButton() { export function Header() { return ( <> -
-
- - logo - - News - Now - - - - {`v${Version}`} - -
-
- + + + logo + + News + Now + + + + {`v${Version}`} + + + diff --git a/src/components/section/card.tsx b/src/components/section/card.tsx index 239441d..4b1decb 100644 --- a/src/components/section/card.tsx +++ b/src/components/section/card.tsx @@ -42,7 +42,7 @@ export const CardWrapper = forwardRef(({ id, isDragg
{sources[id].name} - {sources[id]?.title && {sources[id].title}} + {sources[id]?.title && {sources[id].title}}
-
+