Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: footer sitename #92

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/consts.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const CURRENT_SITE = process.env.NEXT_PUBLIC_SITE_NAME??"Siyuan"

export type LugServer = {
name: string,
url: string
Expand Down
3 changes: 2 additions & 1 deletion src/parts/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import NextImage from "next/image";
import classes from "@/app/global.module.css";
import {IconMail, IconMessageDots} from "@tabler/icons-react";
import imgSjtug from "@/assets/sjtug.svg"
import {CURRENT_SITE} from "@/consts";

export const Footer = () => (
<Stack bg={"var(--mantine-color-footer)"} w={"100%"} py={"xxxl"}>
Expand All @@ -14,7 +15,7 @@ export const Footer = () => (
w={"100%"} h={"auto"}/>
</Box>
<Stack className={classes.textNormal} gap={"xs"} style={{flex: 3}} miw={"min(100%, 15em)"}>
<Text fw={700} inherit>SJTUG Siyuan Mirror</Text>
<Text fw={700} inherit>SJTUG {CURRENT_SITE} Mirror</Text>
<Text inherit>由 上海交通大学 Linux 用户组 (SJTUG) 维护</Text>
<Text inherit>沪交 ICP 备 20180085</Text>
</Stack>
Expand Down
Loading