Started doing an Image component for inline text

This commit is contained in:
2023-09-03 19:45:19 +02:00
parent bfeeb71312
commit 4f5d822e11
5 changed files with 42 additions and 27 deletions

View File

@@ -10,11 +10,9 @@ import inlineComponents, { richTextTemplates } from "../inline/inline-definition
export const Content: PageBlockFunction<PageBlocksContent> = ({ data }) => {
return (
<Section color={ data.color }>
<Section>
<Container
className={ `prose prose-lg ${
data.color === "primary" ? "prose-primary" : "dark:prose-dark"
}` }
className={ "prose prose-lg" }
data-tina-field={ tinaField(data, "body") }
size="large"
width="medium"
@@ -42,16 +40,6 @@ export const contentBlockSchema: Template = {
name: "body",
templates: richTextTemplates,
isBody: true
},
{
type: "string",
label: "Color",
name: "color",
options: [
{ label: "Default", value: "default" },
{ label: "Tint", value: "tint" },
{ label: "Primary", value: "primary" }
]
}
]
};