feat: 添加手写签名动画组件 SvgSignature,并更新样式变量以支持主题

This commit is contained in:
2026-09-01 00:40:42 +08:00
parent 3c766a4967
commit 4599a49879
3 changed files with 183 additions and 3 deletions
+5 -3
View File
@@ -1,4 +1,5 @@
import ScrambleReveal from "@/components/dom/ScrambleReveal";
import SvgSignature from "@/components/dom/SvgSignature";
/**
* Page content matching the original DOM (haoqi_body.html):
@@ -49,6 +50,7 @@ export default function Home() {
{/* Signature / About Section */}
<div className="grid grid-cols-12 px-4 lg:px-14 py-18 lg:py-24 lg:pb-28 w-full relative z-30">
<div className="relative col-span-12 sm:col-span-4 lg:col-span-3 p-2">
<SvgSignature className="-top-1/32 -left-1/12 absolute w-3/4 pointer-events-none" />
<div className="aspect-square" />
</div>
<div className="flex flex-col justify-start items-start gap-6 col-span-12 sm:col-span-7 lg:col-span-8 sm:col-start-6 lg:col-start-5 text-base lg:text-xl leading-none">
@@ -71,7 +73,7 @@ export default function Home() {
href="https://reunimos.cc"
target="_blank"
rel="noopener noreferrer"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-l3 transition-[text-decoration-color] duration-150 ease-out lg:hover:decoration-l1"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-(--label-3) transition-[text-decoration-color] duration-150 ease-out lg:[@media(hover:hover)]:hover:decoration-(--label-1)"
>
reunimos™
</a>
@@ -80,7 +82,7 @@ export default function Home() {
href="https://www.alipan.com/"
target="_blank"
rel="noopener noreferrer"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-l3 transition-[text-decoration-color] duration-150 ease-out lg:hover:decoration-l1"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-(--label-3) transition-[text-decoration-color] duration-150 ease-out lg:[@media(hover:hover)]:hover:decoration-(--label-1)"
>
aDrive
</a>
@@ -89,7 +91,7 @@ export default function Home() {
href="https://www.teambition.com/"
target="_blank"
rel="noopener noreferrer"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-l3 transition-[text-decoration-color] duration-150 ease-out lg:hover:decoration-l1"
className="inline text-l1 underline underline-offset-[0.08em] decoration-solid decoration-(--label-3) transition-[text-decoration-color] duration-150 ease-out lg:[@media(hover:hover)]:hover:decoration-(--label-1)"
>
Teambition
</a>