feat(anlian-mq): port pink-glass theme, hero motion, and brand assets
Replace the warm-paper placeholder shell with GFM style tables that mirror Django anlian (fixed bg, frosted nav, pulse logo, hero float, glass cards). Ship original static assets and tighten smoke for visuals. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
ce195998c1
commit
e292c8a7c7
10 files changed
+540
-34
No files matched your search
@@ -11,9 +11,12 @@
|
||||
| GFM 表装配导航、样式、库表、种子、表单、门禁 | `json.set` 链拼页面 |
|
||||
| `网页.*` / `table.put` 命名方法 | 手写业务 JS 袋 |
|
||||
| 分文件:`db/`、`components/`、`styles/` | 单文件堆全部 HTML |
|
||||
| 对照原站迁粉玻璃、Hero 动效、卡片悬停 | 另起一套「暖纸模板」糊弄验收 |
|
||||
|
||||
对照原站 [anlian](../../../anlian/)(Django)与施工图 [ext-web-go-rewrite.md](../../doc/design/ext-web-go-rewrite.md) §8。
|
||||
|
||||
视觉资源在 `public/`(`bg-body-960.webp`、`bg-hero-640.webp`、`logo.svg`),样式表在 `styles/shell.mq.md`(变量 / `@keyframes` / 顶栏 / Hero / 卡片 / 响应式均为 GFM 表)。
|
||||
|
||||
## 已覆盖主路径
|
||||
|
||||
| 路径 | 能力 |
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
## 页脚
|
||||
|
||||
站点信息与站长链接(毛玻璃底由壳样式绘制)。
|
||||
|
||||
`页脚` =
|
||||
|
||||
| 属性 | 值 |
|
||||
|------|-----|
|
||||
| 暗恋见君 · Marqdo 验收切片 | / |
|
||||
| 暗恋见君 · 期待人们能够继续相信爱情 | / |
|
||||
| 帖子 | /posts |
|
||||
| 新闻 | /news |
|
||||
| 公聊 | /chat |
|
||||
| sitemap | /sitemap.xml |
|
||||
|
||||
**`页脚`**
|
||||
@@ -0,0 +1,5 @@
|
||||
## 首页引言
|
||||
|
||||
英雄区 HTML(品牌标语 + CTA + 漂浮主图)。样式在 `styles/shell` 的 Hero / 动效表。
|
||||
|
||||
**"<section class=\"hero\" aria-label=\"暗恋见君\"><div class=\"hero-content\"><div class=\"hero-left\"><p class=\"hero-brand\"><img class=\"hero-logo\" src=\"/static/logo.svg\" alt=\"\" width=\"30\" height=\"30\"><span>暗恋<span class=\"hero-pink\">见君</span></span></p><h1 class=\"main-text\">期待人们能够继续相信<span class=\"hero-pink\">爱情</span></h1><p class=\"sub-text\">粉玻璃、呼吸 Logo、漂浮主图——用 Marqdo 表格装配的社区站点,验收「代码即文档」能否撑起真实前端。</p><p class=\"hero-cta\"><a class=\"hero-btn\" href=\"/posts\">浏览帖子</a><a class=\"hero-btn ghost\" href=\"/news\">新闻</a><a class=\"hero-btn ghost\" href=\"/chat\">公聊</a></p></div><div class=\"hero-right\"><img class=\"hero-art\" src=\"/static/bg-hero-640.webp\" alt=\"暗恋见君\"></div></div></section><div class=\"home-feed-head\"><h2>最新帖子</h2><p>来自粉玻璃卡片流</p></div>"**
|
||||
@@ -5,6 +5,7 @@ description: 用表格装配的论坛验收站点:帖子、新闻、发帖门
|
||||
import shell:styles/shell.mq.md
|
||||
import nav:components/nav.mq.md
|
||||
import foot:components/foot.mq.md
|
||||
import hero:components/hero.mq.md
|
||||
import db:db/index.mq.md
|
||||
---
|
||||
|
||||
@@ -110,16 +111,24 @@ import db:db/index.mq.md
|
||||
| /chat | 2026-09-10 |
|
||||
| /search | 2026-09-10 |
|
||||
|
||||
`图标` =
|
||||
|
||||
| 路径 | 关系 | 类型 | 尺寸 | 地址 |
|
||||
|------|------|------|------|------|
|
||||
| "public/favicon-32.png" | icon | "image/png" | 32x32 | "/favicon.ico" |
|
||||
|
||||
*store = > db.打开*
|
||||
*壳CSS = > shell.全局*
|
||||
*首页引言 = > hero.首页引言*
|
||||
|
||||
*首页 = > 网页.页面 标题="暗恋见君" 引言="<h1>暗恋见君</h1><p>期待人们能够继续相信爱情。——本站用 Marqdo 表格装配,验收 web 拓展库。</p>"*
|
||||
*首页 = > 网页.页面 标题="暗恋见君" 引言=`首页引言`*
|
||||
*首页 = > 首页.组件装配 组件=`壳`*
|
||||
*首页 = > 首页.主体装配 主体=`帖子卡片`*
|
||||
*首页 = > 首页.排序 排序="-created_at"*
|
||||
*首页 = > 首页.链接前缀 前缀="/post/"*
|
||||
*首页 = > 首页.样式 样式=`壳CSS`*
|
||||
|
||||
*帖子列表 = > 网页.页面 标题="帖子" 引言="<h1>帖子</h1>"*
|
||||
*帖子列表 = > 网页.页面 标题="帖子" 引言="<div class=\"page-stage\"><h1>帖子</h1><p>粉色毛玻璃卡片 · 对照原站 feed</p></div>"*
|
||||
*帖子列表 = > 帖子列表.组件装配 组件=`壳`*
|
||||
*帖子列表 = > 帖子列表.主体装配 主体=`帖子卡片`*
|
||||
*帖子列表 = > 帖子列表.链接前缀 前缀="/post/"*
|
||||
@@ -133,7 +142,7 @@ import db:db/index.mq.md
|
||||
*帖子页 = > 帖子页.详情 详情=True*
|
||||
*帖子页 = > 帖子页.样式 样式=`壳CSS`*
|
||||
|
||||
*新闻列表 = > 网页.页面 标题="新闻" 引言="<h1>新闻</h1>"*
|
||||
*新闻列表 = > 网页.页面 标题="新闻" 引言="<div class=\"page-stage\"><h1>新闻</h1><p>站务与迁移动态</p></div>"*
|
||||
*新闻列表 = > 新闻列表.组件装配 组件=`壳`*
|
||||
*新闻列表 = > 新闻列表.主体装配 主体=`新闻卡片`*
|
||||
*新闻列表 = > 新闻列表.链接前缀 前缀="/news/"*
|
||||
@@ -151,16 +160,16 @@ import db:db/index.mq.md
|
||||
*发帖表 = > 发帖表.字段 字段=`发帖字段`*
|
||||
*发帖表 = > 发帖表.规则 规则=`发帖规则`*
|
||||
|
||||
*发帖页 = > 网页.页面 标题="发帖" 引言="<h1>发帖</h1><p>需登录(admin / anlian)。</p>"*
|
||||
*发帖页 = > 网页.页面 标题="发帖" 引言="<div class=\"page-stage\"><h1>发帖</h1><p>需登录(admin / anlian)</p></div>"*
|
||||
*发帖页 = > 发帖页.组件装配 组件=`壳`*
|
||||
*发帖页 = > 发帖页.表单装配 id="post" 表单=`发帖表`*
|
||||
*发帖页 = > 发帖页.样式 样式=`壳CSS`*
|
||||
|
||||
*搜索页 = > 网页.页面 标题="搜索" 引言="<h1>搜索</h1><p>在地址栏加 <code>?q=关键词</code>,或从后台全文工具验证 FTS。验收切片先提供入口页。</p><form method=\"get\" action=\"/search\"><input name=\"q\" placeholder=\"关键词\"><button type=\"submit\">搜</button></form>"*
|
||||
*搜索页 = > 网页.页面 标题="搜索" 引言="<div class=\"page-stage\"><h1>搜索</h1><p>全文检索入口(SQLite FTS)</p><form class=\"search-bar\" method=\"get\" action=\"/search\"><input name=\"q\" placeholder=\"关键词\" aria-label=\"关键词\"><button type=\"submit\">搜</button></form></div>"*
|
||||
*搜索页 = > 搜索页.组件装配 组件=`壳`*
|
||||
*搜索页 = > 搜索页.样式 样式=`壳CSS`*
|
||||
|
||||
*聊天页 = > 网页.页面 标题="公聊" 引言="<h1>公聊室</h1><div class=\"chat-box\"><div id=\"chat-log\" class=\"chat-log\"></div><p><input id=\"chat-msg\" placeholder=\"说点什么…\" style=\"width:70%\"> <button id=\"chat-send\" type=\"button\">发送</button></p></div><script src=\"/static/chat.js\"></script>"*
|
||||
*聊天页 = > 网页.页面 标题="公聊" 引言="<div class=\"page-stage\"><h1>公聊室</h1><p>WebSocket 广播 · /chat/ws</p></div><div class=\"chat-box\"><div id=\"chat-log\" class=\"chat-log\"></div><p class=\"search-bar\"><input id=\"chat-msg\" placeholder=\"说点什么…\" aria-label=\"消息\"><button id=\"chat-send\" type=\"button\">发送</button></p></div><script src=\"/static/chat.js\"></script>"*
|
||||
*聊天页 = > 聊天页.组件装配 组件=`壳`*
|
||||
*聊天页 = > 聊天页.样式 样式=`壳CSS`*
|
||||
|
||||
@@ -173,6 +182,7 @@ import db:db/index.mq.md
|
||||
*应用 = > 应用.路由 路径="/search" 页面=`搜索页`*
|
||||
*应用 = > 应用.路由 路径="/chat" 页面=`聊天页`*
|
||||
*应用 = > 应用.静态 目录="public" 挂载="/static"*
|
||||
*应用 = > 应用.图标 表=`图标`*
|
||||
*应用 = > 应用.鉴权 用户表=`用户表` 会话时长=7200 登录回跳="/write" 登出回跳="/"*
|
||||
*应用 = > 应用.门禁 路径="/write" 角色="admin" 匹配="prefix" 拒绝="redirect" 排除="/admin/login"*
|
||||
*应用 = > 应用.路由实时 路径="/chat/ws" 模式="broadcast"*
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 76 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 45 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 436 B |
@@ -0,0 +1,101 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg version="1.1" width="64" height="64" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" shape-rendering="crispEdges">
|
||||
<rect x="16" y="16" width="32" height="1" fill="#000000"/>
|
||||
<rect x="16" y="17" width="32" height="1" fill="#000000"/>
|
||||
<rect x="16" y="18" width="32" height="1" fill="#000000"/>
|
||||
<rect x="16" y="19" width="3" height="1" fill="#000000"/>
|
||||
<rect x="16" y="20" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="20" width="11" height="1" fill="#000000"/>
|
||||
<rect x="33" y="20" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="21" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="21" width="11" height="1" fill="#000000"/>
|
||||
<rect x="33" y="21" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="22" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="22" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="22" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="23" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="23" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="23" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="24" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="24" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="24" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="25" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="25" width="9" height="1" fill="#000000"/>
|
||||
<rect x="33" y="25" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="26" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="26" width="9" height="1" fill="#000000"/>
|
||||
<rect x="33" y="26" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="27" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="27" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="27" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="28" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="28" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="28" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="29" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="29" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="29" width="12" height="1" fill="#000000"/>
|
||||
<rect x="16" y="30" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="30" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="30" width="12" height="1" fill="#000000"/>
|
||||
<rect x="16" y="31" width="3" height="1" fill="#000000"/>
|
||||
<rect x="16" y="32" width="3" height="1" fill="#000000"/>
|
||||
<rect x="16" y="33" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="33" width="11" height="1" fill="#000000"/>
|
||||
<rect x="33" y="33" width="2" height="1" fill="#000000"/>
|
||||
<rect x="43" y="33" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="34" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="34" width="11" height="1" fill="#000000"/>
|
||||
<rect x="33" y="34" width="2" height="1" fill="#000000"/>
|
||||
<rect x="43" y="34" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="35" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="35" width="2" height="1" fill="#000000"/>
|
||||
<rect x="24" y="35" width="3" height="1" fill="#000000"/>
|
||||
<rect x="29" y="35" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="35" width="2" height="1" fill="#000000"/>
|
||||
<rect x="43" y="35" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="36" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="36" width="2" height="1" fill="#000000"/>
|
||||
<rect x="24" y="36" width="3" height="1" fill="#000000"/>
|
||||
<rect x="29" y="36" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="36" width="2" height="1" fill="#000000"/>
|
||||
<rect x="43" y="36" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="37" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="37" width="2" height="1" fill="#000000"/>
|
||||
<rect x="24" y="37" width="3" height="1" fill="#000000"/>
|
||||
<rect x="29" y="37" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="37" width="12" height="1" fill="#000000"/>
|
||||
<rect x="16" y="38" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="38" width="2" height="1" fill="#000000"/>
|
||||
<rect x="24" y="38" width="3" height="1" fill="#000000"/>
|
||||
<rect x="29" y="38" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="38" width="12" height="1" fill="#000000"/>
|
||||
<rect x="16" y="39" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="39" width="2" height="1" fill="#000000"/>
|
||||
<rect x="24" y="39" width="3" height="1" fill="#000000"/>
|
||||
<rect x="29" y="39" width="2" height="1" fill="#000000"/>
|
||||
<rect x="43" y="39" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="40" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="40" width="2" height="1" fill="#000000"/>
|
||||
<rect x="24" y="40" width="3" height="1" fill="#000000"/>
|
||||
<rect x="29" y="40" width="2" height="1" fill="#000000"/>
|
||||
<rect x="43" y="40" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="41" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="41" width="2" height="1" fill="#000000"/>
|
||||
<rect x="24" y="41" width="3" height="1" fill="#000000"/>
|
||||
<rect x="29" y="41" width="2" height="1" fill="#000000"/>
|
||||
<rect x="43" y="41" width="2" height="1" fill="#000000"/>
|
||||
<rect x="16" y="42" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="42" width="2" height="1" fill="#000000"/>
|
||||
<rect x="24" y="42" width="3" height="1" fill="#000000"/>
|
||||
<rect x="29" y="42" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="42" width="12" height="1" fill="#000000"/>
|
||||
<rect x="16" y="43" width="3" height="1" fill="#000000"/>
|
||||
<rect x="20" y="43" width="2" height="1" fill="#000000"/>
|
||||
<rect x="24" y="43" width="3" height="1" fill="#000000"/>
|
||||
<rect x="29" y="43" width="2" height="1" fill="#000000"/>
|
||||
<rect x="33" y="43" width="12" height="1" fill="#000000"/>
|
||||
<rect x="16" y="44" width="3" height="1" fill="#000000"/>
|
||||
<rect x="16" y="45" width="32" height="1" fill="#000000"/>
|
||||
<rect x="16" y="46" width="32" height="1" fill="#000000"/>
|
||||
<rect x="16" y="47" width="32" height="1" fill="#000000"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.7 KiB |
@@ -11,6 +11,10 @@ echo "== 首页 / 列表 =="
|
||||
code=$(curl -s -o /dev/null -w "%{http_code}" "$BASE/")
|
||||
[ "$code" = "200" ] && ok "GET /" || bad "GET / -> $code"
|
||||
curl -s "$BASE/" | grep -q '暗恋见君' && ok "品牌标题" || bad "品牌标题"
|
||||
curl -s "$BASE/" | grep -q 'class="hero"' && ok "Hero 区" || bad "Hero 区"
|
||||
curl -s "$BASE/" | grep -q 'bg-hero-640\|heroImageFloat\|hero-art' && ok "Hero 主图/动效类" || bad "Hero 主图/动效类"
|
||||
curl -s -o /dev/null -w "%{http_code}" "$BASE/static/bg-body-960.webp" | grep -q 200 && ok "背景图静态资源" || bad "背景图静态资源"
|
||||
curl -s "$BASE/" | grep -q '@keyframes pulse\|animation: pulse\|animation:pulse' && ok "pulse 动效 CSS" || bad "pulse 动效 CSS"
|
||||
curl -s "$BASE/posts" | grep -q 'welcome\|欢迎' && ok "帖子列表" || bad "帖子列表"
|
||||
code=$(curl -s -o /dev/null -w "%{http_code}" "$BASE/post/welcome")
|
||||
[ "$code" = "200" ] && ok "帖子详情" || bad "帖子详情 -> $code"
|
||||
|
||||
@@ -1,51 +1,429 @@
|
||||
---
|
||||
title: styles/shell
|
||||
description: 暗恋见君壳样式——配色与布局用表格声明。
|
||||
description: 暗恋见君壳样式——对照 Django 原站粉玻璃 + 动效,用表格声明。
|
||||
导入 网页:ext/web/网页.mq.md
|
||||
import text:lib/text.mq.md
|
||||
---
|
||||
|
||||
对照原站 `config/static/front/css/{base,feed_common,footer,index/hero}.css`:
|
||||
固定背景图、毛玻璃顶栏、Logo 呼吸、Hero 漂浮、粉玻璃卡片与页脚。
|
||||
|
||||
## 基础
|
||||
|
||||
暖纸感背景、深红强调(品牌向「相信爱情」),避免默认紫渐变模板。
|
||||
品牌色与全站底:固定摄影背景 + 粉玻璃变量。
|
||||
|
||||
`基础` =
|
||||
|
||||
| 选择器 | 属性 | 值 |
|
||||
|--------|------|-----|
|
||||
| :root | --ink | #2a1f1a |
|
||||
| :root | --muted | #7a6560 |
|
||||
| :root | --paper | #faf6f2 |
|
||||
| :root | --card | #ffffff |
|
||||
| :root | --line | #eadfd8 |
|
||||
| :root | --accent | #9b2c2c |
|
||||
| :root | --accent-ink | #fffaf7 |
|
||||
| :root | --radius | 12px |
|
||||
| :root | --serif | "Noto Serif SC", "Songti SC", Georgia, serif |
|
||||
| :root | --ink | #333333 |
|
||||
| :root | --ink-strong | #111111 |
|
||||
| :root | --muted | #666666 |
|
||||
| :root | --paper | #f8f9fa |
|
||||
| :root | --glass | rgba(255,255,255,0.28) |
|
||||
| :root | --glass-strong | rgba(255,255,255,0.42) |
|
||||
| :root | --glass-border | rgba(255,255,255,0.5) |
|
||||
| :root | --accent | #fdbbdb |
|
||||
| :root | --accent-deep | #f0a8c4 |
|
||||
| :root | --accent-text | #a85878 |
|
||||
| :root | --accent-muted | #c97a96 |
|
||||
| :root | --accent-bg | rgba(253,189,219,0.48) |
|
||||
| :root | --hero-pink | #ffd0d0 |
|
||||
| :root | --radius | 14px |
|
||||
| :root | --sans | "Noto Sans SC", "IBM Plex Sans", system-ui, sans-serif |
|
||||
| * | box-sizing | border-box |
|
||||
| html | scroll-behavior | smooth |
|
||||
| body | margin | "0" |
|
||||
| body | min-height | 100vh |
|
||||
| body | font-family | var(--sans) |
|
||||
| body | background | var(--paper) |
|
||||
| body | color | var(--ink) |
|
||||
| h1 | font-family | var(--serif) |
|
||||
| h1 | font-weight | "600" |
|
||||
| a | color | var(--accent) |
|
||||
| .main-intro | max-width | "52rem" |
|
||||
| .main-intro | margin | "1.5rem auto" |
|
||||
| .main-intro | padding | "0 1.25rem" |
|
||||
| .chat-box | border | 1px solid var(--line) |
|
||||
| .chat-box | border-radius | var(--radius) |
|
||||
| .chat-box | background | var(--card) |
|
||||
| .chat-box | padding | "1rem" |
|
||||
| .chat-log | min-height | "12rem" |
|
||||
| .chat-log | font-family | ui-monospace, monospace |
|
||||
| .chat-log | font-size | "0.9rem" |
|
||||
| .chat-log | white-space | pre-wrap |
|
||||
| body | line-height | "1.6" |
|
||||
| body | background-color | var(--paper) |
|
||||
| body | background-image | url("/static/bg-body-960.webp") |
|
||||
| body | background-repeat | no-repeat |
|
||||
| body | background-size | cover |
|
||||
| body | background-position | center center |
|
||||
| body | background-attachment | fixed |
|
||||
| body | overflow-x | hidden |
|
||||
| a | color | var(--accent-text) |
|
||||
| a | text-decoration | none |
|
||||
| a:hover | color | var(--accent-deep) |
|
||||
| ::selection | background | rgba(253,189,219,0.45) |
|
||||
| main.main | padding | 0 0 3rem |
|
||||
| .main-intro | max-width | 72rem |
|
||||
| .main-intro | margin | 0 auto |
|
||||
| .main-intro | padding | 1.25rem 1.5rem 0 |
|
||||
|
||||
**`基础`**
|
||||
|
||||
## 动效
|
||||
|
||||
原站 `pulse`(Logo)与 `heroImageFloat`(主图);尊重减动偏好。
|
||||
|
||||
`动效` =
|
||||
|
||||
| 选择器 | 属性 | 值 |
|
||||
|--------|------|-----|
|
||||
| @keyframes pulse 0% | transform | scale(1) |
|
||||
| @keyframes pulse 50% | transform | scale(1.05) |
|
||||
| @keyframes pulse 100% | transform | scale(1) |
|
||||
| @keyframes heroImageFloat 0% | transform | scale(1) |
|
||||
| @keyframes heroImageFloat 50% | transform | scale(1.04) |
|
||||
| @keyframes heroImageFloat 100% | transform | scale(1) |
|
||||
| @keyframes cardRise 0% | opacity | "0" |
|
||||
| @keyframes cardRise 0% | transform | translateY(10px) |
|
||||
| @keyframes cardRise 100% | opacity | "1" |
|
||||
| @keyframes cardRise 100% | transform | translateY(0) |
|
||||
|
||||
**`动效`**
|
||||
|
||||
## 顶栏
|
||||
|
||||
毛玻璃导航;首项品牌带 Logo 呼吸动画。
|
||||
|
||||
`顶栏` =
|
||||
|
||||
| 选择器 | 属性 | 值 |
|
||||
|--------|------|-----|
|
||||
| header.topnav | grid-area | top |
|
||||
| header.topnav | position | sticky |
|
||||
| header.topnav | top | "0" |
|
||||
| header.topnav | z-index | "1000" |
|
||||
| header.topnav | width | 100% |
|
||||
| header.topnav | padding | 0.75rem 1.25rem |
|
||||
| header.topnav | background | rgba(255,255,255,0.2) |
|
||||
| header.topnav | backdrop-filter | blur(24px) |
|
||||
| header.topnav | -webkit-backdrop-filter | blur(24px) |
|
||||
| header.topnav | border-bottom | 1px solid rgba(255,255,255,0.2) |
|
||||
| header.topnav | box-shadow | inset 0 0 5px rgba(255,255,255,0.1) |
|
||||
| ul.nav | list-style | none |
|
||||
| ul.nav | margin | "0" |
|
||||
| ul.nav | padding | "0" |
|
||||
| ul.nav | display | flex |
|
||||
| ul.nav | flex-wrap | wrap |
|
||||
| ul.nav | align-items | center |
|
||||
| ul.nav | gap | 0.35rem 0.5rem |
|
||||
| ul.nav a | display | inline-flex |
|
||||
| ul.nav a | align-items | center |
|
||||
| ul.nav a | gap | 0.45rem |
|
||||
| ul.nav a | padding | 0.4rem 0.85rem |
|
||||
| ul.nav a | border-radius | 999px |
|
||||
| ul.nav a | color | var(--ink) |
|
||||
| ul.nav a | font-weight | "600" |
|
||||
| ul.nav a | transition | color 0.2s ease, transform 0.2s ease, background 0.2s ease |
|
||||
| ul.nav a:hover | color | var(--accent-text) |
|
||||
| ul.nav a:hover | transform | translateY(-2px) |
|
||||
| ul.nav a:hover | background | rgba(253,189,219,0.22) |
|
||||
| ul.nav li:first-child a | font-size | 1.05rem |
|
||||
| ul.nav li:first-child a | font-weight | "700" |
|
||||
| ul.nav li:first-child a | letter-spacing | 0.04em |
|
||||
| ul.nav li:first-child a | padding-left | 0.35rem |
|
||||
| ul.nav li:first-child a::before | content | "" |
|
||||
| ul.nav li:first-child a::before | width | 28px |
|
||||
| ul.nav li:first-child a::before | height | 28px |
|
||||
| ul.nav li:first-child a::before | background | url("/static/logo.svg") center / contain no-repeat |
|
||||
| ul.nav li:first-child a::before | animation | pulse 3s ease-in-out infinite |
|
||||
| ul.nav li:first-child a:hover | transform | none |
|
||||
| ul.nav li:first-child a:hover | background | transparent |
|
||||
|
||||
**`顶栏`**
|
||||
|
||||
## Hero
|
||||
|
||||
首页双栏英雄区:大标题粉强调 + 主图漂浮。
|
||||
|
||||
`Hero` =
|
||||
|
||||
| 选择器 | 属性 | 值 |
|
||||
|--------|------|-----|
|
||||
| .hero | max-width | 72rem |
|
||||
| .hero | margin | 0 auto 1.5rem |
|
||||
| .hero | padding | 1.5rem 0.5rem 0.5rem |
|
||||
| .hero-content | display | grid |
|
||||
| .hero-content | grid-template-columns | minmax(0,1fr) minmax(0,1fr) |
|
||||
| .hero-content | align-items | center |
|
||||
| .hero-content | gap | 2rem |
|
||||
| .hero-left | display | flex |
|
||||
| .hero-left | flex-direction | column |
|
||||
| .hero-left | align-items | flex-start |
|
||||
| .hero-brand | display | inline-flex |
|
||||
| .hero-brand | align-items | center |
|
||||
| .hero-brand | gap | 0.55rem |
|
||||
| .hero-brand | margin | 0 0 1rem |
|
||||
| .hero-brand | font-size | 1.35rem |
|
||||
| .hero-brand | font-weight | "700" |
|
||||
| .hero-brand | letter-spacing | 0.08em |
|
||||
| .hero-brand | text-transform | uppercase |
|
||||
| .hero-brand | color | var(--ink-strong) |
|
||||
| .hero-logo | width | 30px |
|
||||
| .hero-logo | height | 30px |
|
||||
| .hero-logo | animation | pulse 3s ease-in-out infinite |
|
||||
| .hero-pink | color | var(--hero-pink) |
|
||||
| .main-text | margin | 0 0 1.25rem |
|
||||
| .main-text | font-size | clamp(2.4rem, 5.5vw, 5.2rem) |
|
||||
| .main-text | font-weight | "800" |
|
||||
| .main-text | line-height | "1.15" |
|
||||
| .main-text | color | var(--ink-strong) |
|
||||
| .sub-text | margin | 0 0 1.75rem |
|
||||
| .sub-text | max-width | 34rem |
|
||||
| .sub-text | font-size | 1.05rem |
|
||||
| .sub-text | letter-spacing | 0.02em |
|
||||
| .sub-text | color | rgba(60,60,60,0.85) |
|
||||
| .hero-cta | display | flex |
|
||||
| .hero-cta | flex-wrap | wrap |
|
||||
| .hero-cta | gap | 0.65rem |
|
||||
| .hero-btn | display | inline-flex |
|
||||
| .hero-btn | align-items | center |
|
||||
| .hero-btn | padding | 0.55rem 1.2rem |
|
||||
| .hero-btn | border-radius | 999px |
|
||||
| .hero-btn | font-weight | "600" |
|
||||
| .hero-btn | color | #fff |
|
||||
| .hero-btn | background | linear-gradient(120deg, var(--accent-deep), var(--accent)) |
|
||||
| .hero-btn | box-shadow | 0 6px 18px rgba(253,189,219,0.45) |
|
||||
| .hero-btn | transition | transform 0.2s ease, box-shadow 0.2s ease |
|
||||
| .hero-btn:hover | transform | translateY(-2px) |
|
||||
| .hero-btn:hover | color | #fff |
|
||||
| .hero-btn:hover | box-shadow | 0 10px 24px rgba(253,189,219,0.55) |
|
||||
| .hero-btn.ghost | background | rgba(255,255,255,0.35) |
|
||||
| .hero-btn.ghost | color | var(--accent-text) |
|
||||
| .hero-btn.ghost | border | 1px solid var(--glass-border) |
|
||||
| .hero-btn.ghost | box-shadow | none |
|
||||
| .hero-btn.ghost:hover | background | rgba(255,255,255,0.55) |
|
||||
| .hero-btn.ghost:hover | color | var(--accent-text) |
|
||||
| .hero-right | display | flex |
|
||||
| .hero-right | align-items | center |
|
||||
| .hero-right | justify-content | center |
|
||||
| .hero-art | display | block |
|
||||
| .hero-art | width | 85% |
|
||||
| .hero-art | max-width | 420px |
|
||||
| .hero-art | height | auto |
|
||||
| .hero-art | filter | drop-shadow(0 0 20px rgba(255,208,208,0.45)) |
|
||||
| .hero-art | animation | heroImageFloat 30s linear infinite |
|
||||
| .hero-art | pointer-events | none |
|
||||
| .home-feed-head | max-width | 52rem |
|
||||
| .home-feed-head | margin | 0.5rem auto 0 |
|
||||
| .home-feed-head | padding | 0 1.25rem |
|
||||
| .home-feed-head h2 | margin | 0 0 0.35rem |
|
||||
| .home-feed-head h2 | font-size | 1.35rem |
|
||||
| .home-feed-head h2 | color | var(--accent-text) |
|
||||
| .home-feed-head p | margin | "0" |
|
||||
| .home-feed-head p | color | var(--muted) |
|
||||
| .home-feed-head p | font-size | 0.92rem |
|
||||
| .page-stage | max-width | 52rem |
|
||||
| .page-stage | margin | 1.25rem auto 0 |
|
||||
| .page-stage | padding | 1.25rem 1.35rem |
|
||||
| .page-stage | border-radius | var(--radius) |
|
||||
| .page-stage | background | var(--glass) |
|
||||
| .page-stage | backdrop-filter | blur(14px) |
|
||||
| .page-stage | -webkit-backdrop-filter | blur(14px) |
|
||||
| .page-stage | border | 1px solid var(--glass-border) |
|
||||
| .page-stage h1 | margin | 0 0 0.35rem |
|
||||
| .page-stage h1 | font-size | 1.6rem |
|
||||
| .page-stage h1 | color | var(--ink-strong) |
|
||||
| .page-stage p | margin | "0" |
|
||||
| .page-stage p | color | var(--muted) |
|
||||
|
||||
**`Hero`**
|
||||
|
||||
## 卡片
|
||||
|
||||
粉玻璃帖子/新闻卡:悬停上浮(对齐 `.home-post-card`)。
|
||||
|
||||
`卡片` =
|
||||
|
||||
| 选择器 | 属性 | 值 |
|
||||
|--------|------|-----|
|
||||
| .content.cards | max-width | 52rem |
|
||||
| .content.cards | margin | 1rem auto 0 |
|
||||
| .content.cards | padding | 0 1.25rem |
|
||||
| .content.cards | display | flex |
|
||||
| .content.cards | flex-direction | column |
|
||||
| .content.cards | gap | 0.65rem |
|
||||
| article.card | border-radius | var(--radius) |
|
||||
| article.card | background | rgba(255,255,255,0.32) |
|
||||
| article.card | backdrop-filter | blur(12px) |
|
||||
| article.card | -webkit-backdrop-filter | blur(12px) |
|
||||
| article.card | border | 1px solid rgba(255,255,255,0.42) |
|
||||
| article.card | box-shadow | 0 4px 16px rgba(253,189,219,0.08) |
|
||||
| article.card | transition | transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease |
|
||||
| article.card | animation | cardRise 0.45s ease both |
|
||||
| article.card:nth-child(2) | animation-delay | 0.05s |
|
||||
| article.card:nth-child(3) | animation-delay | 0.1s |
|
||||
| article.card:nth-child(4) | animation-delay | 0.15s |
|
||||
| article.card:hover | transform | translateY(-2px) |
|
||||
| article.card:hover | background | rgba(255,255,255,0.42) |
|
||||
| article.card:hover | box-shadow | 0 8px 24px rgba(253,189,219,0.18) |
|
||||
| a.card-link | display | grid |
|
||||
| a.card-link | grid-template-columns | auto 1fr |
|
||||
| a.card-link | grid-template-areas | "meta title" "meta body" |
|
||||
| a.card-link | gap | 0.35rem 1rem |
|
||||
| a.card-link | align-items | start |
|
||||
| a.card-link | padding | 0.85rem 1rem |
|
||||
| a.card-link | color | inherit |
|
||||
| a.card-link | text-decoration | none |
|
||||
| .card-meta | grid-area | meta |
|
||||
| .card-meta | align-self | center |
|
||||
| .card-meta | padding | 0.2rem 0.55rem |
|
||||
| .card-meta | border-radius | 6px |
|
||||
| .card-meta | font-size | 0.6875rem |
|
||||
| .card-meta | font-weight | "600" |
|
||||
| .card-meta | color | var(--accent-text) |
|
||||
| .card-meta | background | rgba(253,189,219,0.28) |
|
||||
| .card-meta | white-space | nowrap |
|
||||
| .card-meta | max-width | 5rem |
|
||||
| .card-meta | overflow | hidden |
|
||||
| .card-meta | text-overflow | ellipsis |
|
||||
| article.card h2 | grid-area | title |
|
||||
| article.card h2 | margin | "0" |
|
||||
| article.card h2 | font-size | 0.95rem |
|
||||
| article.card h2 | font-weight | "600" |
|
||||
| article.card h2 | color | #222 |
|
||||
| article.card h2 | line-height | "1.35" |
|
||||
| article.card p | grid-area | body |
|
||||
| article.card p | margin | "0" |
|
||||
| article.card p | font-size | 0.82rem |
|
||||
| article.card p | color | #666 |
|
||||
| article.card p | line-height | "1.45" |
|
||||
| article.article | max-width | 42rem |
|
||||
| article.article | margin | 1.5rem auto |
|
||||
| article.article | padding | 1.5rem 1.6rem |
|
||||
| article.article | border-radius | var(--radius) |
|
||||
| article.article | background | rgba(255,255,255,0.55) |
|
||||
| article.article | backdrop-filter | blur(16px) |
|
||||
| article.article | -webkit-backdrop-filter | blur(16px) |
|
||||
| article.article | border | 1px solid var(--glass-border) |
|
||||
| article.article | box-shadow | 0 8px 28px rgba(253,189,219,0.12) |
|
||||
| .article-meta | color | var(--accent-text) |
|
||||
| .article-meta | font-size | 0.85rem |
|
||||
| .article-meta | font-weight | "600" |
|
||||
| .article-meta | margin-bottom | 0.5rem |
|
||||
| .article-title | margin | 0 0 1rem |
|
||||
| .article-title | font-size | 1.75rem |
|
||||
| .article-title | color | var(--ink-strong) |
|
||||
| .article-body | color | var(--ink) |
|
||||
| .article-body | line-height | "1.75" |
|
||||
| .site-form | max-width | 34rem |
|
||||
| .site-form | margin | 1.5rem auto |
|
||||
| .site-form | padding | 1.5rem |
|
||||
| .site-form | border-radius | var(--radius) |
|
||||
| .site-form | background | rgba(255,255,255,0.45) |
|
||||
| .site-form | backdrop-filter | blur(14px) |
|
||||
| .site-form | border | 1px solid var(--glass-border) |
|
||||
| .chat-box | max-width | 42rem |
|
||||
| .chat-box | margin | 1rem auto |
|
||||
| .chat-box | padding | 1rem 1.15rem |
|
||||
| .chat-box | border-radius | var(--radius) |
|
||||
| .chat-box | background | rgba(255,255,255,0.4) |
|
||||
| .chat-box | backdrop-filter | blur(12px) |
|
||||
| .chat-box | border | 1px solid var(--glass-border) |
|
||||
| .chat-log | min-height | 12rem |
|
||||
| .chat-log | font-family | ui-monospace, monospace |
|
||||
| .chat-log | font-size | 0.9rem |
|
||||
| .chat-log | white-space | pre-wrap |
|
||||
| .search-bar | display | flex |
|
||||
| .search-bar | gap | 0.5rem |
|
||||
| .search-bar | margin-top | 0.85rem |
|
||||
| .search-bar input | flex | "1" |
|
||||
| .search-bar input | padding | 0.55rem 0.8rem |
|
||||
| .search-bar input | border-radius | 999px |
|
||||
| .search-bar input | border | 1px solid rgba(253,189,219,0.55) |
|
||||
| .search-bar input | background | rgba(255,255,255,0.65) |
|
||||
| .search-bar button | padding | 0.55rem 1.1rem |
|
||||
| .search-bar button | border | "0" |
|
||||
| .search-bar button | border-radius | 999px |
|
||||
| .search-bar button | background | var(--accent) |
|
||||
| .search-bar button | color | var(--accent-text) |
|
||||
| .search-bar button | font-weight | "600" |
|
||||
| .search-bar button | cursor | pointer |
|
||||
|
||||
**`卡片`**
|
||||
|
||||
## 页脚
|
||||
|
||||
双栏粉玻璃页脚。
|
||||
|
||||
`页脚` =
|
||||
|
||||
| 选择器 | 属性 | 值 |
|
||||
|--------|------|-----|
|
||||
| footer.foot | grid-area | foot |
|
||||
| footer.foot | margin-top | 2rem |
|
||||
| footer.foot | padding | 2rem 1.5rem 2.5rem |
|
||||
| footer.foot | background | rgba(255,255,255,0.28) |
|
||||
| footer.foot | backdrop-filter | blur(14px) |
|
||||
| footer.foot | -webkit-backdrop-filter | blur(14px) |
|
||||
| footer.foot | border-top | 1px solid rgba(255,255,255,0.45) |
|
||||
| footer.foot | box-shadow | inset 0 1px 0 rgba(255,255,255,0.35) |
|
||||
| ul.foot-nav | list-style | none |
|
||||
| ul.foot-nav | margin | 0 auto |
|
||||
| ul.foot-nav | padding | "0" |
|
||||
| ul.foot-nav | max-width | 52rem |
|
||||
| ul.foot-nav | display | flex |
|
||||
| ul.foot-nav | flex-wrap | wrap |
|
||||
| ul.foot-nav | justify-content | center |
|
||||
| ul.foot-nav | gap | 0.75rem 1.5rem |
|
||||
| ul.foot-nav a | color | #444 |
|
||||
| ul.foot-nav a | font-weight | "500" |
|
||||
| ul.foot-nav a:hover | color | var(--accent-text) |
|
||||
|
||||
**`页脚`**
|
||||
|
||||
## 响应式
|
||||
|
||||
平板收窄标题;手机 Hero 单栏。
|
||||
|
||||
`响应式` =
|
||||
|
||||
| 媒体 | 选择器 | 属性 | 值 |
|
||||
|------|--------|------|-----|
|
||||
| (max-width: 1024px) | .hero-content | gap | 1.25rem |
|
||||
| (max-width: 1024px) | .main-text | font-size | clamp(2.2rem, 4.5vw, 3.6rem) |
|
||||
| (max-width: 1024px) | .hero-art | width | min(90%, 340px) |
|
||||
| (max-width: 767px) | .hero-content | grid-template-columns | 1fr |
|
||||
| (max-width: 767px) | .hero-left | align-items | center |
|
||||
| (max-width: 767px) | .hero-left | text-align | center |
|
||||
| (max-width: 767px) | .sub-text | text-align | center |
|
||||
| (max-width: 767px) | .hero-cta | justify-content | center |
|
||||
| (max-width: 767px) | .hero-right | order | "2" |
|
||||
| (max-width: 767px) | .hero-left | order | "1" |
|
||||
| (max-width: 767px) | header.topnav | padding | 0.65rem 0.85rem |
|
||||
| (max-width: 767px) | ul.nav | gap | 0.25rem |
|
||||
| (prefers-reduced-motion: reduce) | .hero-art | animation | none |
|
||||
| (prefers-reduced-motion: reduce) | .hero-logo | animation | none |
|
||||
| (prefers-reduced-motion: reduce) | ul.nav li:first-child a::before | animation | none |
|
||||
| (prefers-reduced-motion: reduce) | article.card | animation | none |
|
||||
|
||||
**`响应式`**
|
||||
|
||||
## 全局
|
||||
|
||||
*基础表 = > 基础*
|
||||
*css = > 网页.样式装配 名="anlian" 表=`基础表`*
|
||||
*动效表 = > 动效*
|
||||
*顶栏表 = > 顶栏*
|
||||
*Hero表 = > Hero*
|
||||
*卡片表 = > 卡片*
|
||||
*页脚表 = > 页脚*
|
||||
*响应式表 = > 响应式*
|
||||
|
||||
*css基础 = > 网页.样式装配 名="基础" 表=`基础表`*
|
||||
*css动效 = > 网页.样式装配 名="动效" 表=`动效表`*
|
||||
*css顶栏 = > 网页.样式装配 名="顶栏" 表=`顶栏表`*
|
||||
*cssHero = > 网页.样式装配 名="Hero" 表=`Hero表`*
|
||||
*css卡片 = > 网页.样式装配 名="卡片" 表=`卡片表`*
|
||||
*css页脚 = > 网页.样式装配 名="页脚" 表=`页脚表`*
|
||||
*css响应式 = > 网页.样式装配 名="响应式" 表=`响应式表`*
|
||||
|
||||
`css段` =
|
||||
|
||||
| css |
|
||||
|-----|
|
||||
| `css基础` |
|
||||
| `css动效` |
|
||||
| `css顶栏` |
|
||||
| `cssHero` |
|
||||
| `css卡片` |
|
||||
| `css页脚` |
|
||||
| `css响应式` |
|
||||
|
||||
*css = > text.str_join xs=`css段` sep=""*
|
||||
**css**
|
||||
Reference in new issue
Block a user