feat: 增加可视化模板页面编辑器
This commit is contained in:
1 parent
9d2038cc93
commit
c5af790554
24 files changed
+773
-129
No files matched your search
@@ -21,7 +21,7 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
return (
|
||||
<View className="editorial-home">
|
||||
<View className="page">
|
||||
<View className="founder-card">
|
||||
<View className="founder-card" data-editor-target="editorial.home.identity">
|
||||
{text(b.avatarUrl) && (
|
||||
<Image className="avatar" src={text(b.avatarUrl)} mode="aspectFill" />
|
||||
)}
|
||||
@@ -32,7 +32,11 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
</View>
|
||||
{p.founderBadge && <Text className="badge">{p.founderBadge}</Text>}
|
||||
</View>
|
||||
<View className="hero" onClick={() => navigate("offerings")}>
|
||||
<View
|
||||
className="hero"
|
||||
data-editor-target="editorial.home.hero"
|
||||
onClick={() => navigate("offerings")}
|
||||
>
|
||||
<Image className="hero-image" src={text(b.heroImage)} mode="aspectFill" />
|
||||
<View className="hero-shade" />
|
||||
<View className="hero-copy">
|
||||
@@ -46,7 +50,7 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
<Text className="hero-button">{text(hero.cta) || "查看作品"}</Text>
|
||||
</View>
|
||||
</View>
|
||||
<View className="intro">
|
||||
<View className="intro" data-editor-target="editorial.home.proof">
|
||||
<Text className="eyebrow dark">{p.proofEyebrow}</Text>
|
||||
<Text className="section-title">{p.proofTitle}</Text>
|
||||
<Text className="body">{credential?.content}</Text>
|
||||
@@ -60,7 +64,7 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
))}
|
||||
</View>
|
||||
</View>
|
||||
<View className="trust">
|
||||
<View className="trust" data-editor-target="editorial.home.manifesto">
|
||||
<Text className="eyebrow">{p.manifestoEyebrow}</Text>
|
||||
<Text className="section-title light">{p.manifestoTitle}</Text>
|
||||
{t.pillars?.map((item, index) => (
|
||||
@@ -71,7 +75,7 @@ function Home({ workspace }: { workspace: RuntimeWorkspace }) {
|
||||
))}
|
||||
</View>
|
||||
<View className="section">
|
||||
<View className="section-head">
|
||||
<View className="section-head" data-editor-target="editorial.home.works">
|
||||
<View>
|
||||
<Text className="eyebrow dark">{p.worksEyebrow}</Text>
|
||||
<Text className="section-title">{p.worksTitle}</Text>
|
||||
|
||||
@@ -157,9 +157,17 @@
|
||||
"description": "用简洁的语言解释你的项目方法、代表作品和合作流程。",
|
||||
"page": "home",
|
||||
"target": "brand",
|
||||
"previewTargets": [
|
||||
{ "key": "editorial.home.identity", "label": "主理人标签" },
|
||||
{ "key": "editorial.home.hero", "label": "首页主视觉" },
|
||||
{ "key": "editorial.home.proof", "label": "信任介绍" },
|
||||
{ "key": "editorial.home.manifesto", "label": "品牌主张" },
|
||||
{ "key": "editorial.home.works", "label": "代表案例标题" }
|
||||
],
|
||||
"fields": [
|
||||
{
|
||||
"key": "founderBadge",
|
||||
"previewTarget": "editorial.home.identity",
|
||||
"binding": "brand.config.visualPresentation.home.founderBadge",
|
||||
"label": "主理人标签",
|
||||
"input": "text",
|
||||
@@ -167,6 +175,7 @@
|
||||
},
|
||||
{
|
||||
"key": "heroImage",
|
||||
"previewTarget": "editorial.home.hero",
|
||||
"binding": "brand.config.heroImage",
|
||||
"label": "首页项目主图",
|
||||
"help": "展示真实别墅、入户门或空间细节,体现项目能力。",
|
||||
@@ -175,36 +184,42 @@
|
||||
},
|
||||
{
|
||||
"key": "proofTitle",
|
||||
"previewTarget": "editorial.home.proof",
|
||||
"binding": "brand.config.visualPresentation.home.proofTitle",
|
||||
"label": "信任介绍标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "proofEyebrow",
|
||||
"previewTarget": "editorial.home.proof",
|
||||
"binding": "brand.config.visualPresentation.home.proofEyebrow",
|
||||
"label": "信任介绍小标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "manifestoEyebrow",
|
||||
"previewTarget": "editorial.home.manifesto",
|
||||
"binding": "brand.config.visualPresentation.home.manifestoEyebrow",
|
||||
"label": "品牌主张小标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "manifestoTitle",
|
||||
"previewTarget": "editorial.home.manifesto",
|
||||
"binding": "brand.config.visualPresentation.home.manifestoTitle",
|
||||
"label": "品牌主张",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "worksEyebrow",
|
||||
"previewTarget": "editorial.home.works",
|
||||
"binding": "brand.config.visualPresentation.home.worksEyebrow",
|
||||
"label": "代表案例小标题",
|
||||
"input": "text"
|
||||
},
|
||||
{
|
||||
"key": "worksTitle",
|
||||
"previewTarget": "editorial.home.works",
|
||||
"binding": "brand.config.visualPresentation.home.worksTitle",
|
||||
"label": "代表案例标题",
|
||||
"input": "text"
|
||||
|
||||
Reference in new issue
Block a user