[upgrade] Abstract components on the page into subcomponents
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user