From ce2dffde95a20dd6749215a3210808ad55fe7b7e Mon Sep 17 00:00:00 2001 From: LightQuantum Date: Wed, 12 Jun 2024 05:11:27 +0800 Subject: [PATCH] fix: footer logo (#91) --- src/app/docs/layout.tsx | 6 +++--- src/components/SearchBar.tsx | 2 +- src/parts/docNav.tsx | 2 +- src/parts/footer.tsx | 6 ++++-- src/parts/news.tsx | 8 ++++---- src/parts/repos.tsx | 4 ++-- 6 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/app/docs/layout.tsx b/src/app/docs/layout.tsx index 124298e..a81bd86 100644 --- a/src/app/docs/layout.tsx +++ b/src/app/docs/layout.tsx @@ -1,4 +1,4 @@ -import {Box, Container, Grid, GridCol, Group, Stack} from "@mantine/core"; +import {Box, Container, Grid, GridCol, Group} from "@mantine/core"; import classes from "@/app/global.module.css"; import {ReactNode} from "react"; import {articlesFromHelps, getHelp} from "@/serverRpcs"; @@ -16,7 +16,7 @@ export default async function DocsLayout({ - + @@ -24,7 +24,7 @@ export default async function DocsLayout({ - + {children} diff --git a/src/components/SearchBar.tsx b/src/components/SearchBar.tsx index 95c620f..0ed309f 100644 --- a/src/components/SearchBar.tsx +++ b/src/components/SearchBar.tsx @@ -1,7 +1,7 @@ "use client"; import {Ref, useRef} from "react"; -import {getHotkeyHandler, HotkeyItem, mergeRefs, useHotkeys} from "@mantine/hooks"; +import {getHotkeyHandler, mergeRefs, useHotkeys} from "@mantine/hooks"; import {Badge, TextInput, TextInputProps} from "@mantine/core"; import {IconSearch} from "@tabler/icons-react"; import classes from "@/app/global.module.css"; diff --git a/src/parts/docNav.tsx b/src/parts/docNav.tsx index 58daf11..260baa8 100644 --- a/src/parts/docNav.tsx +++ b/src/parts/docNav.tsx @@ -17,7 +17,7 @@ export const DocNav = ({articles}: DocNavProps) => { return ( <> - + {/**/} {/* */} diff --git a/src/parts/footer.tsx b/src/parts/footer.tsx index d867ca6..b2b8040 100644 --- a/src/parts/footer.tsx +++ b/src/parts/footer.tsx @@ -1,7 +1,8 @@ import {Anchor, Box, Center, Container, Group, Image, Stack, Text} from "@mantine/core"; +import NextImage from "next/image"; import classes from "@/app/global.module.css"; import {IconMail, IconMessageDots} from "@tabler/icons-react"; -import imgSjtugText from "@/assets/sjtug.svg" +import imgSjtug from "@/assets/sjtug.svg" export const Footer = () => ( @@ -9,7 +10,8 @@ export const Footer = () => ( - {"SJTUG + {"SJTUG SJTUG Siyuan Mirror diff --git a/src/parts/news.tsx b/src/parts/news.tsx index 0a28c2e..d268c9a 100644 --- a/src/parts/news.tsx +++ b/src/parts/news.tsx @@ -1,7 +1,7 @@ -import {Anchor, Box, Group, Stack, Text} from "@mantine/core"; +import {Anchor, Box, Stack, Text} from "@mantine/core"; import classes from "@/app/global.module.css"; import {MyAnchor} from "@/components/MyAnchor"; -import {IconExchange, IconExternalLink} from "@tabler/icons-react"; +import {IconExternalLink} from "@tabler/icons-react"; import {getNews, newsLocatorFromHref} from "@/serverRpcs"; import Link from "next/link"; @@ -16,7 +16,7 @@ const NewsEntry = ({title, date, locator}: NewsEntryProps) => ( {new Intl.DateTimeFormat("zh-CN").format(date)} - + {title} @@ -48,7 +48,7 @@ export const News = async () => { } }> + rightIcon={}> ... 查看更多 diff --git a/src/parts/repos.tsx b/src/parts/repos.tsx index f65b962..80c5963 100644 --- a/src/parts/repos.tsx +++ b/src/parts/repos.tsx @@ -2,7 +2,7 @@ import classes from "@/app/global.module.css"; import {format, TDate} from "timeago.js" -import {IconCheck, IconHelp, IconInfoCircleFilled, IconX} from "@tabler/icons-react"; +import {IconCheck, IconHelp, IconX} from "@tabler/icons-react"; import { ActionIcon, Anchor, @@ -67,7 +67,7 @@ const TableEntry = ({name, server, status, lastSync, helpHref, mirrorzHref}: Tab { mirrorzHref && + href={MIRRORZ_HELP_URL + mirrorzHref + "/?mirror=SJTUG-" + server} target={"_blank"}> }