CoastalCommitsPastes/client/app/components/home.tsx

41 lines
736 B
TypeScript
Raw Normal View History

2022-04-09 20:48:19 -04:00
import Image from "next/image"
import Card from "./card"
2022-11-20 22:26:07 -05:00
import DocumentTabs from "app/(posts)/components/tabs"
2022-04-09 20:48:19 -04:00
const Home = ({
introTitle,
introContent,
rendered
}: {
introTitle: string
introContent: string
rendered: string
2022-03-24 21:03:57 -04:00
}) => {
2022-04-09 20:48:19 -04:00
return (
<>
<div
style={{ display: "flex", flexDirection: "row", alignItems: "center" }}
>
2022-11-16 03:49:12 -05:00
<Image
src={"/assets/logo-optimized.svg"}
width={48}
height={48}
alt=""
priority
/>
<h1 style={{ marginLeft: "var(--gap)" }}>{introTitle}</h1>
2022-04-09 20:48:19 -04:00
</div>
<Card>
2022-11-20 22:26:07 -05:00
<DocumentTabs
defaultTab="preview"
isEditing={false}
content={introContent}
preview={rendered}
title={introTitle}
/>
2022-04-09 20:48:19 -04:00
</Card>
</>
)
2022-03-24 21:03:57 -04:00
}
2022-04-09 20:48:19 -04:00
export default Home