style: change icon text and remove next.js in root page

This commit is contained in:
2026-03-06 18:22:48 +07:00 Unverified
parent 3941cdc348
commit ed3e701efe
6 changed files with 10 additions and 45 deletions
-17
View File
@@ -93,23 +93,6 @@ export default function Home() {
</svg>
Discord
</Link>
<div className="flex flex-col text-xs justify-around mb-1.5">
<span>Made with:</span>
<div className="flex gap-1 justify-evenly">
<Link href="https://nextjs.org" target="_blank">
<svg
role="img"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
className="fill-white w-5"
>
<title>Next.js</title>
<path d="M18.665 21.978C16.758 23.255 14.465 24 12 24 5.377 24 0 18.623 0 12S5.377 0 12 0s12 5.377 12 12c0 3.583-1.574 6.801-4.067 9.001L9.219 7.2H7.2v9.596h1.615V9.251l9.85 12.727Zm-3.332-8.533 1.6 2.061V7.2h-1.6v6.245Z" />
</svg>
</Link>
</div>
</div>
</div>
</div>
</footer>
+2 -22
View File
@@ -5,36 +5,16 @@ import {
Copy,
CopyCheck,
ImageOff,
Loader2,
MessageSquareWarning,
} from "lucide-react";
import { useEffect, useRef, useState } from "react";
import { useRef, useState } from "react";
import { Button } from "@/components/ui/button";
import { Spinner } from "@/components/ui/spinner";
import { cn } from "@/lib/utils";
import { debugUploadSlip, discordCall } from "../../api";
export function EnkaBrowser({ uid }: { uid: string }) {
const [id, setId] = useState(uid);
const [ready, setReady] = useState(false);
useEffect(() => {
setId(uid);
setReady(false);
}, [uid]);
export function Evernight() {
return (
<div className="h-full w-full relative">
{!ready && (
<Loader2 className="animate-spin absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-8 text-muted-foreground z-100" />
)}
<iframe
src={`https://enka.network/u/${id}`}
className={cn(
"w-full border-0 bg-card -mt-20 h-[calc(100%+5rem)]",
!ready && "grayscale blur-md brightness-50 pointer-events-none",
)}
title="Enka Network"
onLoad={() => setReady(true)}
/>
</div>
);
}
+4 -2
View File
@@ -24,7 +24,7 @@ import {
endgameSubmissions,
endgameTypes,
} from "@/lib/db/schema";
import { CallButton, CopyButton, DebugSlipUpload } from "./client";
import { CallButton, CopyButton, DebugSlipUpload, Evernight } from "./client";
export default async function AdminSubmissionView({
params,
@@ -128,7 +128,9 @@ export default async function AdminSubmissionView({
<DebugSlipUpload sid={sub.id} />
)}
</div>
<div className="border rounded-md h-full overflow-hidden"></div>
<div className="border rounded-md h-full overflow-hidden">
<Evernight/>
</div>
</div>
</div>
);
+2 -2
View File
@@ -1,4 +1,4 @@
import { Dice3, Trash2 } from "lucide-react";
import { Dice5, Trash2 } from "lucide-react";
import { redirect } from "next/navigation";
import {
AlertDialog,
@@ -60,7 +60,7 @@ export default async function AdminLayout({
className="size-8"
onClick={random}
>
<Dice3 size={24} className="size-6" />
<Dice5 size={24} className="size-6" />
</Button>
<SlipButton />
<AlertDialog>
+2 -2
View File
@@ -61,7 +61,7 @@ export function VersionCheck({ headless = false }: { headless?: boolean }) {
if (headless) window.location.reload();
else
toast("มีอัปเดตใหม่พร้อมใช้งาน", {
description: "กดรีโหลดเพื่ออัปเดตเวอร์ชันล่าสุด",
description: "รีโหลดเพื่ออัปเดตเป็นเวอร์ชันล่าสุด",
action: {
label: "รีโหลด",
// Do a full reload
@@ -80,7 +80,7 @@ export function VersionCheck({ headless = false }: { headless?: boolean }) {
}),
{
loading: "กำลังพยายามเชื่อมต่อใหม่...",
success: () => "เชื่อมต่อแล้ว",
success: () => "เชื่อมต่อสำเร็จ",
duration: 500,
},
);