[upgrade] Abstract components on the page into subcomponents

This commit is contained in:
PrinOrange
2024-09-28 00:18:55 +08:00
parent f00a79fcf3
commit 959e513dcd
31 changed files with 508 additions and 374 deletions

View File

@@ -1,10 +1,14 @@
import seal from "@/assets/icons/seal.svg";
import { Config } from "@/data/config";
export const BottomCard = () => {
return (
<div className="flex w-full flex-col justify-center p-8">
<img alt={Config.AuthorName} className="mx-auto h-24 w-24 rounded-full" src={Config.AvatarURL} />
<p className="mx-auto mt-5 content-font">{Config.Sentence}</p>
<div className="flex w-full select-none flex-col justify-center p-8">
<div
className="mx-auto h-24 w-24"
style={{ backgroundImage: `url(${seal.src})`, backgroundRepeat: "no-repeat", backgroundSize: "contain" }}
/>
<p className={"mx-auto mt-5 content-font"}>{Config.Sentence}</p>
</div>
);
};