From fbb65ca5ca216974f57c47ef7c09d197861595a1 Mon Sep 17 00:00:00 2001 From: sthkm3 Date: Wed, 2 Dec 2026 15:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B6=B2=E5=9F=9F=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- public/index.html | 6 +++--- public/main.js | 4 ++-- public/style.css | 26 ++++++++++++++------------ wrangler.jsonc | 2 +- 5 files changed, 23 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 5b946c6..c085003 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# about.sahik.org +# about.sahik.dev Sahik 的個人頁。純靜態:`public/` 裡的 HTML / CSS / JS,沒有建置步驟。 @@ -16,7 +16,7 @@ npx wrangler login npx wrangler deploy ``` -`wrangler.jsonc` 已經把 `about.sahik.org` 設成 custom domain,第一次部署會自動建 DNS 記錄(sahik.org 要在同一個 Cloudflare 帳號)。 +`wrangler.jsonc` 已經把 `about.sahik.dev` 設成 custom domain,第一次部署會自動建 DNS 記錄(sahik.dev 要在同一個 Cloudflare 帳號)。 ## 備案(Docker on TrueNAS) @@ -25,7 +25,7 @@ docker build -t sahik-about . docker run -d -p 8080:80 --name sahik-about sahik-about ``` -再用 cloudflared 把 `about.sahik.org` 指到 `http://<主機>:8080`。 +再用 cloudflared 把 `about.sahik.dev` 指到 `http://<主機>:8080`。 ## 本機預覽 diff --git a/public/index.html b/public/index.html index 59aeb41..d761cee 100644 --- a/public/index.html +++ b/public/index.html @@ -6,12 +6,12 @@ Sahik - + - - + + diff --git a/public/main.js b/public/main.js index a574761..55ad5f8 100644 --- a/public/main.js +++ b/public/main.js @@ -1,4 +1,4 @@ -// about.sahik.org +// about.sahik.dev (() => { const reduceMotion = matchMedia("(prefers-reduced-motion: reduce)").matches; @@ -13,7 +13,7 @@ "GPU Tesla M40 24G .......... OK", "NAS 3 × mirror ............. OK", "", - "Loading about.sahik.org", + "Loading about.sahik.dev", ]; const boot = document.createElement("div"); boot.className = "boot"; diff --git a/public/style.css b/public/style.css index a142177..924e7f9 100644 --- a/public/style.css +++ b/public/style.css @@ -1,4 +1,4 @@ -/* ===== Sahik · about.sahik.org ===== +/* ===== Sahik · about.sahik.dev ===== 米色復古電腦主題:機殼米色、綠色電源燈、CRT 螢幕 */ :root { @@ -148,7 +148,7 @@ main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); } .likes li span { color: var(--muted); font-size: 14px; } /* ===== Works ===== */ -.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; } +.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; } .work { display: flex; flex-direction: column; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); @@ -156,9 +156,9 @@ main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); } transition: transform .2s, box-shadow .2s; } .work:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 16px 30px -18px #5a4a2a77; } -.work-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; } +.work-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; } .work-media { - margin: 0; height: 250px; overflow: hidden; position: relative; + margin: 0; height: 170px; overflow: hidden; position: relative; background: var(--case); border-bottom: 1px solid var(--line); display: grid; place-items: center; } @@ -166,11 +166,11 @@ main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); } /* 吱鼯:直式卡片放在同色底上 */ .media-zhiwu { background: radial-gradient(circle at 50% 30%, #4a2a10, #1c0f05); } -.media-zhiwu > img { width: auto; height: 230px; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 24px #0008; transform: rotate(3deg) translateY(10px); } +.media-zhiwu > img { width: auto; height: 160px; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 24px #0008; transform: rotate(3deg) translateY(10px); } /* Discord 示意 */ .media-discord { background: #313338; } -.dc { width: min(86%, 340px); font-size: 13px; color: #dbdee1; line-height: 1.45; } +.dc { width: 250px; transform: scale(.78); transform-origin: center; font-size: 13px; color: #dbdee1; line-height: 1.45; } .dc-channel { color: #949ba4; font-weight: 600; margin-bottom: 10px; } .dc-msg { display: flex; gap: 10px; margin-bottom: 10px; } .dc-msg p { margin: 0; } @@ -185,12 +185,12 @@ main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); } /* 手機掛機示意 */ .media-phone { background: linear-gradient(160deg, #f6d9b0, #e9b98a); } .phone { - width: 180px; height: 215px; align-self: end; + width: 150px; height: 150px; align-self: end; font-size: 11.5px; padding: 8px 10px; background: #fffaf1; border: 6px solid #2a2620; border-radius: 22px 22px 0 0; border-bottom: 0; - padding: 10px 12px; font-size: 12.5px; } .phone-bar { font-family: var(--mono); font-size: 11px; color: #fff; background: var(--led); border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; text-align: center; } .phone-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } +.phone-log { gap: 2px; } .phone-log li { display: flex; justify-content: space-between; border-bottom: 1px dashed #e4d8c2; padding-bottom: 3px; } .phone-log b { color: var(--led); } .phone-log b.wait { color: var(--amber); animation: blink 1.2s infinite; } @@ -200,7 +200,7 @@ main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); } .vid { position: absolute; inset: 0; display: grid; place-items: center; } .vid-title { position: absolute; top: 12px; left: 14px; color: #ddd; font-size: 13px; font-family: var(--mono); } .vid-play { - width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; + width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #fff2; color: #fff; font-size: 24px; padding-left: 4px; transition: transform .2s, background .2s; } .work:hover .vid-play { transform: scale(1.12); background: #e33; } @@ -212,8 +212,10 @@ main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); } .badge { font-size: 12px; font-family: var(--mono); border: 1px solid var(--case-dark); border-radius: 999px; padding: 1px 10px; color: var(--muted); } .badge.live { color: #1d7a36; border-color: #9fd4ad; background: #e7f5e9; } .badge.live::before { content: "● "; color: var(--led); } -.work h3 { font-size: 20px; margin-bottom: 8px; } -.work-body > p { margin: 0 0 14px; color: var(--muted); flex: 1; } +.work h3 { font-size: 18px; margin-bottom: 6px; } +.work .tags li { font-size: 12px; padding: 3px 7px; } +.work-links a { font-size: 13.5px; } +.work-body > p { margin: 0 0 12px; color: var(--muted); flex: 1; font-size: 15px; line-height: 1.7; } .tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; } .work-links { display: flex; flex-wrap: wrap; gap: 6px 18px; border-top: 1px dashed var(--line); padding-top: 12px; } .work-links a { font-size: 14px; font-weight: 600; text-decoration: none; } @@ -375,7 +377,7 @@ main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); } @media (max-width: 860px) { .hero { grid-template-columns: 1fr; text-align: left; } .monitor { max-width: 280px; } - .about-grid, .servers, .works { grid-template-columns: 1fr; } + .about-grid, .servers { grid-template-columns: 1fr; } .flow-row { grid-template-columns: 1fr; gap: 6px; } .arrow { width: 2px; height: 16px; margin-left: 24px; } .arrow::after { right: auto; top: auto; bottom: -2px; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--case-dark); border-bottom: 0; } diff --git a/wrangler.jsonc b/wrangler.jsonc index 5b43c7d..54b8bd4 100644 --- a/wrangler.jsonc +++ b/wrangler.jsonc @@ -8,6 +8,6 @@ "not_found_handling": "404-page" }, "routes": [ - { "pattern": "about.sahik.org", "custom_domain": true } + { "pattern": "about.sahik.dev", "custom_domain": true } ] }