还原 fwnet 模板的首屏呼吸光晕 #26
@@ -14,6 +14,8 @@ final class BlockTemplates
|
|||||||
|
|
||||||
public const DESIGN_STUDIO_IMAGE = '/assets/system/design-studio.webp';
|
public const DESIGN_STUDIO_IMAGE = '/assets/system/design-studio.webp';
|
||||||
|
|
||||||
|
public const BISTRO_IMAGE = '/assets/system/bistro-seasonal.webp';
|
||||||
|
|
||||||
public const ELEMENT_GROUPS = [
|
public const ELEMENT_GROUPS = [
|
||||||
'text-elements' => ['文字与列表', [
|
'text-elements' => ['文字与列表', [
|
||||||
'paragraph' => ['段落', '<p>填写正文。</p>'],
|
'paragraph' => ['段落', '<p>填写正文。</p>'],
|
||||||
@@ -72,12 +74,19 @@ final class BlockTemplates
|
|||||||
'list' => ['步骤列表', '<ol><li>填写第一步</li><li>填写第二步</li><li>填写第三步</li></ol>'],
|
'list' => ['步骤列表', '<ol><li>填写第一步</li><li>填写第二步</li><li>填写第三步</li></ol>'],
|
||||||
'notice' => ['重点提示', '<div class="studio-notice"><h3>填写重要提示</h3><p>说明访客需要知悉的事项、条件或时间。</p></div>'],
|
'notice' => ['重点提示', '<div class="studio-notice"><h3>填写重要提示</h3><p>说明访客需要知悉的事项、条件或时间。</p></div>'],
|
||||||
'policy-summary' => ['条款摘要', '<div class="studio-two-column"><div><h3>适用范围</h3><p>说明这项条款适用于哪些访客或服务。</p></div><div><h3>生效与联系</h3><p>填写生效日期,以及有疑问时的联系方式。</p></div></div>'],
|
'policy-summary' => ['条款摘要', '<div class="studio-two-column"><div><h3>适用范围</h3><p>说明这项条款适用于哪些访客或服务。</p></div><div><h3>生效与联系</h3><p>填写生效日期,以及有疑问时的联系方式。</p></div></div>'],
|
||||||
|
'status-summary' => ['服务状态摘要', <<<'HTML'
|
||||||
|
<div class="studio-status-summary">
|
||||||
|
<div><h3>服务运行正常</h3><p>查看各项服务状态及最近的维护记录。</p></div>
|
||||||
|
<span class="studio-badge studio-status-ok">正常运行</span>
|
||||||
|
</div>
|
||||||
|
HTML],
|
||||||
]],
|
]],
|
||||||
'cover' => ['封面与横幅', [
|
'cover' => ['封面与横幅', [
|
||||||
'cover' => ['图文封面', '<div class="studio-cover"><img src="/assets/system/sample.webp" alt="" loading="lazy"><div><h3>用一句话介绍你的产品</h3><p>在首段说明访客能获得什么。</p><a class="button button-primary" href="/">查看服务</a></div></div>'],
|
'cover' => ['图文封面', '<div class="studio-cover"><img src="/assets/system/sample.webp" alt="" loading="lazy"><div><h3>用一句话介绍你的产品</h3><p>在首段说明访客能获得什么。</p><a class="button button-primary" href="/">查看服务</a></div></div>'],
|
||||||
'banner' => ['横幅', '<div class="studio-banner"><h3>用一句话介绍你的项目</h3><p>简要说明项目能为访客做什么。</p><a class="button button-primary" href="/">了解更多</a></div>'],
|
'banner' => ['横幅', '<div class="studio-banner"><h3>用一句话介绍你的项目</h3><p>简要说明项目能为访客做什么。</p><a class="button button-primary" href="/">了解更多</a></div>'],
|
||||||
'two-actions' => ['双按钮横幅', '<div class="studio-banner studio-banner-two"><div><h3>选择下一步</h3><p>介绍访客可以立即做什么。</p></div><div class="actions"><a class="button button-primary" href="/">查看服务</a><a class="button button-outline" href="/#contact">联系我们</a></div></div>'],
|
'two-actions' => ['双按钮横幅', '<div class="studio-banner studio-banner-two"><div><h3>选择下一步</h3><p>介绍访客可以立即做什么。</p></div><div class="actions"><a class="button button-primary" href="/">查看服务</a><a class="button button-outline" href="/#contact">联系我们</a></div></div>'],
|
||||||
'announcement-banner' => ['公告横幅', '<div class="studio-banner studio-banner-two"><div><p class="overline">站点公告</p><h3>填写公告主题</h3><p>写明变动时间和受影响的访客。</p></div><a class="button button-outline" href="/articles">查看详情</a></div>'],
|
'announcement-banner' => ['公告横幅', '<div class="studio-banner studio-banner-two"><div><p class="overline">站点公告</p><h3>填写公告主题</h3><p>写明变动时间和受影响的访客。</p></div><a class="button button-outline" href="/articles">查看详情</a></div>'],
|
||||||
|
'seasonal-special' => ['时令推荐', '<div class="studio-split studio-seasonal"><img src="' . self::BISTRO_IMAGE . '" alt="番茄、布拉塔奶酪和烤面包" loading="lazy"><div><p class="overline">本季主厨推荐</p><h3>烤番茄与布拉塔奶酪</h3><p>搭配香草、橄榄油和酸面包,适合两人分享。</p><a class="button button-outline" href="#contact">咨询当日供应</a></div></div>'],
|
||||||
]],
|
]],
|
||||||
'layout' => ['图文与布局', [
|
'layout' => ['图文与布局', [
|
||||||
'image' => ['产品图文', '<div class="studio-split"><img src="/assets/system/sample.webp" alt="" loading="lazy"><div><h3>介绍主题</h3><p>在这里说明图片或产品。</p></div></div>'],
|
'image' => ['产品图文', '<div class="studio-split"><img src="/assets/system/sample.webp" alt="" loading="lazy"><div><h3>介绍主题</h3><p>在这里说明图片或产品。</p></div></div>'],
|
||||||
@@ -106,6 +115,19 @@ final class BlockTemplates
|
|||||||
'pricing' => ['双方案报价', '<div class="card-grid price-grid studio-pricing"><article class="content-card price-card"><h3>基础方案</h3><p class="price-value">填写价格</p><p>填写方案包含的服务。</p><a class="button button-outline" href="/#contact">咨询基础方案</a></article><article class="content-card price-card"><h3>进阶方案</h3><p class="price-value">填写价格</p><p>填写扩展服务或权益。</p><a class="button button-primary" href="/#contact">咨询进阶方案</a></article></div>'],
|
'pricing' => ['双方案报价', '<div class="card-grid price-grid studio-pricing"><article class="content-card price-card"><h3>基础方案</h3><p class="price-value">填写价格</p><p>填写方案包含的服务。</p><a class="button button-outline" href="/#contact">咨询基础方案</a></article><article class="content-card price-card"><h3>进阶方案</h3><p class="price-value">填写价格</p><p>填写扩展服务或权益。</p><a class="button button-primary" href="/#contact">咨询进阶方案</a></article></div>'],
|
||||||
'reference-code' => ['说明与代码示例', '<div class="studio-split"><div><p class="overline">操作示例</p><h3>运行一次检查</h3><p>说明命令的适用环境和执行后的结果。</p></div><pre class="studio-code"><code>curl -I https://example.com</code></pre></div>'],
|
'reference-code' => ['说明与代码示例', '<div class="studio-split"><div><p class="overline">操作示例</p><h3>运行一次检查</h3><p>说明命令的适用环境和执行后的结果。</p></div><pre class="studio-code"><code>curl -I https://example.com</code></pre></div>'],
|
||||||
'feature-matrix' => ['功能矩阵', '<table><caption>各方案功能对照</caption><thead><tr><th scope="col">功能</th><th scope="col">基础版</th><th scope="col">团队版</th></tr></thead><tbody><tr><th scope="row">工作空间</th><td>1 个</td><td>不限</td></tr><tr><th scope="row">协作成员</th><td>个人</td><td>团队</td></tr><tr><th scope="row">支持方式</th><td>帮助文档</td><td>邮件支持</td></tr></tbody></table>'],
|
'feature-matrix' => ['功能矩阵', '<table><caption>各方案功能对照</caption><thead><tr><th scope="col">功能</th><th scope="col">基础版</th><th scope="col">团队版</th></tr></thead><tbody><tr><th scope="row">工作空间</th><td>1 个</td><td>不限</td></tr><tr><th scope="row">协作成员</th><td>个人</td><td>团队</td></tr><tr><th scope="row">支持方式</th><td>帮助文档</td><td>邮件支持</td></tr></tbody></table>'],
|
||||||
|
'service-status-list' => ['服务状态列表', <<<'HTML'
|
||||||
|
<ul class="studio-labeled-rows">
|
||||||
|
<li><div><h3>网站与控制台</h3><p>浏览页面、登录和管理资源。</p></div><span class="studio-badge studio-status-ok">正常运行</span></li>
|
||||||
|
<li><div><h3>文件存储</h3><p>文件传输和资源读取。</p></div><span class="studio-badge studio-status-ok">正常运行</span></li>
|
||||||
|
<li><div><h3>消息通知</h3><p>邮件和站内通知。</p></div><span class="studio-badge studio-status-watch">计划维护</span></li>
|
||||||
|
</ul>
|
||||||
|
HTML],
|
||||||
|
'incident-log' => ['事件记录', <<<'HTML'
|
||||||
|
<div class="faq studio-incident-log">
|
||||||
|
<details><summary>已解决 · 通知发送延迟</summary><div><p>填写事件发生时间、受影响范围和恢复措施。</p></div></details>
|
||||||
|
<details><summary>已完成 · 例行数据库维护</summary><div><p>记录维护结束时间以及用户是否需要重新登录。</p></div></details>
|
||||||
|
</div>
|
||||||
|
HTML],
|
||||||
]],
|
]],
|
||||||
'actions' => ['导航与引导', [
|
'actions' => ['导航与引导', [
|
||||||
'service-catalog' => ['目录卡片', '', '', self::CATALOG_FEED],
|
'service-catalog' => ['目录卡片', '', '', self::CATALOG_FEED],
|
||||||
@@ -115,6 +137,20 @@ final class BlockTemplates
|
|||||||
'contact-card' => ['联系方式', '<div class="studio-contact"><div><h3>联系团队</h3><p>填写咨询范围与回复时间。</p></div><dl class="studio-definitions"><dt>电子邮件</dt><dd><a href="mailto:hello@example.com">hello@example.com</a></dd><dt>服务时间</dt><dd>填写工作时间</dd></dl></div>'],
|
'contact-card' => ['联系方式', '<div class="studio-contact"><div><h3>联系团队</h3><p>填写咨询范围与回复时间。</p></div><dl class="studio-definitions"><dt>电子邮件</dt><dd><a href="mailto:hello@example.com">hello@example.com</a></dd><dt>服务时间</dt><dd>填写工作时间</dd></dl></div>'],
|
||||||
'support-channels' => ['支持渠道', '<div class="studio-two-column"><article class="content-card"><h3>查找自助资料</h3><p>按问题类型查阅文档与最新公告。</p><a href="/articles">查看帮助文章</a></article><article class="content-card"><h3>联系支持团队</h3><p>请注明当前情况、操作步骤及希望得到的帮助。</p><a href="mailto:hello@example.com">发送邮件</a></article></div>'],
|
'support-channels' => ['支持渠道', '<div class="studio-two-column"><article class="content-card"><h3>查找自助资料</h3><p>按问题类型查阅文档与最新公告。</p><a href="/articles">查看帮助文章</a></article><article class="content-card"><h3>联系支持团队</h3><p>请注明当前情况、操作步骤及希望得到的帮助。</p><a href="mailto:hello@example.com">发送邮件</a></article></div>'],
|
||||||
'download-center' => ['下载中心', '<ul class="studio-resources"><li><a href="/articles">最新版安装包</a><span>安装文件</span></li><li><a href="/articles">快速开始指南</a><span>说明文档</span></li><li><a href="/articles">版本变更记录</a><span>更新内容</span></li></ul>'],
|
'download-center' => ['下载中心', '<ul class="studio-resources"><li><a href="/articles">最新版安装包</a><span>安装文件</span></li><li><a href="/articles">快速开始指南</a><span>说明文档</span></li><li><a href="/articles">版本变更记录</a><span>更新内容</span></li></ul>'],
|
||||||
|
'version-downloads' => ['按平台下载', <<<'HTML'
|
||||||
|
<div class="card-grid studio-downloads">
|
||||||
|
<article class="content-card"><h3>Windows</h3><p>64 位桌面安装包。</p><a class="button button-outline" href="/articles">查看 Windows 版本</a></article>
|
||||||
|
<article class="content-card"><h3>macOS</h3><p>适用于 Apple 芯片与 Intel 芯片的版本。</p><a class="button button-outline" href="/articles">查看 macOS 版本</a></article>
|
||||||
|
<article class="content-card"><h3>Linux</h3><p>查看支持的发行版及安装方法。</p><a class="button button-outline" href="/articles">查看 Linux 版本</a></article>
|
||||||
|
</div>
|
||||||
|
HTML],
|
||||||
|
'support-triage' => ['按问题找帮助', <<<'HTML'
|
||||||
|
<ul class="studio-labeled-rows">
|
||||||
|
<li><div><h3>账号与访问</h3><p>登录、权限与账号管理。</p></div><a href="/articles">查看帮助</a></li>
|
||||||
|
<li><div><h3>安装与更新</h3><p>获取版本并了解更新流程。</p></div><a href="/articles">查阅指南</a></li>
|
||||||
|
<li><div><h3>反馈故障</h3><p>联系支持团队,并附上发生时间与操作步骤。</p></div><a href="mailto:hello@example.com">发送邮件</a></li>
|
||||||
|
</ul>
|
||||||
|
HTML],
|
||||||
]],
|
]],
|
||||||
'events' => ['活动与场地', [
|
'events' => ['活动与场地', [
|
||||||
'event-agenda' => ['当日议程', '<ol class="studio-agenda"><li><p>09:30</p><div><h3>签到与开场</h3><p>开放入口并介绍当天安排。</p></div><span>主会场</span></li><li><p>10:30</p><div><h3>专题工作坊</h3><p>跟随主持人完成一次实践。</p></div><span>工作区</span></li><li><p>14:00</p><div><h3>圆桌交流</h3><p>分享实践经验并回答问题。</p></div><span>交流区</span></li></ol>'],
|
'event-agenda' => ['当日议程', '<ol class="studio-agenda"><li><p>09:30</p><div><h3>签到与开场</h3><p>开放入口并介绍当天安排。</p></div><span>主会场</span></li><li><p>10:30</p><div><h3>专题工作坊</h3><p>跟随主持人完成一次实践。</p></div><span>工作区</span></li><li><p>14:00</p><div><h3>圆桌交流</h3><p>分享实践经验并回答问题。</p></div><span>交流区</span></li></ol>'],
|
||||||
@@ -122,12 +158,48 @@ final class BlockTemplates
|
|||||||
'venue-guide' => ['到场指南', '<div class="studio-two-column"><article class="content-card"><h3>开放与入场</h3><p>填写开放时间、预约方式和入口位置。</p></article><article class="content-card"><h3>交通与无障碍</h3><p>填写推荐交通方式和无障碍通道位置。</p></article></div>'],
|
'venue-guide' => ['到场指南', '<div class="studio-two-column"><article class="content-card"><h3>开放与入场</h3><p>填写开放时间、预约方式和入口位置。</p></article><article class="content-card"><h3>交通与无障碍</h3><p>填写推荐交通方式和无障碍通道位置。</p></article></div>'],
|
||||||
'opening-hours' => ['开放时间与地址', '<div class="studio-two-column"><article class="content-card"><h3>开放时间</h3><dl class="studio-definitions"><dt>周一至周五</dt><dd>09:00–18:00</dd><dt>周末</dt><dd>10:00–16:00</dd></dl></article><article class="content-card"><h3>地址与入口</h3><p>填写地址、楼层和入口信息。</p><a href="/#contact">联系场馆</a></article></div>'],
|
'opening-hours' => ['开放时间与地址', '<div class="studio-two-column"><article class="content-card"><h3>开放时间</h3><dl class="studio-definitions"><dt>周一至周五</dt><dd>09:00–18:00</dd><dt>周末</dt><dd>10:00–16:00</dd></dl></article><article class="content-card"><h3>地址与入口</h3><p>填写地址、楼层和入口信息。</p><a href="/#contact">联系场馆</a></article></div>'],
|
||||||
'event-registration' => ['活动报名', '<div class="studio-banner studio-banner-two"><div><p class="overline">参加活动</p><h3>预留你的席位</h3><p>报名时请附上姓名和到场人数。</p></div><a class="button button-primary" href="mailto:hello@example.com">邮件报名</a></div>'],
|
'event-registration' => ['活动报名', '<div class="studio-banner studio-banner-two"><div><p class="overline">参加活动</p><h3>预留你的席位</h3><p>报名时请附上姓名和到场人数。</p></div><a class="button button-primary" href="mailto:hello@example.com">邮件报名</a></div>'],
|
||||||
|
'maintenance-window' => ['维护窗口', <<<'HTML'
|
||||||
|
<div class="studio-contact studio-maintenance">
|
||||||
|
<div><p class="overline">计划维护</p><h3>消息通知例行维护</h3><p>维护期间,通知可能延迟送达。</p></div>
|
||||||
|
<dl class="studio-definitions"><dt>维护时间</dt><dd>周日 02:00–03:00(北京时间)</dd><dt>预计影响</dt><dd>站内通知与邮件提醒</dd></dl>
|
||||||
|
</div>
|
||||||
|
HTML],
|
||||||
|
'route-options' => ['到店路线', <<<'HTML'
|
||||||
|
<div class="card-grid studio-routes">
|
||||||
|
<article class="content-card"><h3>公共交通</h3><p>填写最近的站点、出口和步行时间。</p></article>
|
||||||
|
<article class="content-card"><h3>驾车与停车</h3><p>说明停车场入口、收费和步行路线。</p></article>
|
||||||
|
<article class="content-card"><h3>无障碍入口</h3><p>填写坡道、电梯或其他便于到店的信息。</p></article>
|
||||||
|
</div>
|
||||||
|
HTML],
|
||||||
]],
|
]],
|
||||||
'commerce' => ['商品与服务', [
|
'commerce' => ['商品与服务', [
|
||||||
'product-spotlight' => ['商品展示', '<div class="studio-split studio-product"><img src="/assets/system/sample.webp" alt="商品展示示例" loading="lazy"><div><p class="overline">系列名称</p><h3>填写商品名称</h3><p>说明规格、适用场景与供货信息。</p><a class="button button-primary" href="#contact">联系订购</a></div></div>'],
|
'product-spotlight' => ['商品展示', '<div class="studio-split studio-product"><img src="/assets/system/sample.webp" alt="商品展示示例" loading="lazy"><div><p class="overline">系列名称</p><h3>填写商品名称</h3><p>说明规格、适用场景与供货信息。</p><a class="button button-primary" href="#contact">联系订购</a></div></div>'],
|
||||||
'product-specifications' => ['规格清单', '<dl class="studio-specifications"><div><dt>材质</dt><dd>填写材料及维护方式。</dd></div><div><dt>尺寸</dt><dd>标注尺寸与单位。</dd></div><div><dt>交付</dt><dd>说明交付时间及适用范围。</dd></div></dl>'],
|
'product-specifications' => ['规格清单', '<dl class="studio-specifications"><div><dt>材质</dt><dd>填写材料及维护方式。</dd></div><div><dt>尺寸</dt><dd>标注尺寸与单位。</dd></div><div><dt>交付</dt><dd>说明交付时间及适用范围。</dd></div></dl>'],
|
||||||
'service-process' => ['服务流程', '<ol class="studio-process"><li><h3>沟通需求</h3><p>说明首次沟通需要提供哪些资料。</p></li><li><h3>确认方案</h3><p>列出范围、周期和交付计划。</p></li><li><h3>交付与支持</h3><p>介绍验收方式和后续跟进安排。</p></li></ol>'],
|
'service-process' => ['服务流程', '<ol class="studio-process"><li><h3>沟通需求</h3><p>说明首次沟通需要提供哪些资料。</p></li><li><h3>确认方案</h3><p>列出范围、周期和交付计划。</p></li><li><h3>交付与支持</h3><p>介绍验收方式和后续跟进安排。</p></li></ol>'],
|
||||||
'delivery-and-returns' => ['配送与售后', '<div class="studio-two-column"><article class="content-card"><h3>配送与取货</h3><p>填写配送范围、预计时效和费用。</p></article><article class="content-card"><h3>退换与保修</h3><p>填写退换货条件、保修范围和联系渠道。</p></article></div>'],
|
'delivery-and-returns' => ['配送与售后', '<div class="studio-two-column"><article class="content-card"><h3>配送与取货</h3><p>填写配送范围、预计时效和费用。</p></article><article class="content-card"><h3>退换与保修</h3><p>填写退换货条件、保修范围和联系渠道。</p></article></div>'],
|
||||||
|
'menu-price-list' => ['菜单与价格', <<<'HTML'
|
||||||
|
<ul class="studio-labeled-rows studio-menu-list">
|
||||||
|
<li><div><h3>烤番茄与布拉塔奶酪</h3><p>香草、橄榄油与烤酸面包。</p></div><strong>¥68</strong></li>
|
||||||
|
<li><div><h3>柠檬香草烤鸡</h3><p>搭配当季蔬菜。</p></div><strong>¥98</strong></li>
|
||||||
|
<li><div><h3>香草奶冻</h3><p>配少量季节果酱。</p></div><strong>¥36</strong></li>
|
||||||
|
</ul>
|
||||||
|
HTML],
|
||||||
|
'dietary-notes' => ['饮食与过敏原说明', <<<'HTML'
|
||||||
|
<div class="studio-notice"><h3>点餐前请告知饮食需求</h3><p>补充菜单中的常见过敏原、可替换配料,以及厨房能提供的餐食选项。</p></div>
|
||||||
|
HTML],
|
||||||
|
'reservation-panel' => ['到店预订', <<<'HTML'
|
||||||
|
<div class="studio-contact studio-reservation">
|
||||||
|
<div><h3>预留餐位</h3><p>邮件请注明日期、时段、人数和饮食需求。餐位以收到的回复为准。</p></div>
|
||||||
|
<a class="button button-primary" href="mailto:hello@example.com">邮件预订</a>
|
||||||
|
</div>
|
||||||
|
HTML],
|
||||||
|
'group-dining' => ['团体用餐安排', <<<'HTML'
|
||||||
|
<dl class="studio-labeled-rows studio-group-dining">
|
||||||
|
<div><dt>可接待人数</dt><dd>填写单桌人数和团体包场容量。</dd></div>
|
||||||
|
<div><dt>菜单选择</dt><dd>填写分享菜单、套餐和可定制的菜品。</dd></div>
|
||||||
|
<div><dt>预订时间</dt><dd>说明需要提前几天联系、定金及取消条件。</dd></div>
|
||||||
|
</dl>
|
||||||
|
HTML],
|
||||||
]],
|
]],
|
||||||
'editorial' => ['专题与编辑部', [
|
'editorial' => ['专题与编辑部', [
|
||||||
'editorial-feature' => ['专题导读', '<div class="studio-editorial"><p class="overline">本期主题</p><blockquote><p>写下一句概括专题观点的话。</p></blockquote><div><p>用一段话交代来由,并指出读者可以从哪里开始。</p><a href="/articles">浏览文章</a></div></div>'],
|
'editorial-feature' => ['专题导读', '<div class="studio-editorial"><p class="overline">本期主题</p><blockquote><p>写下一句概括专题观点的话。</p></blockquote><div><p>用一段话交代来由,并指出读者可以从哪里开始。</p><a href="/articles">浏览文章</a></div></div>'],
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 16 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 32 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 16 KiB |
@@ -298,8 +298,39 @@
|
|||||||
--accent-light: #e9edfa;
|
--accent-light: #e9edfa;
|
||||||
--line: #e2e2e3;
|
--line: #e2e2e3;
|
||||||
--button-ink: #ffffff;
|
--button-ink: #ffffff;
|
||||||
|
--fwnet-primary: #5672cd;
|
||||||
|
--fwnet-primary-hover: #3a5ccc;
|
||||||
}
|
}
|
||||||
.theme-fwnet .hero { padding: 0; background: var(--white); }
|
/* In dark mode use the source site's colors over the template's stored light palette. */
|
||||||
|
#main-content.theme-fwnet[data-fwnet-appearance="dark"] {
|
||||||
|
color-scheme: dark;
|
||||||
|
--white: #1b1b1f;
|
||||||
|
--paper: #202127;
|
||||||
|
--ink: #dfdfd6;
|
||||||
|
--muted: #98989f;
|
||||||
|
--accent: #a8b1ff;
|
||||||
|
--accent-deep: #5c73e7;
|
||||||
|
--accent-light: #32363f;
|
||||||
|
--line: #2e2e32;
|
||||||
|
--fwnet-primary: #3e63dd;
|
||||||
|
--fwnet-primary-hover: #5c73e7;
|
||||||
|
}
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
#main-content.theme-fwnet:not([data-fwnet-appearance="light"]) {
|
||||||
|
color-scheme: dark;
|
||||||
|
--white: #1b1b1f;
|
||||||
|
--paper: #202127;
|
||||||
|
--ink: #dfdfd6;
|
||||||
|
--muted: #98989f;
|
||||||
|
--accent: #a8b1ff;
|
||||||
|
--accent-deep: #5c73e7;
|
||||||
|
--accent-light: #32363f;
|
||||||
|
--line: #2e2e32;
|
||||||
|
--fwnet-primary: #3e63dd;
|
||||||
|
--fwnet-primary-hover: #5c73e7;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.theme-fwnet .hero { padding: 0; background-color: var(--white); }
|
||||||
.theme-fwnet .hero h1 { margin: 0; max-width: 670px; font-size: clamp(2.5rem, 5vw, 3.625rem); line-height: 1.08; letter-spacing: -.035em; }
|
.theme-fwnet .hero h1 { margin: 0; max-width: 670px; font-size: clamp(2.5rem, 5vw, 3.625rem); line-height: 1.08; letter-spacing: -.035em; }
|
||||||
.fwnet-nav, .fwnet-nav > div, .fwnet-brand { display: flex; align-items: center; gap: 1.25rem; }
|
.fwnet-nav, .fwnet-nav > div, .fwnet-brand { display: flex; align-items: center; gap: 1.25rem; }
|
||||||
.fwnet-nav { min-height: 64px; justify-content: space-between; padding-block: .75rem; }
|
.fwnet-nav { min-height: 64px; justify-content: space-between; padding-block: .75rem; }
|
||||||
@@ -345,9 +376,24 @@
|
|||||||
.fwnet-hero p { color: var(--muted); font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-weight: 500; }
|
.fwnet-hero p { color: var(--muted); font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-weight: 500; }
|
||||||
.fwnet-hero > img { width: min(100%, 330px); height: auto; margin-inline: auto; }
|
.fwnet-hero > img { width: min(100%, 330px); height: auto; margin-inline: auto; }
|
||||||
.fwnet-hero .button { border-radius: 999px; font-size: .9rem; }
|
.fwnet-hero .button { border-radius: 999px; font-size: .9rem; }
|
||||||
.fwnet-hero .button-outline { background: var(--paper); }
|
.fwnet-hero .button-primary { background: var(--fwnet-primary); border-color: var(--fwnet-primary); }
|
||||||
|
.fwnet-hero .button-primary:hover { background: var(--fwnet-primary-hover); border-color: var(--fwnet-primary-hover); }
|
||||||
|
.fwnet-hero .button-outline { background: var(--paper); border-color: var(--line); }
|
||||||
|
.fwnet-theme-toggle {
|
||||||
|
min-width: 2.5rem;
|
||||||
|
min-height: 1.6rem;
|
||||||
|
padding: .15rem .32rem;
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: 1rem;
|
||||||
|
color: var(--ink);
|
||||||
|
background: var(--paper);
|
||||||
|
text-align: start;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.fwnet-theme-toggle[aria-pressed="true"] { text-align: end; }
|
||||||
|
.fwnet-theme-toggle span { display: inline-block; font-size: .9rem; line-height: 1; }
|
||||||
.theme-fwnet #capabilities { padding-block: 1rem 3.5rem; }
|
.theme-fwnet #capabilities { padding-block: 1rem 3.5rem; }
|
||||||
.fwnet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
|
.fwnet-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
|
||||||
.fwnet-card { display: grid; align-content: start; gap: .6rem; padding: 1.4rem; border-radius: .85rem; background: var(--paper); }
|
.fwnet-card { display: grid; align-content: start; gap: .6rem; padding: 1.4rem; border-radius: .85rem; background: var(--paper); }
|
||||||
.fwnet-card h3, .fwnet-card p { margin: 0; }
|
.fwnet-card h3, .fwnet-card p { margin: 0; }
|
||||||
.fwnet-card h3 { font-size: 1rem; }
|
.fwnet-card h3 { font-size: 1rem; }
|
||||||
@@ -364,3 +410,48 @@
|
|||||||
.fwnet-hero > img { grid-row: 1; width: min(100%, 12rem); height: 12rem; object-fit: contain; }
|
.fwnet-hero > img { grid-row: 1; width: min(100%, 12rem); height: 12rem; object-fit: contain; }
|
||||||
.fwnet-grid { grid-template-columns: 1fr; }
|
.fwnet-grid { grid-template-columns: 1fr; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.theme-signal {
|
||||||
|
--white: #121a2a;
|
||||||
|
--paper: #192438;
|
||||||
|
--ink: #eef4ff;
|
||||||
|
--muted: #aebdd3;
|
||||||
|
--accent: #79e2c4;
|
||||||
|
--accent-deep: #a6eed9;
|
||||||
|
--accent-light: #233e45;
|
||||||
|
--line: #35425a;
|
||||||
|
--button-ink: #132332;
|
||||||
|
}
|
||||||
|
.theme-signal .hero {
|
||||||
|
background: radial-gradient(ellipse at 82% 15%, #244c52 0, transparent 55%),
|
||||||
|
linear-gradient(155deg, var(--paper), var(--white));
|
||||||
|
border-block-end: 1px solid var(--line);
|
||||||
|
}
|
||||||
|
.theme-signal .hero h1 { font-size: clamp(2.5rem, 6vw, 4.65rem); }
|
||||||
|
.theme-signal .hero-inner { min-height: clamp(21rem, 38vw, 35rem); }
|
||||||
|
.theme-signal .app-frame { border-color: #588984; border-radius: .65rem; background: #233246; }
|
||||||
|
.theme-signal .content-card { background: var(--paper); }
|
||||||
|
.theme-signal .button-outline { border-color: var(--line); }
|
||||||
|
|
||||||
|
.theme-table {
|
||||||
|
--white: #fffaf2;
|
||||||
|
--paper: #f4e5d4;
|
||||||
|
--ink: #30201a;
|
||||||
|
--muted: #665048;
|
||||||
|
--accent: #985034;
|
||||||
|
--accent-deep: #773820;
|
||||||
|
--accent-light: #f8decf;
|
||||||
|
--line: #d9bca8;
|
||||||
|
--button-ink: #fffaf2;
|
||||||
|
}
|
||||||
|
.theme-table .hero { background: linear-gradient(120deg, var(--white), var(--paper)); }
|
||||||
|
.theme-table :is(h1, h2) { font-family: 'Noto Serif CJK SC', 'Songti SC', Georgia, serif; }
|
||||||
|
.theme-table .app-frame {
|
||||||
|
padding: .55rem;
|
||||||
|
border-color: var(--line);
|
||||||
|
border-radius: .4rem;
|
||||||
|
background: var(--white);
|
||||||
|
box-shadow: 8px 8px 0 #a66d4e3d;
|
||||||
|
}
|
||||||
|
.theme-table .app-frame img { object-fit: cover; border-radius: .15rem; }
|
||||||
|
.theme-table .button { border-radius: .25rem; }
|
||||||
|
|||||||
@@ -766,3 +766,38 @@ img.studio-style-display-inline-block, .hero-visual.studio-style-display-inline-
|
|||||||
}
|
}
|
||||||
.studio-mirror-note a, .studio-mirror-note button { display: inline-flex; align-items: center; min-height: 28px; color: #214ed7; text-decoration: underline; font: inherit; cursor: pointer; }
|
.studio-mirror-note a, .studio-mirror-note button { display: inline-flex; align-items: center; min-height: 28px; color: #214ed7; text-decoration: underline; font: inherit; cursor: pointer; }
|
||||||
.studio-mirror-note button { padding: .1rem; border: 0; background: transparent; }
|
.studio-mirror-note button { padding: .1rem; border: 0; background: transparent; }
|
||||||
|
|
||||||
|
.studio-status-summary {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 1rem;
|
||||||
|
padding: clamp(1rem, 4vw, 2rem);
|
||||||
|
border: 1px solid var(--line);
|
||||||
|
border-radius: var(--radius);
|
||||||
|
background: var(--paper);
|
||||||
|
}
|
||||||
|
.rich .studio-labeled-rows { list-style: none; padding: 0; margin: 0; border-block-start: 1px solid var(--line); }
|
||||||
|
.studio-labeled-rows > :is(li, div) {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: .5rem 1.5rem;
|
||||||
|
padding: .9rem 0;
|
||||||
|
border-block-end: 1px solid var(--line);
|
||||||
|
}
|
||||||
|
.studio-labeled-rows h3, .studio-status-summary h3 { font-size: 1.15rem; margin: 0 0 .25rem; }
|
||||||
|
.rich .studio-status-summary p, .rich .studio-labeled-rows p, .studio-labeled-rows dd { margin: 0; color: var(--muted); }
|
||||||
|
.studio-status-ok { background: #dff4e8; color: #155e3d; }
|
||||||
|
.studio-status-watch { background: #ffedc8; color: #764700; }
|
||||||
|
.studio-menu-list li > strong { color: var(--accent); font-variant-numeric: tabular-nums; }
|
||||||
|
.studio-group-dining dt { font-weight: 650; }
|
||||||
|
.studio-downloads .content-card {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
.studio-downloads .button { margin-top: auto; }
|
||||||
|
.studio-seasonal img { border-radius: .65rem; }
|
||||||
|
|||||||
@@ -1,6 +1,42 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
jQuery(function ($) {
|
jQuery(function ($) {
|
||||||
|
const fwnetPage = document.querySelector('#main-content.theme-fwnet');
|
||||||
|
const fwnetLinks = fwnetPage?.querySelector('.fwnet-nav > div');
|
||||||
|
if (fwnetLinks) {
|
||||||
|
const systemTheme = matchMedia('(prefers-color-scheme: dark)');
|
||||||
|
const preferenceKey = 'laysite-fwnet-appearance';
|
||||||
|
let preference;
|
||||||
|
try {
|
||||||
|
const stored = localStorage.getItem(preferenceKey);
|
||||||
|
if (stored === 'dark' || stored === 'light') preference = stored;
|
||||||
|
} catch {
|
||||||
|
// The switch still works when the browser disables storage.
|
||||||
|
}
|
||||||
|
const $icon = $('<span>', {'aria-hidden': 'true'});
|
||||||
|
const $toggle = $('<button>', {type: 'button', class: 'fwnet-theme-toggle', 'aria-label': '深色模式'}).append($icon);
|
||||||
|
$(fwnetLinks).append($toggle);
|
||||||
|
|
||||||
|
function reflectAppearance() {
|
||||||
|
const dark = preference ? preference === 'dark' : systemTheme.matches;
|
||||||
|
if (preference) fwnetPage.dataset.fwnetAppearance = preference;
|
||||||
|
$toggle.attr('aria-pressed', String(dark));
|
||||||
|
$icon.text(dark ? '☾' : '☀');
|
||||||
|
}
|
||||||
|
|
||||||
|
reflectAppearance();
|
||||||
|
systemTheme.addEventListener('change', reflectAppearance);
|
||||||
|
$toggle.on('click', () => {
|
||||||
|
preference = $toggle.attr('aria-pressed') === 'true' ? 'light' : 'dark';
|
||||||
|
reflectAppearance();
|
||||||
|
try {
|
||||||
|
localStorage.setItem(preferenceKey, preference);
|
||||||
|
} catch {
|
||||||
|
// A storage error must not undo the visible change.
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$('.menu-toggle[aria-controls]').each(function () {
|
$('.menu-toggle[aria-controls]').each(function () {
|
||||||
const $toggle = $(this);
|
const $toggle = $(this);
|
||||||
const $nav = $(document.getElementById(this.getAttribute('aria-controls')));
|
const $nav = $(document.getElementById(this.getAttribute('aria-controls')));
|
||||||
|
|||||||
|
After Width: | Height: | Size: 160 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 7.7 KiB |
|
After Width: | Height: | Size: 4.3 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 7.2 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 7.6 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 8.9 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
@@ -215,6 +215,28 @@ foreach ($additionalPages as $theme => $templates) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$newSuites = [
|
$newSuites = [
|
||||||
|
'signal' => ['Signal · 服务运营', '深蓝控制台风格,适合服务状态、软件下载和客户支持。', [
|
||||||
|
'signal-status' => ['服务状态页', '看看服务现在是否正常。', '汇总服务状态、计划维护和历史事件。', [
|
||||||
|
['overview', '状态总览', 'status-summary'], ['services', '各项服务状态', 'service-status-list'], ['maintenance', '计划维护', 'maintenance-window'], ['incidents', '历史事件', 'incident-log'],
|
||||||
|
]],
|
||||||
|
'signal-downloads' => ['软件下载页', '获取适合你设备的版本。', '提供各平台的安装入口、版本变更和部署帮助。', [
|
||||||
|
['platforms', '选择下载平台', 'version-downloads'], ['releases', '版本更新', 'changelog'], ['helpdesk', '安装疑问', 'support-triage'],
|
||||||
|
], $interface],
|
||||||
|
'signal-support' => ['产品支持页', '遇到问题,从这里找到处理办法。', '按问题找到帮助,并查看近期公告与联系渠道。', [
|
||||||
|
['helpdesk', '按问题查找支持', 'support-triage'], ['updates', '近期公告', 'articles'], ['get-in-touch', '联系支持团队', 'contact-card'],
|
||||||
|
]],
|
||||||
|
]],
|
||||||
|
'table' => ['Table · 餐桌', '暖色纸面与餐食摄影,适合餐厅、咖啡馆及私人聚餐。', [
|
||||||
|
'table-menu' => ['餐厅菜单页', '尝一尝这个季节。', '展示当季菜品、价格与需要提前告知的饮食要求。', [
|
||||||
|
['menu', '当季菜单', 'menu-price-list'], ['dietary', '饮食与过敏原', 'dietary-notes'], ['reservation', '到店预订', 'reservation-panel'],
|
||||||
|
], [BlockTemplates::BISTRO_IMAGE, '烤番茄、布拉塔奶酪和酸面包']],
|
||||||
|
'table-visit' => ['到店预订页', '选好时间,我们为你留桌。', '查看营业时间、交通方式和预订流程。', [
|
||||||
|
['reservation', '预订餐位', 'reservation-panel'], ['hours', '营业时间与地址', 'opening-hours'], ['arrival', '如何到店', 'route-options'],
|
||||||
|
]],
|
||||||
|
'table-group-dining' => ['团体用餐页', '把一桌好菜留给一群人。', '介绍聚餐安排、时令推荐与询位方式。', [
|
||||||
|
['group', '团体用餐安排', 'group-dining'], ['seasonal', '时令推荐', 'seasonal-special'], ['get-in-touch', '联系餐厅', 'contact-card'],
|
||||||
|
]],
|
||||||
|
]],
|
||||||
'atrium' => ['Atrium · 场馆', '日光、宽幅留白和陶土色,适合展览、场馆和预约。', [
|
'atrium' => ['Atrium · 场馆', '日光、宽幅留白和陶土色,适合展览、场馆和预约。', [
|
||||||
'atrium-exhibition' => ['展览首页', '让作品先开口。', '用策展导读、展品和参观信息介绍正在举行的展览。', [
|
'atrium-exhibition' => ['展览首页', '让作品先开口。', '用策展导读、展品和参观信息介绍正在举行的展览。', [
|
||||||
['curators-note', '策展导读', 'editorial-feature'], ['selected', '展品一览', 'gallery'], ['visit', '预约参观', 'venue-guide'],
|
['curators-note', '策展导读', 'editorial-feature'], ['selected', '展品一览', 'gallery'], ['visit', '预约参观', 'venue-guide'],
|
||||||
|
|||||||