mirror of https://github.com/MaxLeiter/Drift
Add public post listing to home page
parent
5918b13867
commit
7ef45c28f0
@ -1,3 +0,0 @@
|
|||||||
.textarea {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
@ -1,40 +0,0 @@
|
|||||||
import Image from "next/image"
|
|
||||||
import Card from "./card"
|
|
||||||
import DocumentTabs from "app/(posts)/components/tabs"
|
|
||||||
const Home = ({
|
|
||||||
introTitle,
|
|
||||||
introContent,
|
|
||||||
rendered
|
|
||||||
}: {
|
|
||||||
introTitle: string
|
|
||||||
introContent: string
|
|
||||||
rendered: string
|
|
||||||
}) => {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div
|
|
||||||
style={{ display: "flex", flexDirection: "row", alignItems: "center" }}
|
|
||||||
>
|
|
||||||
<Image
|
|
||||||
src={"/assets/logo-optimized.svg"}
|
|
||||||
width={48}
|
|
||||||
height={48}
|
|
||||||
alt=""
|
|
||||||
priority
|
|
||||||
/>
|
|
||||||
<h1 style={{ marginLeft: "var(--gap)" }}>{introTitle}</h1>
|
|
||||||
</div>
|
|
||||||
<Card>
|
|
||||||
<DocumentTabs
|
|
||||||
defaultTab="preview"
|
|
||||||
isEditing={false}
|
|
||||||
content={introContent}
|
|
||||||
preview={rendered}
|
|
||||||
title={introTitle}
|
|
||||||
/>
|
|
||||||
</Card>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Home
|
|
||||||
Loading…
Reference in New Issue