Files
lixiyu-net/components/home-page/HomeCover.tsx

35 lines
1.0 KiB
TypeScript
Raw Normal View History

2023-12-25 17:21:39 +08:00
import { SocialIcons } from "@/components/utils/SocialIcons";
import { Config } from "@/data/config";
export const HomeCover = () => {
return (
<>
2024-04-03 22:08:27 +08:00
<div className="w-full">
<div
className="mt-5 mb-20 flex w-full justify-center rounded-xl"
2024-04-03 22:08:27 +08:00
style={{
aspectRatio: "4/1",
2025-09-18 17:04:40 +08:00
background: `url(${Config.PageCovers.websiteCoverURL})` + " no-repeat center center",
2024-04-03 22:08:27 +08:00
backgroundSize: "cover",
}}
>
<img
alt={Config.Nickname}
className="relative top-1/2 my-auto h-24 w-24 rounded-full shadow-2xl md:h-32 md:w-32"
src={Config.AvatarURL}
/>
</div>
</div>
<div className={"caption-font my-8 text-center font-bold text-4xl"}>{Config.Nickname}</div>
2023-12-25 17:21:39 +08:00
{Config.Sentence && (
2024-04-03 22:08:27 +08:00
<div className="my-5 flex justify-center">
<p className={"text-lg content-font"}>{Config.Sentence}</p>
2023-12-25 17:21:39 +08:00
</div>
)}
2024-04-03 22:08:27 +08:00
<div className="my-8">
<SocialIcons />
</div>
2023-12-25 17:21:39 +08:00
</>
);
};