diff --git a/src/app/splash/components/__tests__/tailwind-components.test.tsx b/src/app/splash/components/__tests__/tailwind-components.test.tsx
new file mode 100644
index 00000000..9662d684
--- /dev/null
+++ b/src/app/splash/components/__tests__/tailwind-components.test.tsx
@@ -0,0 +1,35 @@
+import { renderToStaticMarkup } from "react-dom/server";
+import { describe, expect, it } from "vitest";
+
+import { SplashBackground } from "../splash-background";
+import { SplashContent } from "../splash-content";
+import { SplashLogo } from "../splash-logo";
+
+describe("splash Tailwind components", () => {
+ it("renders SplashLogo with Tailwind wrapper and image classes", () => {
+ const html = renderToStaticMarkup();
+
+ expect(html).toContain("z-[2]");
+ expect(html).toContain("inline-flex");
+ expect(html).toContain("block h-auto w-auto");
+ expect(html).toContain("%2Fimages%2Fsplash%2Fic-logo-home.png");
+ });
+
+ it("renders SplashBackground with Tailwind fill image classes", () => {
+ const html = renderToStaticMarkup();
+
+ expect(html).toContain("absolute");
+ expect(html).toContain("bg-sidebar-background");
+ expect(html).toContain("object-cover");
+ expect(html).toContain("%2Fimages%2Fsplash%2Fpic-bg-home.png");
+ });
+
+ it("renders SplashContent with Tailwind typography classes", () => {
+ const html = renderToStaticMarkup();
+
+ expect(html).toContain("flex flex-col gap-md");
+ expect(html).toContain("font-[var(--font-athelas)]");
+ expect(html).toContain("whitespace-pre-line");
+ expect(html).toContain("Welcome to my secret hideout");
+ });
+});
diff --git a/src/app/splash/components/splash-background.module.css b/src/app/splash/components/splash-background.module.css
deleted file mode 100644
index 7e78896f..00000000
--- a/src/app/splash/components/splash-background.module.css
+++ /dev/null
@@ -1,12 +0,0 @@
-.bg {
- position: absolute;
- inset: 0;
- z-index: 0;
- background: var(--color-sidebar-background);
- overflow: hidden;
-}
-
-.image {
- object-fit: cover;
- object-position: center;
-}
diff --git a/src/app/splash/components/splash-background.tsx b/src/app/splash/components/splash-background.tsx
index ab92ba54..c691f92c 100644
--- a/src/app/splash/components/splash-background.tsx
+++ b/src/app/splash/components/splash-background.tsx
@@ -12,18 +12,17 @@
* - 视口 > 540px:MobileShell = 540px,图片 = 540px
*/
import Image from "next/image";
-import styles from "./splash-background.module.css";
export function SplashBackground() {
return (
-
+
);
diff --git a/src/app/splash/components/splash-content.module.css b/src/app/splash/components/splash-content.module.css
deleted file mode 100644
index 06c16e7d..00000000
--- a/src/app/splash/components/splash-content.module.css
+++ /dev/null
@@ -1,18 +0,0 @@
-.content {
- display: flex;
- flex-direction: column;
- gap: var(--spacing-md);
- z-index: 2;
-}
-
-.title {
- font-family: var(--font-athelas);
- font-size: var(--responsive-page-title, var(--font-size-title));
- font-weight: 700;
- font-style: italic;
- line-height: 1.4;
- color: #ffffff;
- text-align: left;
- white-space: pre-line;
- margin: 0;
-}
diff --git a/src/app/splash/components/splash-content.tsx b/src/app/splash/components/splash-content.tsx
index 7dea7435..fece3703 100644
--- a/src/app/splash/components/splash-content.tsx
+++ b/src/app/splash/components/splash-content.tsx
@@ -1,14 +1,13 @@
/**
* Splash 主内容文案
*/
-import styles from "./splash-content.module.css";
const APOSTROPHE = "'";
export function SplashContent() {
return (
-
-
+
+
Welcome to my secret hideout~
{"\n"}It{APOSTROPHE}s just the two of us now.
{"\n"}Feel free to whisper your
diff --git a/src/app/splash/components/splash-logo.module.css b/src/app/splash/components/splash-logo.module.css
deleted file mode 100644
index 6abba44b..00000000
--- a/src/app/splash/components/splash-logo.module.css
+++ /dev/null
@@ -1,10 +0,0 @@
-.logo {
- display: inline-flex;
- z-index: 2;
-}
-
-.image {
- display: block;
- width: auto;
- height: auto;
-}
diff --git a/src/app/splash/components/splash-logo.tsx b/src/app/splash/components/splash-logo.tsx
index 18001394..e6e18b76 100644
--- a/src/app/splash/components/splash-logo.tsx
+++ b/src/app/splash/components/splash-logo.tsx
@@ -1,16 +1,15 @@
import Image from "next/image";
-import styles from "./splash-logo.module.css";
export function SplashLogo() {
return (
-