feat: 增加可视化模板页面编辑器

This commit is contained in:
que01 committed 2026-10-08 18:00:36 +08:00
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>