Layout
This commit is contained in:
parent
1601ac22ea
commit
1c5d49e41f
|
@ -4,7 +4,6 @@ import { Page } from 'web/components/page'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
|
|
||||||
import { DateDoc } from 'common/post'
|
import { DateDoc } from 'common/post'
|
||||||
import { Spacer } from 'web/components/layout/spacer'
|
|
||||||
import { Content } from 'web/components/editor'
|
import { Content } from 'web/components/editor'
|
||||||
import { Col } from 'web/components/layout/col'
|
import { Col } from 'web/components/layout/col'
|
||||||
import { Row } from 'web/components/layout/row'
|
import { Row } from 'web/components/layout/row'
|
||||||
|
@ -76,10 +75,10 @@ export function DateDocPost(props: {
|
||||||
const marketUrl = `https://${DOMAIN}/${username}/${contractSlug}`
|
const marketUrl = `https://${DOMAIN}/${username}/${contractSlug}`
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Col className="rounded-lg bg-white px-6 py-6">
|
<Col className="gap-6 rounded-lg bg-white px-6 py-6">
|
||||||
<SiteLink href={link ? `/date-docs/${creator.username}` : undefined}>
|
<SiteLink href={link ? `/date-docs/${creator.username}` : undefined}>
|
||||||
<Col className="gap-4 self-center">
|
<Col className="gap-6 self-center">
|
||||||
<Row className="relative justify-between gap-4 text-2xl">
|
<Row className="relative items-center justify-between gap-4 text-2xl">
|
||||||
<div>
|
<div>
|
||||||
{name}, {age}
|
{name}, {age}
|
||||||
</div>
|
</div>
|
||||||
|
@ -120,13 +119,11 @@ export function DateDocPost(props: {
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
</SiteLink>
|
</SiteLink>
|
||||||
<Spacer h={6} />
|
|
||||||
{user && user.id === creator.id ? (
|
{user && user.id === creator.id ? (
|
||||||
<RichEditPost post={post} />
|
<RichEditPost post={post} />
|
||||||
) : (
|
) : (
|
||||||
<Content content={content} />
|
<Content content={content} />
|
||||||
)}
|
)}
|
||||||
<Spacer h={6} />
|
|
||||||
<div className="mt-10 w-full max-w-lg self-center rounded-xl bg-gradient-to-r from-blue-200 via-purple-200 to-indigo-300 p-5">
|
<div className="mt-10 w-full max-w-lg self-center rounded-xl bg-gradient-to-r from-blue-200 via-purple-200 to-indigo-300 p-5">
|
||||||
<iframe
|
<iframe
|
||||||
height="405"
|
height="405"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user