Files
lixiyu-net/components/homepage/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="mb-20 mt-5 flex w-full justify-center rounded-xl"
style={{
aspectRatio: "4/1",
background: `url(${Config.PageCovers.websiteCoverURL})`,
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>
2024-04-03 22:08:27 +08:00
<div className={`font-fang-zheng-xiao-biao-song my-8 text-center text-4xl font-bold`}>{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={`font-source-serif-screen text-lg`}>{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
</>
);
};