fix: 恢复工坊首页主理人身份卡

This commit is contained in:
que01 committed 2026-10-16 09:26:00 +08:00
1 parent 0862a4c01d
commit 6de7dd8d9e
8 files changed
+305 -6

No files matched your search

@@ -20,8 +20,34 @@ function InquiryAction({ workspace, label }: Props & { label: string }) {
function Home({ workspace }: Props) {
const p = presentation(workspace, "home");
const config = object(workspace.brand.atelier);
const identity = object(config.identity);
const founderStatus = text(identity.status);
const founderExperience = text(identity.experience);
const b = workspace.brand;
return (
<View className="atelier-page">
<View className="atelier-founder" data-editor-target="atelier.home.identity">
{text(b.avatarUrl) ? (
<Image src={text(b.avatarUrl)} mode="aspectFill" />
) : (
<View className="atelier-monogram">{(text(b.founder) || "·").slice(0, 1)}</View>
)}
<View>
<Text className="atelier-founder-name">{text(b.founder) || "待补充主理人"}</Text>
<Text className="atelier-founder-role">
{[text(b.title), founderExperience].filter(Boolean).join(" · ")}
</Text>
<View className="atelier-tagrow">
{founderStatus && <Text className="atelier-tag atelier-tag-live">{founderStatus}</Text>}
{rows(identity.tags).map((item, index) => (
<Text className="atelier-tag" key={index}>
{item.title}
</Text>
))}
</View>
</View>
</View>
<View className="atelier-hair" />
<View className="atelier-intro" data-editor-target="atelier.home.intro">
<Text className="atelier-eyebrow">{p.eyebrow}</Text>
<Text className="atelier-title">{p.title}</Text>