diff --git a/static/public/css/qing.css b/static/public/css/qing.css new file mode 100644 index 0000000..3874be6 --- /dev/null +++ b/static/public/css/qing.css @@ -0,0 +1,71 @@ +code { + color: red; + background-color: rgb(254, 235, 238); + padding: 5px; + border-radius: 5px; +} +pre > code { + display: block; + color: white; + background-color: rgb(96, 96, 96); + padding: 5px; + border-radius: 5px; +} +blockquote { + margin-right: 0px; + background-color: #cfcfcf; +} + +/* by qing */ +body { + min-height: 100vh; + display: flex; + justify-content: center; + align-items: center; + background: #fffbf0; + font-family: system-ui, -apple-system, "Segoe UI", Roboto,sans-serif; + padding: 1rem; +} + +.box { + width: 90%; +} + +.card { + background-color: #eedeb0; + border: 1px solid #000000; + border-radius: 1.125rem; + padding: 1.5rem 1.25rem; + box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02); + /*max-width: 480px;*/ + width: 90%; + color: #4d3e2b; + transition: box-shadow 0.2s, border-color 0.2s; + overflow-wrap: break-word; +} + +.card:hover { + border-color: #c7b38a; + box-shadow: 0 10px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03); +} + +/* 移动端微调 */ +@media (max-width: 480px) { + body { + padding: 0.8rem; + } + + .card { + padding: 1.2rem, 1rem; + border-radius: 1rem; + border-width: 1px; + } +} + +/* 极小屏 (宽度 < 360px) */ +@media (max-width: 360px) { + .card { + padding: 1rem 0.8rem; + border-radius: 0.9rem; + } +} diff --git a/static/public/dnfs.html b/static/public/dnfs.html index 7637f0d..73a14a3 100644 --- a/static/public/dnfs.html +++ b/static/public/dnfs.html @@ -5,34 +5,26 @@ DNFS · 树状笔记 - + -
- -

title

+
+

- -
- 发布时间:2026-1-1 +
+
+
+
+
+

节点操作

+
+
+ + +
+ + +
浏览:999 diff --git a/static/public/js/dnfs.js b/static/public/js/dnfs.js index 8f3f8d4..c233085 100644 --- a/static/public/js/dnfs.js +++ b/static/public/js/dnfs.js @@ -144,21 +144,23 @@ function load_notes(main_node) { } for (i in main_node) { item = main_node[i] + var card = document.createElement('div'); + card.className = "card"; var ttl = document.createElement('center'); ttl.addEventListener('click', function(event) { var id = Number(item.id) stack.push(id) getNode(token, id).then(load_notes) }); - var ttl1 =document.createElement('h1'); + var ttl1 =document.createElement('h3'); ttl1.textContent = item.title ttl.appendChild(ttl1) - recommend_list.appendChild(ttl) + card.appendChild(ttl) var ctt = document.createElement('p'); renderMarkdown(ctt, item.content); - recommend_list.appendChild(ctt) + card.appendChild(ctt) + recommend_list.appendChild(card) recommend_list.appendChild(document.createElement('br')) - recommend_list.appendChild(document.createElement('hr')) } }; diff --git a/static/public/login.html b/static/public/login.html index d995f3b..c4aef65 100644 --- a/static/public/login.html +++ b/static/public/login.html @@ -5,6 +5,7 @@ 登录 + -

用户登录

-
-
- - - -
- - - -
-
- - - - - - -
-
- - - -
-
- - - -
-
+
+

用户登录

+
+
+ + + +
+ + + +
+
+ + + + + + +
+
+ + + +
+
+ + + +
+
+
diff --git a/static/public/register.html b/static/public/register.html index 82157fa..e4ffc1f 100644 --- a/static/public/register.html +++ b/static/public/register.html @@ -4,6 +4,7 @@ 注册页面 + -

注册页面

-
-
- - - -
- - -
验证码: - - - +
+

注册页面

+ +
+ + + +
+ + +
验证码: + + + +
+ +
+ + + + +
- -
- - - - - -
-
- - - -
- +
+ + + +
+ +