From c4a2749daf3b3a94b2ffca56996c8410bc335c87 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Fri, 10 Jul 2026 21:42:52 +0700 Subject: [PATCH] refactor: replace video backgrounds with static images and update 404 page assets --- app/not-found.tsx | 4 ++-- app/page.tsx | 16 ++++++++++------ public/{ => background}/404.png | Bin public/background/erika-mb.mp4 | Bin 719093 -> 0 bytes public/background/erika.mp4 | Bin 699263 -> 0 bytes public/background/space.webp | Bin 0 -> 305214 bytes 6 files changed, 12 insertions(+), 8 deletions(-) rename public/{ => background}/404.png (100%) delete mode 100644 public/background/erika-mb.mp4 delete mode 100644 public/background/erika.mp4 create mode 100644 public/background/space.webp diff --git a/app/not-found.tsx b/app/not-found.tsx index 408f4f2..3fe2f3a 100644 --- a/app/not-found.tsx +++ b/app/not-found.tsx @@ -5,7 +5,7 @@ import Image from "next/image"; import { Button } from "@/components/ui/button"; import { useState } from "react"; import { Spinner } from "@/components/ui/spinner"; -import Background from "@/public/404.png"; +import Background from "@/public/background/404.png"; import Profile from "@/public/404-image.jpg"; import { Activity, Home } from "lucide-react"; @@ -13,7 +13,7 @@ const MESSAGES = [ "Erika กินหน้านี้ไปแล้ว...", "หรือจริงๆแล้วหน้านี้จะโดน Sukuna เล่น...", "อาจจะโดนต่อยจากคนด้านบนแล้วก็ได้...", - "หรือ Erika ตัวปลอมขะมีอยู่จริง...", + "หรือ Erika ตัวปลอมจะมีอยู่จริง...", "หน้านี้อาจโดนErikaตัวปลอมทำลายไปแล้วนะ...", ]; diff --git a/app/page.tsx b/app/page.tsx index 18e10e0..e14b6ab 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -7,6 +7,7 @@ import { getRedisClient } from "@/lib/redis"; import { headers } from "next/headers"; import { Users } from "lucide-react"; import { Kbd } from "@/components/ui/kbd"; +import Background from "@/public/background/space.webp"; export default async function Home() { const { counts, tiktokProfile } = await getFollowerCounts(); @@ -34,7 +35,7 @@ export default async function Home() { } // Use TikTok profile data with config fallbacks - const profileName = tiktokProfile.displayName || config.profile.name; + const profileName = config.profile.name; const profileAvatar = config.profile.avatar; const links1 = [...config.links]; @@ -55,15 +56,18 @@ export default async function Home() { return ( -
+