fix: 恢复工坊首页主理人身份卡
This commit is contained in:
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>
|
||||
|
||||
@@ -10,6 +10,68 @@
|
||||
.atelier-page {
|
||||
padding: 48px 40px 72px;
|
||||
}
|
||||
.atelier-founder {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 24px;
|
||||
}
|
||||
.atelier-founder image {
|
||||
width: 104px;
|
||||
height: 104px;
|
||||
border-radius: 24px;
|
||||
flex-shrink: 0;
|
||||
border: 1px solid #e4e2dd;
|
||||
background: #fff;
|
||||
}
|
||||
.atelier-monogram {
|
||||
width: 104px;
|
||||
height: 104px;
|
||||
border-radius: 24px;
|
||||
border: 1px solid #e4e2dd;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-family: "Songti SC", "Noto Serif CJK SC", serif;
|
||||
font-size: 48px;
|
||||
color: #1b1c1a;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.atelier-founder-name {
|
||||
font-size: 38px;
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.atelier-founder-role {
|
||||
font-size: 24px;
|
||||
color: #555953;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.atelier-tagrow {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.atelier-tag {
|
||||
font-size: 21px;
|
||||
padding: 4px 16px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid #deded5;
|
||||
background: #fff;
|
||||
color: #555953;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.atelier-tag-live {
|
||||
border-color: #c9d8c9;
|
||||
background: #f1f6f0;
|
||||
color: #2f5b36;
|
||||
}
|
||||
.atelier-hair {
|
||||
height: 1px;
|
||||
background: #e4e2dd;
|
||||
margin: 32px 0;
|
||||
}
|
||||
.atelier text {
|
||||
display: block;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user