feat: 新增独立工坊宣传模板及配置导入验证
This commit is contained in:
1 parent
bf4bbf81c7
commit
04e42b3a80
43 files changed
+5726
-13
No files matched your search
@@ -0,0 +1,395 @@
|
||||
import { useState, cloneElement, isValidElement, type ReactNode } from "react";
|
||||
import { View, Text, Image, Button } from "@tarojs/components";
|
||||
import Taro from "@tarojs/taro";
|
||||
import type { RuntimeWorkspace } from "@personal-brand/types";
|
||||
import type { TemplateProps } from "../../../apps/taro/src/runtime/template";
|
||||
import { navigate } from "../../../apps/taro/src/runtime/navigation";
|
||||
import { object, rows, text, presentation, offering } from "../../../apps/taro/src/runtime/content";
|
||||
import { inquiryPluginState } from "../../../apps/taro/src/runtime/plugins";
|
||||
import "./style.css";
|
||||
|
||||
type Props = { workspace: RuntimeWorkspace };
|
||||
function InquiryAction({ workspace, label }: Props & { label: string }) {
|
||||
const state = inquiryPluginState(workspace);
|
||||
return (
|
||||
<Button disabled={!state.enabled} onClick={() => navigate("inquiry")}>
|
||||
{state.enabled ? label : state.disabledHint || "咨询暂不可用"}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
function Home({ workspace }: Props) {
|
||||
const p = presentation(workspace, "home");
|
||||
const config = object(workspace.brand.atelier);
|
||||
return (
|
||||
<View className="atelier-page">
|
||||
<View className="atelier-intro" data-editor-target="atelier.home.intro">
|
||||
<Text className="atelier-eyebrow">{p.eyebrow}</Text>
|
||||
<Text className="atelier-title">{p.title}</Text>
|
||||
<Text className="atelier-body">{p.subtitle}</Text>
|
||||
<View className="atelier-actions">
|
||||
<InquiryAction workspace={workspace} label={p.primaryAction} />
|
||||
<Button className="atelier-secondary" onClick={() => navigate("offerings")}>
|
||||
{p.secondaryAction}
|
||||
</Button>
|
||||
</View>
|
||||
</View>
|
||||
<View className="atelier-badges" data-editor-target="atelier.home.badges">
|
||||
{rows(config.badges).map((item, index) => (
|
||||
<Text key={index}>✓ {item.title}</Text>
|
||||
))}
|
||||
</View>
|
||||
<View className="atelier-heading" data-editor-target="atelier.home.featuresHeading">
|
||||
<Text>{p.featuresTitle}</Text>
|
||||
<Text>{p.featuresEnglish}</Text>
|
||||
</View>
|
||||
<View className="atelier-stack" data-editor-target="atelier.home.features">
|
||||
{rows(config.features).map((item, index) => (
|
||||
<View className="atelier-card" key={index}>
|
||||
<View className="atelier-card-top">
|
||||
<Text className="atelier-number">{String(index + 1).padStart(2, "0")}</Text>
|
||||
<Text className="atelier-tag">{item.tag}</Text>
|
||||
</View>
|
||||
<Text className="atelier-card-title">{item.title}</Text>
|
||||
<Text className="atelier-body">{item.description}</Text>
|
||||
</View>
|
||||
))}
|
||||
</View>
|
||||
<View className="atelier-heading" data-editor-target="atelier.home.casesHeading">
|
||||
<View>
|
||||
<Text>{p.casesTitle}</Text>
|
||||
<Text className="atelier-caption">{p.casesSubtitle}</Text>
|
||||
</View>
|
||||
<Text>{p.caseAction}</Text>
|
||||
</View>
|
||||
<View className="atelier-cases">
|
||||
{workspace.offerings.map((item) => (
|
||||
<View
|
||||
className="atelier-case"
|
||||
key={item.id}
|
||||
data-editor-target="atelier.home.case"
|
||||
data-editor-record-id={item.id}
|
||||
onClick={() => navigate("detail", { id: item.id })}
|
||||
>
|
||||
{item.coverUrl ? (
|
||||
<Image src={item.coverUrl} mode="aspectFill" />
|
||||
) : (
|
||||
<View className="atelier-case-placeholder">
|
||||
<Text>↗</Text>
|
||||
</View>
|
||||
)}
|
||||
<View className="atelier-case-copy">
|
||||
<Text className="atelier-card-title">{item.name}</Text>
|
||||
<Text className="atelier-caption">{item.summary}</Text>
|
||||
<Text className="atelier-case-arrow">→</Text>
|
||||
</View>
|
||||
</View>
|
||||
))}
|
||||
</View>
|
||||
<View className="atelier-heading" data-editor-target="atelier.home.audienceHeading">
|
||||
<Text>{p.audienceTitle}</Text>
|
||||
<Text>{p.audienceEnglish}</Text>
|
||||
</View>
|
||||
<View className="atelier-audiences" data-editor-target="atelier.home.audiences">
|
||||
{rows(config.audiences).map((item, index) => (
|
||||
<View className="atelier-audience" key={index}>
|
||||
<Text className="atelier-symbol">{item.symbol}</Text>
|
||||
<Text>{item.title}</Text>
|
||||
<Text className="atelier-caption">{item.description}</Text>
|
||||
</View>
|
||||
))}
|
||||
</View>
|
||||
<View className="atelier-cta" data-editor-target="atelier.home.cta">
|
||||
<View>
|
||||
<Text className="atelier-card-title">{p.ctaTitle}</Text>
|
||||
<Text className="atelier-caption">{p.ctaSubtitle}</Text>
|
||||
</View>
|
||||
<Button onClick={() => navigate("profile")}>{p.ctaAction}</Button>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
function Services({ workspace }: Props) {
|
||||
const p = presentation(workspace, "offerings");
|
||||
const config = object(workspace.brand.atelier);
|
||||
return (
|
||||
<View className="atelier-page">
|
||||
<View className="atelier-intro" data-editor-target="atelier.offerings.intro">
|
||||
<Text className="atelier-eyebrow">{p.eyebrow}</Text>
|
||||
<Text className="atelier-title">{p.title}</Text>
|
||||
<Text className="atelier-body">{p.subtitle}</Text>
|
||||
</View>
|
||||
<View className="atelier-heading" data-editor-target="atelier.offerings.deliverablesHeading">
|
||||
<Text>{p.deliverablesTitle}</Text>
|
||||
<Text>{p.deliverablesEnglish}</Text>
|
||||
</View>
|
||||
<View className="atelier-stack" data-editor-target="atelier.offerings.deliverables">
|
||||
{rows(config.deliverables).map((item, index) => (
|
||||
<View className="atelier-card atelier-deliverable" key={index}>
|
||||
<Text className="atelier-number">{String(index + 1).padStart(2, "0")}</Text>
|
||||
<View>
|
||||
<View className="atelier-card-top">
|
||||
<Text className="atelier-card-title">{item.title}</Text>
|
||||
<Text className="atelier-tag">{item.tag}</Text>
|
||||
</View>
|
||||
<Text className="atelier-body">{item.description}</Text>
|
||||
</View>
|
||||
</View>
|
||||
))}
|
||||
</View>
|
||||
<View className="atelier-heading" data-editor-target="atelier.offerings.processHeading">
|
||||
<Text>{p.processTitle}</Text>
|
||||
<Text>{p.processEnglish}</Text>
|
||||
</View>
|
||||
<View className="atelier-process" data-editor-target="atelier.offerings.process">
|
||||
{rows(config.process).map((item, index) => (
|
||||
<View className="atelier-step" key={index}>
|
||||
<Text className="atelier-step-dot">{index + 1}</Text>
|
||||
<View>
|
||||
<Text className="atelier-card-title">{item.title}</Text>
|
||||
<Text className="atelier-body">{item.description}</Text>
|
||||
</View>
|
||||
</View>
|
||||
))}
|
||||
</View>
|
||||
<View className="atelier-heading" data-editor-target="atelier.offerings.proofHeading">
|
||||
<Text>{p.proofTitle}</Text>
|
||||
<Text>{p.proofEnglish}</Text>
|
||||
</View>
|
||||
<View className="atelier-proof" data-editor-target="atelier.offerings.proofs">
|
||||
{rows(config.proofs).map((item, index) => (
|
||||
<View className="atelier-proof-item" key={index}>
|
||||
<Text>◇</Text>
|
||||
<View>
|
||||
<Text className="atelier-card-title">{item.title}</Text>
|
||||
<Text className="atelier-body">{item.description}</Text>
|
||||
</View>
|
||||
</View>
|
||||
))}
|
||||
</View>
|
||||
{workspace.trustItems.map((item) => (
|
||||
<View
|
||||
className="atelier-card atelier-trust"
|
||||
key={item.id}
|
||||
data-editor-target={`trust:${item.type}`}
|
||||
data-editor-record-id={item.id}
|
||||
>
|
||||
<Text className="atelier-card-title">{item.title}</Text>
|
||||
<Text className="atelier-caption">{item.summary}</Text>
|
||||
<Text className="atelier-body">{item.content}</Text>
|
||||
</View>
|
||||
))}
|
||||
<View className="atelier-cta atelier-cta-large" data-editor-target="atelier.offerings.cta">
|
||||
<Text className="atelier-card-title">{p.ctaTitle}</Text>
|
||||
<Text className="atelier-body">{p.ctaSubtitle}</Text>
|
||||
<InquiryAction workspace={workspace} label={p.ctaAction} />
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
function Profile({ workspace }: Props) {
|
||||
const [opened, setOpened] = useState<number | null>(null);
|
||||
const b = workspace.brand;
|
||||
const p = presentation(workspace, "profile");
|
||||
const config = object(b.atelier);
|
||||
async function copyWechat() {
|
||||
try {
|
||||
await Taro.setClipboardData({ data: text(b.contactWechat) });
|
||||
} catch {
|
||||
void Taro.showToast({ title: "复制失败,请重试", icon: "none" });
|
||||
}
|
||||
}
|
||||
return (
|
||||
<View className="atelier-page">
|
||||
<View className="atelier-intro" data-editor-target="atelier.profile.intro">
|
||||
<Text className="atelier-eyebrow">{p.eyebrow}</Text>
|
||||
<Text className="atelier-title">{p.title}</Text>
|
||||
<Text className="atelier-body">{p.subtitle}</Text>
|
||||
</View>
|
||||
<View className="atelier-card">
|
||||
<View data-editor-target="atelier.profile.identity">
|
||||
<View className="atelier-identity">
|
||||
{text(b.avatarUrl) && <Image src={text(b.avatarUrl)} mode="aspectFill" />}
|
||||
<View>
|
||||
<Text className="atelier-card-title">{text(b.founder)}</Text>
|
||||
<Text className="atelier-caption">{text(b.title)}</Text>
|
||||
</View>
|
||||
</View>
|
||||
<Text className="atelier-body atelier-bio">{text(b.description)}</Text>
|
||||
</View>
|
||||
<View data-editor-target="atelier.profile.contact">
|
||||
<InquiryAction workspace={workspace} label={`${p.inquiryAction} ${p.timeHint}`} />
|
||||
<View className="atelier-wechat">
|
||||
<View>
|
||||
<Text className="atelier-caption">{p.wechatLabel}</Text>
|
||||
<Text>{text(b.contactWechat) || p.contactHint}</Text>
|
||||
</View>
|
||||
<Button
|
||||
className="atelier-copy"
|
||||
disabled={!text(b.contactWechat)}
|
||||
onClick={() => void copyWechat()}
|
||||
>
|
||||
{p.copyAction}
|
||||
</Button>
|
||||
</View>
|
||||
<Text className="atelier-contact-note">✓ {p.promise}</Text>
|
||||
<Button className="atelier-records" onClick={() => navigate("records")}>
|
||||
{p.recordsAction}
|
||||
</Button>
|
||||
</View>
|
||||
</View>
|
||||
<View className="atelier-faq-heading" data-editor-target="atelier.profile.faqHeading">
|
||||
<Text className="atelier-title">{p.faqTitle}</Text>
|
||||
<Text className="atelier-body">{p.faqSubtitle}</Text>
|
||||
</View>
|
||||
<View className="atelier-stack" data-editor-target="atelier.profile.faqs">
|
||||
{rows(config.faqs).map((item, index) => (
|
||||
<View className="atelier-card atelier-faq" key={index}>
|
||||
<Button
|
||||
className="atelier-question"
|
||||
onClick={() => setOpened(opened === index ? null : index)}
|
||||
aria-expanded={opened === index}
|
||||
>
|
||||
<Text className="atelier-number">{String(index + 1).padStart(2, "0")}</Text>
|
||||
<Text>{item.title}</Text>
|
||||
<Text>{opened === index ? "−" : "+"}</Text>
|
||||
</Button>
|
||||
{opened === index && (
|
||||
<Text className="atelier-body atelier-answer">{item.description}</Text>
|
||||
)}
|
||||
</View>
|
||||
))}
|
||||
</View>
|
||||
<View className="atelier-footer" data-editor-target="atelier.profile.footer">
|
||||
<Text>{p.footerQuote}</Text>
|
||||
<Text className="atelier-caption">{p.footerNote}</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
function Detail({ workspace, id }: Props & { id?: string }) {
|
||||
const found = workspace.offerings.find((item) => item.id === id);
|
||||
const p = presentation(workspace, "detail");
|
||||
if (!found)
|
||||
return (
|
||||
<View className="runtime-state">
|
||||
未找到该案例<Button onClick={() => navigate("home")}>返回首页</Button>
|
||||
</View>
|
||||
);
|
||||
const item = offering(found);
|
||||
return (
|
||||
<View className="atelier-page">
|
||||
<View
|
||||
data-editor-target="atelier-solopreneur.detail.projectDetail"
|
||||
data-editor-record-id={item.id}
|
||||
>
|
||||
{item.image && (
|
||||
<Image className="atelier-detail-image" src={item.image} mode="aspectFill" />
|
||||
)}
|
||||
<Text className="atelier-title">{item.name}</Text>
|
||||
<Text className="atelier-body">{item.desc}</Text>
|
||||
</View>
|
||||
<View
|
||||
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}
|
||||
</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">
|
||||
{p.backgroundTitle}
|
||||
</Text>
|
||||
</Text>
|
||||
<Text className="atelier-body">{item.details.background}</Text>
|
||||
<Text className="atelier-heading">
|
||||
<Text data-editor-target="atelier-solopreneur.detail.detailCopy">{p.conceptTitle}</Text>
|
||||
</Text>
|
||||
<Text className="atelier-body">{item.details.designConcept}</Text>
|
||||
<Text className="atelier-heading">
|
||||
<Text data-editor-target="atelier-solopreneur.detail.detailCopy">{p.craftsTitle}</Text>
|
||||
</Text>
|
||||
{item.details.crafts.map((line, index) => (
|
||||
<Text className="atelier-body" key={index}>
|
||||
{line}
|
||||
</Text>
|
||||
))}
|
||||
<Text className="atelier-heading">
|
||||
<Text data-editor-target="atelier-solopreneur.detail.detailCopy">{p.materialsTitle}</Text>
|
||||
</Text>
|
||||
{item.details.materialsList.map((row, index) => (
|
||||
<Text className="atelier-body" key={index}>
|
||||
{row.name} {row.spec}
|
||||
</Text>
|
||||
))}
|
||||
</View>
|
||||
<View
|
||||
className="atelier-detail-action"
|
||||
data-editor-target="atelier-solopreneur.detail.action"
|
||||
>
|
||||
<InquiryAction workspace={workspace} label={p.inquiryAction} />
|
||||
<Text className="atelier-caption">{p.inquiryHint}</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
const formTargets: Record<string, string> = {
|
||||
inquiry: "atelier.inquiry.intro",
|
||||
success: "atelier.success.copy",
|
||||
records: "atelier.records.copy",
|
||||
};
|
||||
export function TemplatePage({ workspace, page, children, offeringId }: TemplateProps) {
|
||||
if (page === "home")
|
||||
return (
|
||||
<View className="atelier">
|
||||
<Home workspace={workspace} />
|
||||
</View>
|
||||
);
|
||||
if (page === "offerings" || page === "service")
|
||||
return (
|
||||
<View className="atelier">
|
||||
<Services workspace={workspace} />
|
||||
</View>
|
||||
);
|
||||
if (page === "profile")
|
||||
return (
|
||||
<View className="atelier">
|
||||
<Profile workspace={workspace} />
|
||||
</View>
|
||||
);
|
||||
if (page === "detail")
|
||||
return (
|
||||
<View className="atelier">
|
||||
<Detail workspace={workspace} id={offeringId} />
|
||||
</View>
|
||||
);
|
||||
const p = presentation(workspace, "inquiry");
|
||||
const privacy = (
|
||||
<View className="atelier-privacy" data-editor-target="atelier.inquiry.privacy">
|
||||
<Text data-editor-target="atelier.inquiry.intro">{p.note}</Text>
|
||||
<Text className="atelier-card-title">{p.privacyTitle}</Text>
|
||||
<Text className="atelier-body">{p.privacyNote}</Text>
|
||||
<Text className="atelier-caption">{p.followupHint}</Text>
|
||||
</View>
|
||||
);
|
||||
const content =
|
||||
page === "inquiry" &&
|
||||
isValidElement<{ choiceStyle?: string; beforeSubmit?: ReactNode }>(children)
|
||||
? cloneElement(children, { choiceStyle: "chips", beforeSubmit: privacy })
|
||||
: children;
|
||||
return (
|
||||
<View className="atelier atelier-forms">
|
||||
<View data-editor-target={formTargets[page]}>{content}</View>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,450 @@
|
||||
.atelier {
|
||||
--brand-button-height: 96px;
|
||||
color: #1b1c1a;
|
||||
background: #fbf9f5;
|
||||
min-height: 100vh;
|
||||
font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
font-size: 28px;
|
||||
line-height: 1.65;
|
||||
}
|
||||
.atelier-page {
|
||||
padding: 48px 40px 72px;
|
||||
}
|
||||
.atelier text {
|
||||
display: block;
|
||||
}
|
||||
.atelier button {
|
||||
background: #183329;
|
||||
color: #fff;
|
||||
border-radius: 24px;
|
||||
font-size: 26px;
|
||||
padding: 16px 22px;
|
||||
}
|
||||
.atelier-intro {
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
.atelier-eyebrow {
|
||||
display: inline-block !important;
|
||||
background: #eaf0e9;
|
||||
color: #183329;
|
||||
border-radius: 100px;
|
||||
padding: 4px 16px;
|
||||
font-size: 21px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.atelier-title {
|
||||
font-family: "Songti SC", "Noto Serif CJK SC", serif;
|
||||
font-size: 46px;
|
||||
font-weight: 600;
|
||||
line-height: 1.45;
|
||||
white-space: pre-line;
|
||||
margin: 22px 0 16px;
|
||||
}
|
||||
.atelier-body {
|
||||
font-size: 26px;
|
||||
color: #555953;
|
||||
line-height: 1.8;
|
||||
white-space: pre-line;
|
||||
}
|
||||
.atelier-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
margin-top: 36px;
|
||||
}
|
||||
.atelier .atelier-secondary {
|
||||
background: #fff;
|
||||
color: #183329;
|
||||
border: 1px solid #ebe8e3;
|
||||
}
|
||||
.atelier-badges {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px 24px;
|
||||
font-size: 21px;
|
||||
color: #555953;
|
||||
min-height: 40px;
|
||||
}
|
||||
.atelier-heading {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin: 64px 0 24px;
|
||||
font-size: 30px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.atelier-heading > text:last-child {
|
||||
font-size: 19px;
|
||||
font-weight: 400;
|
||||
color: #777971;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.atelier-stack {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 24px;
|
||||
min-height: 32px;
|
||||
}
|
||||
.atelier-card {
|
||||
background: #fff;
|
||||
padding: 32px;
|
||||
border-radius: 30px;
|
||||
border: 1px solid #f0eeea;
|
||||
}
|
||||
.atelier-card-top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.atelier-number {
|
||||
font-family: Georgia, serif;
|
||||
font-size: 30px;
|
||||
font-style: italic;
|
||||
color: #8d7956;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.atelier-tag {
|
||||
color: #555953;
|
||||
background: #f3f3ee;
|
||||
border-radius: 8px;
|
||||
padding: 3px 10px;
|
||||
font-size: 19px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.atelier-card-title {
|
||||
font-size: 30px;
|
||||
font-weight: 600;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.atelier-caption {
|
||||
color: #777971;
|
||||
font-size: 21px;
|
||||
font-weight: 400;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.atelier-cases {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 20px;
|
||||
}
|
||||
.atelier-case {
|
||||
min-width: 0;
|
||||
border-radius: 24px;
|
||||
background: #fff;
|
||||
border: 1px solid #efede7;
|
||||
overflow: hidden;
|
||||
}
|
||||
.atelier-case image,
|
||||
.atelier-case-placeholder {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
}
|
||||
.atelier-case-placeholder {
|
||||
background: linear-gradient(135deg, #e1e9dd, #f1e4cd);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font:
|
||||
72px Georgia,
|
||||
serif;
|
||||
color: #183329;
|
||||
}
|
||||
.atelier-case-copy {
|
||||
padding: 20px;
|
||||
}
|
||||
.atelier-case .atelier-card-title {
|
||||
font-size: 27px;
|
||||
}
|
||||
.atelier-case-arrow {
|
||||
color: #8d7956;
|
||||
margin-top: 12px;
|
||||
text-align: right;
|
||||
}
|
||||
.atelier-audiences {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 16px;
|
||||
min-height: 40px;
|
||||
}
|
||||
.atelier-audience {
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
border-radius: 24px;
|
||||
padding: 22px 8px;
|
||||
font-size: 25px;
|
||||
}
|
||||
.atelier-symbol {
|
||||
font-size: 36px;
|
||||
color: #183329;
|
||||
}
|
||||
.atelier-cta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
justify-content: space-between;
|
||||
background: #183329;
|
||||
color: #fff;
|
||||
border-radius: 28px;
|
||||
padding: 30px;
|
||||
margin-top: 56px;
|
||||
}
|
||||
.atelier-cta > view {
|
||||
flex: 1;
|
||||
}
|
||||
.atelier-cta .atelier-caption,
|
||||
.atelier-cta .atelier-body {
|
||||
color: #c5d1c6;
|
||||
}
|
||||
.atelier-cta button {
|
||||
--brand-button-height: 72px;
|
||||
width: auto;
|
||||
background: #fff;
|
||||
color: #183329;
|
||||
flex-shrink: 0;
|
||||
font-size: 23px;
|
||||
}
|
||||
.atelier-cta-large {
|
||||
display: block;
|
||||
}
|
||||
.atelier-cta-large button {
|
||||
margin-top: 24px;
|
||||
width: 100%;
|
||||
background: #fcdfb1;
|
||||
}
|
||||
.atelier-deliverable {
|
||||
display: grid;
|
||||
grid-template-columns: 42px 1fr;
|
||||
gap: 22px;
|
||||
}
|
||||
.atelier-deliverable .atelier-card-top {
|
||||
align-items: start;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.atelier-deliverable .atelier-card-title {
|
||||
font-size: 29px;
|
||||
}
|
||||
.atelier-process {
|
||||
padding-left: 12px;
|
||||
min-height: 40px;
|
||||
}
|
||||
.atelier-step {
|
||||
display: grid;
|
||||
grid-template-columns: 38px 1fr;
|
||||
gap: 20px;
|
||||
position: relative;
|
||||
padding-bottom: 36px;
|
||||
}
|
||||
.atelier-step:not(:last-child)::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 34px;
|
||||
bottom: 0;
|
||||
left: 16px;
|
||||
border-left: 1px solid #deded5;
|
||||
}
|
||||
.atelier-step-dot {
|
||||
background: #183329;
|
||||
color: #fff;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 50%;
|
||||
font-size: 22px;
|
||||
text-align: center;
|
||||
line-height: 34px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.atelier-proof {
|
||||
background: #f5f3ed;
|
||||
padding: 30px;
|
||||
border-radius: 26px;
|
||||
min-height: 40px;
|
||||
}
|
||||
.atelier-proof-item {
|
||||
display: grid;
|
||||
grid-template-columns: 30px 1fr;
|
||||
gap: 18px;
|
||||
margin-bottom: 26px;
|
||||
}
|
||||
.atelier-proof-item > text {
|
||||
color: #8d7956;
|
||||
}
|
||||
.atelier-proof-item:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.atelier-identity {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
}
|
||||
.atelier-identity image {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.atelier-bio {
|
||||
margin: 26px 0 32px;
|
||||
}
|
||||
.atelier-wechat {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 24px;
|
||||
background: #f5f3ed;
|
||||
border-radius: 22px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.atelier-wechat > view {
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.atelier .atelier-copy {
|
||||
--brand-button-height: 56px;
|
||||
width: auto;
|
||||
padding: 6px 14px;
|
||||
font-size: 20px;
|
||||
color: #183329;
|
||||
background: #e8eae3;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.atelier-contact-note {
|
||||
font-size: 20px;
|
||||
text-align: center;
|
||||
margin-top: 24px;
|
||||
color: #777971;
|
||||
}
|
||||
.atelier .atelier-records {
|
||||
--brand-button-height: 60px;
|
||||
background: transparent;
|
||||
color: #183329;
|
||||
font-size: 22px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
.atelier-faq-heading {
|
||||
margin: 60px 0 30px;
|
||||
}
|
||||
.atelier-faq {
|
||||
padding: 24px;
|
||||
}
|
||||
.atelier .atelier-question {
|
||||
--brand-button-height: 72px;
|
||||
display: grid;
|
||||
grid-template-columns: 36px 1fr 22px;
|
||||
gap: 16px;
|
||||
background: transparent;
|
||||
color: #183329;
|
||||
text-align: left;
|
||||
padding: 4px;
|
||||
}
|
||||
.atelier-question .atelier-number {
|
||||
font-size: 22px;
|
||||
}
|
||||
.atelier-answer {
|
||||
margin: 24px 0 8px 52px;
|
||||
}
|
||||
.atelier-footer {
|
||||
text-align: center;
|
||||
margin-top: 90px;
|
||||
padding: 20px 0;
|
||||
}
|
||||
.atelier-footer > text:first-child {
|
||||
font:
|
||||
italic 30px/1.6 Georgia,
|
||||
serif;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.atelier-detail-image {
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
border-radius: 28px;
|
||||
}
|
||||
.atelier-detail-action {
|
||||
margin-top: 50px;
|
||||
}
|
||||
.atelier-detail-action .atelier-caption {
|
||||
text-align: center;
|
||||
margin-top: 16px;
|
||||
}
|
||||
.atelier-forms .inquiry-page,
|
||||
.atelier-forms .success-page,
|
||||
.atelier-forms .records-page {
|
||||
background: #fbf9f5;
|
||||
padding: 40px;
|
||||
}
|
||||
.atelier-forms .form-intro {
|
||||
background: #f2f0e9;
|
||||
border-radius: 26px;
|
||||
padding: 30px;
|
||||
}
|
||||
.atelier-forms .form-field {
|
||||
background: #fff;
|
||||
border-radius: 26px;
|
||||
padding: 28px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
.atelier-forms .field-input {
|
||||
background: #f5f4ef;
|
||||
border: 1px solid #efede7;
|
||||
border-radius: 18px;
|
||||
}
|
||||
.atelier-forms .form-title {
|
||||
color: #183329;
|
||||
font-family: "Songti SC", serif;
|
||||
}
|
||||
.atelier-forms .submit-button {
|
||||
background: #183329;
|
||||
}
|
||||
.atelier-privacy {
|
||||
padding: 0 40px 60px;
|
||||
}
|
||||
.atelier-privacy .atelier-caption {
|
||||
margin-top: 24px;
|
||||
}
|
||||
.atelier-forms .option-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
}
|
||||
.atelier-forms .choice {
|
||||
--brand-button-height: 80px;
|
||||
color: #555953;
|
||||
background: #f5f4ef;
|
||||
border: 1px solid transparent;
|
||||
font-size: 23px;
|
||||
padding: 14px 10px;
|
||||
}
|
||||
.atelier-forms .choice.selected {
|
||||
color: #183329;
|
||||
background: #eaf0e9;
|
||||
border-color: #183329;
|
||||
}
|
||||
.atelier-forms .atelier-privacy {
|
||||
padding: 28px;
|
||||
background: #f2f0e9;
|
||||
border-radius: 24px;
|
||||
margin: 10px 0 28px;
|
||||
}
|
||||
.atelier-trust {
|
||||
margin-top: 30px;
|
||||
}
|
||||
.atelier-forms .inquiry-form {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 0;
|
||||
}
|
||||
.atelier .required {
|
||||
display: inline;
|
||||
color: #8d7956;
|
||||
}
|
||||
.atelier-forms .field-grid {
|
||||
gap: 0;
|
||||
}
|
||||
.atelier-forms .field-textarea {
|
||||
min-height: 220px;
|
||||
}
|
||||
Reference in new issue
Block a user