2023-12-25 17:21:39 +08:00
|
|
|
export const PostCover = (props: { coverURL: string }) => {
|
|
|
|
|
return (
|
|
|
|
|
<div
|
2024-04-03 22:08:27 +08:00
|
|
|
className="mb-8 mt-0 flex w-full justify-center rounded-md"
|
2023-12-25 17:21:39 +08:00
|
|
|
style={{
|
|
|
|
|
aspectRatio: "5/2",
|
|
|
|
|
background: `url(${props.coverURL})`,
|
|
|
|
|
backgroundSize: "cover",
|
|
|
|
|
backgroundRepeat: "no-repeat",
|
|
|
|
|
backgroundPosition: "center",
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
};
|