diff --git a/app/Content/BlockTemplates.php b/app/Content/BlockTemplates.php index 5ec3312..4fcd212 100644 --- a/app/Content/BlockTemplates.php +++ b/app/Content/BlockTemplates.php @@ -14,6 +14,8 @@ final class BlockTemplates public const DESIGN_STUDIO_IMAGE = '/assets/system/design-studio.webp'; + public const BISTRO_IMAGE = '/assets/system/bistro-seasonal.webp'; + public const ELEMENT_GROUPS = [ 'text-elements' => ['文字与列表', [ 'paragraph' => ['段落', '

填写正文。

'], @@ -72,12 +74,19 @@ final class BlockTemplates 'list' => ['步骤列表', '
  1. 填写第一步
  2. 填写第二步
  3. 填写第三步
'], 'notice' => ['重点提示', '

填写重要提示

说明访客需要知悉的事项、条件或时间。

'], 'policy-summary' => ['条款摘要', '

适用范围

说明这项条款适用于哪些访客或服务。

生效与联系

填写生效日期,以及有疑问时的联系方式。

'], + 'status-summary' => ['服务状态摘要', <<<'HTML' +
+

服务运行正常

查看各项服务状态及最近的维护记录。

+ 正常运行 +
+ HTML], ]], 'cover' => ['封面与横幅', [ 'cover' => ['图文封面', '

用一句话介绍你的产品

在首段说明访客能获得什么。

查看服务
'], 'banner' => ['横幅', '

用一句话介绍你的项目

简要说明项目能为访客做什么。

了解更多
'], 'two-actions' => ['双按钮横幅', '

选择下一步

介绍访客可以立即做什么。

查看服务联系我们
'], 'announcement-banner' => ['公告横幅', '

站点公告

填写公告主题

写明变动时间和受影响的访客。

查看详情
'], + 'seasonal-special' => ['时令推荐', '
番茄、布拉塔奶酪和烤面包

本季主厨推荐

烤番茄与布拉塔奶酪

搭配香草、橄榄油和酸面包,适合两人分享。

咨询当日供应
'], ]], 'layout' => ['图文与布局', [ 'image' => ['产品图文', '

介绍主题

在这里说明图片或产品。

'], @@ -106,6 +115,19 @@ final class BlockTemplates 'pricing' => ['双方案报价', '

基础方案

填写价格

填写方案包含的服务。

咨询基础方案

进阶方案

填写价格

填写扩展服务或权益。

咨询进阶方案
'], 'reference-code' => ['说明与代码示例', '

操作示例

运行一次检查

说明命令的适用环境和执行后的结果。

curl -I https://example.com
'], 'feature-matrix' => ['功能矩阵', '
各方案功能对照
功能基础版团队版
工作空间1 个不限
协作成员个人团队
支持方式帮助文档邮件支持
'], + 'service-status-list' => ['服务状态列表', <<<'HTML' + + HTML], + 'incident-log' => ['事件记录', <<<'HTML' +
+
已解决 · 通知发送延迟

填写事件发生时间、受影响范围和恢复措施。

+
已完成 · 例行数据库维护

记录维护结束时间以及用户是否需要重新登录。

+
+ HTML], ]], 'actions' => ['导航与引导', [ 'service-catalog' => ['目录卡片', '', '', self::CATALOG_FEED], @@ -115,6 +137,20 @@ final class BlockTemplates 'contact-card' => ['联系方式', '

联系团队

填写咨询范围与回复时间。

电子邮件
hello@example.com
服务时间
填写工作时间
'], 'support-channels' => ['支持渠道', '

查找自助资料

按问题类型查阅文档与最新公告。

查看帮助文章

联系支持团队

请注明当前情况、操作步骤及希望得到的帮助。

发送邮件
'], 'download-center' => ['下载中心', ''], + 'version-downloads' => ['按平台下载', <<<'HTML' +
+

Windows

64 位桌面安装包。

查看 Windows 版本
+

macOS

适用于 Apple 芯片与 Intel 芯片的版本。

查看 macOS 版本
+

Linux

查看支持的发行版及安装方法。

查看 Linux 版本
+
+ HTML], + 'support-triage' => ['按问题找帮助', <<<'HTML' + + HTML], ]], 'events' => ['活动与场地', [ 'event-agenda' => ['当日议程', '
  1. 09:30

    签到与开场

    开放入口并介绍当天安排。

    主会场
  2. 10:30

    专题工作坊

    跟随主持人完成一次实践。

    工作区
  3. 14:00

    圆桌交流

    分享实践经验并回答问题。

    交流区
'], @@ -122,12 +158,48 @@ final class BlockTemplates 'venue-guide' => ['到场指南', '

开放与入场

填写开放时间、预约方式和入口位置。

交通与无障碍

填写推荐交通方式和无障碍通道位置。

'], 'opening-hours' => ['开放时间与地址', '

开放时间

周一至周五
09:00–18:00
周末
10:00–16:00

地址与入口

填写地址、楼层和入口信息。

联系场馆
'], 'event-registration' => ['活动报名', '

参加活动

预留你的席位

报名时请附上姓名和到场人数。

邮件报名
'], + 'maintenance-window' => ['维护窗口', <<<'HTML' +
+

计划维护

消息通知例行维护

维护期间,通知可能延迟送达。

+
维护时间
周日 02:00–03:00(北京时间)
预计影响
站内通知与邮件提醒
+
+ HTML], + 'route-options' => ['到店路线', <<<'HTML' +
+

公共交通

填写最近的站点、出口和步行时间。

+

驾车与停车

说明停车场入口、收费和步行路线。

+

无障碍入口

填写坡道、电梯或其他便于到店的信息。

+
+ HTML], ]], 'commerce' => ['商品与服务', [ 'product-spotlight' => ['商品展示', '
商品展示示例

系列名称

填写商品名称

说明规格、适用场景与供货信息。

联系订购
'], 'product-specifications' => ['规格清单', '
材质
填写材料及维护方式。
尺寸
标注尺寸与单位。
交付
说明交付时间及适用范围。
'], 'service-process' => ['服务流程', '
  1. 沟通需求

    说明首次沟通需要提供哪些资料。

  2. 确认方案

    列出范围、周期和交付计划。

  3. 交付与支持

    介绍验收方式和后续跟进安排。

'], 'delivery-and-returns' => ['配送与售后', '

配送与取货

填写配送范围、预计时效和费用。

退换与保修

填写退换货条件、保修范围和联系渠道。

'], + 'menu-price-list' => ['菜单与价格', <<<'HTML' + + HTML], + 'dietary-notes' => ['饮食与过敏原说明', <<<'HTML' +

点餐前请告知饮食需求

补充菜单中的常见过敏原、可替换配料,以及厨房能提供的餐食选项。

+ HTML], + 'reservation-panel' => ['到店预订', <<<'HTML' +
+

预留餐位

邮件请注明日期、时段、人数和饮食需求。餐位以收到的回复为准。

+ 邮件预订 +
+ HTML], + 'group-dining' => ['团体用餐安排', <<<'HTML' +
+
可接待人数
填写单桌人数和团体包场容量。
+
菜单选择
填写分享菜单、套餐和可定制的菜品。
+
预订时间
说明需要提前几天联系、定金及取消条件。
+
+ HTML], ]], 'editorial' => ['专题与编辑部', [ 'editorial-feature' => ['专题导读', '

本期主题

写下一句概括专题观点的话。

用一段话交代来由,并指出读者可以从哪里开始。

浏览文章
'], diff --git a/public/assets/page-templates/fwnet-home.webp b/public/assets/page-templates/fwnet-home.webp index 75c9401..d951f3c 100644 Binary files a/public/assets/page-templates/fwnet-home.webp and b/public/assets/page-templates/fwnet-home.webp differ diff --git a/public/assets/page-templates/signal-downloads.webp b/public/assets/page-templates/signal-downloads.webp new file mode 100644 index 0000000..396bfd3 Binary files /dev/null and b/public/assets/page-templates/signal-downloads.webp differ diff --git a/public/assets/page-templates/signal-status.webp b/public/assets/page-templates/signal-status.webp new file mode 100644 index 0000000..69dda17 Binary files /dev/null and b/public/assets/page-templates/signal-status.webp differ diff --git a/public/assets/page-templates/signal-support.webp b/public/assets/page-templates/signal-support.webp new file mode 100644 index 0000000..ca71fc7 Binary files /dev/null and b/public/assets/page-templates/signal-support.webp differ diff --git a/public/assets/page-templates/signal.webp b/public/assets/page-templates/signal.webp new file mode 100644 index 0000000..db9707f Binary files /dev/null and b/public/assets/page-templates/signal.webp differ diff --git a/public/assets/page-templates/table-group-dining.webp b/public/assets/page-templates/table-group-dining.webp new file mode 100644 index 0000000..1e8b8c7 Binary files /dev/null and b/public/assets/page-templates/table-group-dining.webp differ diff --git a/public/assets/page-templates/table-menu.webp b/public/assets/page-templates/table-menu.webp new file mode 100644 index 0000000..710d9e8 Binary files /dev/null and b/public/assets/page-templates/table-menu.webp differ diff --git a/public/assets/page-templates/table-visit.webp b/public/assets/page-templates/table-visit.webp new file mode 100644 index 0000000..3b901f3 Binary files /dev/null and b/public/assets/page-templates/table-visit.webp differ diff --git a/public/assets/page-templates/table.webp b/public/assets/page-templates/table.webp new file mode 100644 index 0000000..48cfdcf Binary files /dev/null and b/public/assets/page-templates/table.webp differ diff --git a/public/assets/page-themes.css b/public/assets/page-themes.css index 46d5636..8c08ae1 100644 --- a/public/assets/page-themes.css +++ b/public/assets/page-themes.css @@ -298,8 +298,39 @@ --accent-light: #e9edfa; --line: #e2e2e3; --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; } .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; } @@ -345,9 +376,24 @@ .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 .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; } -.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 h3, .fwnet-card p { margin: 0; } .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-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; } diff --git a/public/assets/site.css b/public/assets/site.css index 0d6145d..9800fe3 100644 --- a/public/assets/site.css +++ b/public/assets/site.css @@ -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 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; } diff --git a/public/assets/site.js b/public/assets/site.js index 0cabf39..1243735 100644 --- a/public/assets/site.js +++ b/public/assets/site.js @@ -1,6 +1,42 @@ 'use strict'; 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 = $('', {'aria-hidden': 'true'}); + const $toggle = $('