From c0d5fe6a2aaee7e7ce9645ad75f89bc438585428 Mon Sep 17 00:00:00 2001 From: Ou Date: Fri, 18 Oct 2024 03:02:42 +0800 Subject: [PATCH] feat(ui): make cursor more pointer --- src/components/column/card.tsx | 30 +++++++++++++++--------------- src/components/column/index.tsx | 6 +++--- src/components/footer.tsx | 15 +++++++++++++++ src/components/header.tsx | 2 +- src/routes/__root.tsx | 10 ++-------- src/styles/globals.css | 7 +++---- 6 files changed, 39 insertions(+), 31 deletions(-) create mode 100644 src/components/footer.tsx diff --git a/src/components/column/card.tsx b/src/components/column/card.tsx index 8f5ff84..e13bbad 100644 --- a/src/components/column/card.tsx +++ b/src/components/column/card.tsx @@ -41,7 +41,7 @@ export const CardWrapper = forwardRef(({ id, isDragg
-
- {sources[id].type === "hottest" ? : } + {sources[id].type === "hottest" ? : }
@@ -168,26 +168,26 @@ function ExtraInfo({ item }: { item: NewsItem }) { } } -function NewsList({ query }: Query) { +function NewsListHot({ query }: Query) { const items = query.data?.items return ( -
    + <> {items?.map((item, i) => ( -
  1. + {i + 1} - + {item.title} - -
  2. + + ))} -
+ ) } @@ -201,21 +201,21 @@ function NewsListTimeLine({ query }: Query) { return (
    {items?.map(item => ( -
  1. +
  2. ))}
diff --git a/src/components/column/index.tsx b/src/components/column/index.tsx index 496c4a0..1491427 100644 --- a/src/components/column/index.tsx +++ b/src/components/column/index.tsx @@ -18,7 +18,7 @@ export function Column({ id }: { id: ColumnID }) { <>
@@ -28,8 +28,8 @@ export function Column({ id }: { id: ColumnID }) { to="/c/$column" params={{ column: columnId }} className={clsx( - "text-sm", - id === columnId ? "color-primary font-bold" : "op-70 dark:op-90", + "text-sm px-2", + id === columnId ? "color-primary font-bold" : "op-70 dark:op-90 hover:(bg-primary/15 rounded-md)", )} > {metadata[columnId].name} diff --git a/src/components/footer.tsx b/src/components/footer.tsx new file mode 100644 index 0000000..422f7e9 --- /dev/null +++ b/src/components/footer.tsx @@ -0,0 +1,15 @@ +import { Author, Homepage } from "@shared/consts" + +export function Footer() { + return ( + <> + MIT LICENCE + + NewsNow © 2024 By + + {Author.name} + + + + ) +} diff --git a/src/components/header.tsx b/src/components/header.tsx index 8a9b9cc..c48e427 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -115,7 +115,7 @@ export function Header() {

- + {`v${Version}`} diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 6e51a4c..116e437 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -4,12 +4,12 @@ import { Outlet, createRootRouteWithContext } from "@tanstack/react-router" import { TanStackRouterDevtools } from "@tanstack/router-devtools" import { ReactQueryDevtools } from "@tanstack/react-query-devtools" import type { QueryClient } from "@tanstack/react-query" -import { Author, Homepage } from "@shared/consts" import clsx from "clsx" import { Header } from "~/components/header" import { useOnReload } from "~/hooks/useOnReload" import { GlobalOverlayScrollbar } from "~/components/common/overlay-scrollbar" import { useSync } from "~/hooks/useSync" +import { Footer } from "~/components/footer" export const Route = createRootRouteWithContext<{ queryClient: QueryClient @@ -60,13 +60,7 @@ function RootComponent() {