Merge branch 'main' into cloudflare
@ -121,9 +121,9 @@ export default function ServerListClient() {
|
||||
onClick={() => {
|
||||
router.push(`/?global=true`);
|
||||
}}
|
||||
className="rounded-[50px] cursor-pointer bg-stone-100 p-[10px] transition-all hover:bg-stone-200 dark:hover:bg-stone-700 dark:bg-stone-800"
|
||||
className="rounded-[50px] text-white cursor-pointer [text-shadow:_0_1px_0_rgb(0_0_0_/_20%)] bg-blue-600 hover:bg-blue-500 p-[10px] transition-all shadow-[inset_0_1px_0_rgba(255,255,255,0.2)] hover:shadow-[inset_0_1px_0_rgba(0,0,0,0.2)] "
|
||||
>
|
||||
<GlobeAsiaAustraliaIcon className="size-4" />
|
||||
<GlobeAsiaAustraliaIcon className="size-[13px]" />
|
||||
</button>
|
||||
{getEnv("NEXT_PUBLIC_ShowTag") === "true" && (
|
||||
<Switch
|
||||
|
@ -12,14 +12,14 @@ export default function Footer() {
|
||||
<a
|
||||
href="https://github.com/hamster1963/nezha-dash"
|
||||
target="_blank"
|
||||
className="cursor-pointer font-normal underline decoration-yellow-500 decoration-2 underline-offset-2 dark:decoration-yellow-500/50"
|
||||
className="cursor-pointer font-normal underline decoration-yellow-500 hover:decoration-yellow-300 transition-colors decoration-2 underline-offset-2 dark:decoration-yellow-900 dark:hover:decoration-yellow-600"
|
||||
>
|
||||
{t("a_303-585_GitHub")}
|
||||
</a>
|
||||
<a
|
||||
href={`https://github.com/hamster1963/nezha-dash/releases/tag/v${version}`}
|
||||
target="_blank"
|
||||
className="cursor-pointer font-normal underline decoration-yellow-500 decoration-2 underline-offset-2 dark:decoration-yellow-500/50"
|
||||
className="cursor-pointer font-normal underline decoration-yellow-500 hover:decoration-yellow-300 transition-colors decoration-2 underline-offset-2 dark:decoration-yellow-900 dark:hover:decoration-yellow-600"
|
||||
>
|
||||
v{version}
|
||||
</a>
|
||||
|
@ -7,12 +7,13 @@ import { Skeleton } from "@/components/ui/skeleton";
|
||||
import getEnv from "@/lib/env-entry";
|
||||
import { DateTime } from "luxon";
|
||||
import { useTranslations } from "next-intl";
|
||||
import Image from "next/image";
|
||||
import { useTheme } from "next-themes";
|
||||
import { useRouter } from "next/navigation";
|
||||
import React, { useEffect, useRef, useState } from "react";
|
||||
|
||||
function Header() {
|
||||
const t = useTranslations("Header");
|
||||
const { resolvedTheme } = useTheme();
|
||||
const customLogo = getEnv("NEXT_PUBLIC_CustomLogo");
|
||||
const customTitle = getEnv("NEXT_PUBLIC_CustomTitle");
|
||||
const customDescription = getEnv("NEXT_PUBLIC_CustomDescription");
|
||||
@ -30,12 +31,17 @@ function Header() {
|
||||
className="flex cursor-pointer items-center text-base font-medium"
|
||||
>
|
||||
<div className="mr-1 flex flex-row items-center justify-start">
|
||||
<Image
|
||||
<img
|
||||
width={40}
|
||||
height={40}
|
||||
unoptimized
|
||||
alt="apple-touch-icon"
|
||||
src={customLogo ? customLogo : "/apple-touch-icon.png"}
|
||||
src={
|
||||
customLogo
|
||||
? customLogo
|
||||
: resolvedTheme === "light"
|
||||
? "/apple-touch-icon.png"
|
||||
: "/apple-touch-icon-dark.png"
|
||||
}
|
||||
className="relative m-0! border-2 border-transparent h-6 w-6 object-cover object-top p-0!"
|
||||
/>
|
||||
</div>
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 769 B |
BIN
app/favicon.ico
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -23,9 +23,9 @@ export default function GlobalBackButton() {
|
||||
onClick={() => {
|
||||
router.push(`/`);
|
||||
}}
|
||||
className="rounded-[50px] cursor-pointer w-fit bg-stone-100 p-[10px] transition-all hover:bg-stone-200 dark:hover:bg-stone-700 dark:bg-stone-800"
|
||||
className="rounded-[50px] mt-[1px] w-fit text-white cursor-pointer [text-shadow:_0_1px_0_rgb(0_0_0_/_20%)] bg-green-600 hover:bg-green-500 p-[10px] transition-all shadow-[inset_0_1px_0_rgba(255,255,255,0.2)] hover:shadow-[inset_0_1px_0_rgba(0,0,0,0.2)] "
|
||||
>
|
||||
<ServerStackIcon className="size-4" />
|
||||
<ServerStackIcon className="size-[13px]" />
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "nezha-dash",
|
||||
"version": "1.4.7",
|
||||
"version": "1.4.8",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev -p 3040",
|
||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 16 KiB |
BIN
public/apple-touch-icon-dark.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 263 B After Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 769 B |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |