fix: 完善工坊模板安装预览与详情样例
This commit is contained in:
1 parent
5313fd9d32
commit
50753db79d
16 files changed
+496
-26
No files matched your search
@@ -292,19 +292,35 @@ function Detail({ workspace, id }: Props & { id?: string }) {
|
||||
data-editor-target="atelier-solopreneur.detail.projectDetail"
|
||||
data-editor-record-id={item.id}
|
||||
>
|
||||
<View className="atelier-card">
|
||||
<Text>
|
||||
<Text data-editor-target="atelier-solopreneur.detail.detailCopy">{p.priceLabel}</Text>:
|
||||
{item.priceRange}
|
||||
<View className="atelier-card atelier-detail-facts">
|
||||
<View className="atelier-detail-row">
|
||||
<Text
|
||||
className="atelier-detail-label"
|
||||
data-editor-target="atelier-solopreneur.detail.detailCopy"
|
||||
>
|
||||
{p.priceLabel}
|
||||
</Text>
|
||||
<Text className="atelier-detail-value">{item.priceRange}</Text>
|
||||
</View>
|
||||
<View className="atelier-detail-row">
|
||||
<Text
|
||||
className="atelier-detail-label"
|
||||
data-editor-target="atelier-solopreneur.detail.detailCopy"
|
||||
>
|
||||
{p.spaceLabel}
|
||||
</Text>
|
||||
<Text className="atelier-detail-value">{text(item.presentation.spaceType)}</Text>
|
||||
</View>
|
||||
<View className="atelier-detail-meta">
|
||||
{[item.category, item.area, item.series].filter(Boolean).map((value, index) => (
|
||||
<Text className="atelier-tag" key={index}>
|
||||
{value}
|
||||
</Text>
|
||||
))}
|
||||
</View>
|
||||
<Text className="atelier-caption atelier-detail-keywords">
|
||||
{item.keywords.join(" · ")}
|
||||
</Text>
|
||||
<Text>
|
||||
<Text data-editor-target="atelier-solopreneur.detail.detailCopy">{p.spaceLabel}</Text>:
|
||||
{text(item.presentation.spaceType)}
|
||||
</Text>
|
||||
<Text>
|
||||
{item.category} {item.area} {item.series}
|
||||
</Text>
|
||||
<Text>{item.keywords.join(" · ")}</Text>
|
||||
</View>
|
||||
<Text className="atelier-heading">
|
||||
<Text data-editor-target="atelier-solopreneur.detail.detailCopy">
|
||||
|
||||
@@ -366,6 +366,37 @@
|
||||
.atelier-detail-action {
|
||||
margin-top: 50px;
|
||||
}
|
||||
.atelier-detail-facts {
|
||||
margin-top: 28px;
|
||||
}
|
||||
.atelier-detail-row {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 24px;
|
||||
}
|
||||
.atelier-detail-row + .atelier-detail-row {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.atelier-detail-label {
|
||||
flex: 0 0 112px;
|
||||
color: #777b73;
|
||||
}
|
||||
.atelier-detail-value {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.atelier-detail-meta {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
margin-top: 28px;
|
||||
padding-top: 24px;
|
||||
border-top: 1px solid #eeece6;
|
||||
}
|
||||
.atelier-detail-keywords {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.atelier-detail-action .atelier-caption {
|
||||
text-align: center;
|
||||
margin-top: 16px;
|
||||
|
||||
Reference in new issue
Block a user