Buckets:
| import Avatar from "./avatar"; | |
| import Date from "./date"; | |
| import CoverImage from "./cover-image"; | |
| import PostTitle from "./post-title"; | |
| import Categories from "./categories"; | |
| import AuthorType from "../types/authorType"; | |
| type Props = { | |
| title: string; | |
| coverImage: string; | |
| date: string; | |
| author: AuthorType; | |
| categories: string[]; | |
| }; | |
| export default function PostHeader({ | |
| title, | |
| coverImage, | |
| date, | |
| author, | |
| categories, | |
| }: Props) { | |
| return ( | |
| <> | |
| <PostTitle>{title}</PostTitle> | |
| <div className="hidden md:block md:mb-12"> | |
| <Avatar author={author} /> | |
| </div> | |
| <div className="mb-8 md:mb-16 sm:mx-0"> | |
| <CoverImage title={title} coverImage={coverImage} /> | |
| </div> | |
| <div className="max-w-2xl mx-auto"> | |
| <div className="block md:hidden mb-6"> | |
| <Avatar author={author} /> | |
| </div> | |
| <div className="mb-6 text-lg"> | |
| Posted <Date dateString={date} /> | |
| <Categories categories={categories} /> | |
| </div> | |
| </div> | |
| </> | |
| ); | |
| } | |
Xet Storage Details
- Size:
- 1.03 kB
- Xet hash:
- b644bca455d0a0f8b1054bb1153e00ff7470b6c3654ac0e0aeb4bd86ed848eb7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.