From a3acd9320af13391057707a844ea01e2cd93cc60 Mon Sep 17 00:00:00 2001 From: zenn Date: Wed, 29 Apr 2026 15:01:59 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=B5=EA=B0=9C=20=ED=99=94=EB=A9=B4=20?= =?UTF-8?q?=ED=85=8C=EB=A7=88=EC=99=80=20=ED=8C=A8=EB=84=90=20=EA=B5=AC?= =?UTF-8?q?=EC=A1=B0=20=EB=B3=B4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/main.css | 97 ++++++++++++++++++++++++-- components/site/LeftSidebar.vue | 114 ++++++++++++++++++++++++++----- components/site/PostCard.vue | 27 ++++---- components/site/RightSidebar.vue | 78 ++++++++++++++++++--- components/site/SiteHeader.vue | 23 ++++--- docs/changelog.md | 6 ++ docs/history.md | 8 +++ docs/spec.md | 13 +++- docs/todo.md | 2 +- docs/update.md | 11 +++ layouts/post.vue | 2 +- package-lock.json | 23 +++++-- package.json | 2 +- pages/index.vue | 57 ++++++++++++++-- 14 files changed, 390 insertions(+), 73 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index e9c58c2..ca4a57d 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -3,29 +3,67 @@ @tailwind utilities; @layer base { + :root { + --site-bg: #fbfbfa; + --site-panel: #f6f6f5; + --site-panel-strong: #ffffff; + --site-text: #111111; + --site-muted: #454545; + --site-soft: #6f7480; + --site-line: #e2e2e0; + --site-input: #f2f2f1; + --site-accent: #ff4f2e; + --site-accent-text: #ffffff; + --site-invert: #111111; + --site-invert-text: #ffffff; + } + + @media (prefers-color-scheme: dark) { + :root { + --site-bg: #050505; + --site-panel: #080808; + --site-panel-strong: #0d0d0d; + --site-text: #f4f4f2; + --site-muted: #c7c7c2; + --site-soft: #8b8e96; + --site-line: #252525; + --site-input: #171717; + --site-accent: #ff4f2e; + --site-accent-text: #ffffff; + --site-invert: #f4f4f2; + --site-invert-text: #111111; + } + } + html { font-family: Pretendard, ui-sans-serif, system-ui, sans-serif; - color: #1f2328; - background: #f7f7f4; + color: var(--site-text); + background: var(--site-bg); } body { min-width: 320px; margin: 0; + background: var(--site-bg); } } @layer components { .site-shell { - @apply min-h-screen bg-surface text-ink; + min-height: 100vh; + color: var(--site-text); + background: var(--site-bg); } .site-content-grid { @apply mx-auto grid max-w-[1294px] grid-cols-1 px-4 lg:grid-cols-[287px_minmax(0,720px)_287px] lg:px-0; + min-height: calc(100vh - 57px); + background: var(--site-bg); } .site-section { - @apply border-b border-line bg-paper; + border-bottom: 1px solid var(--site-line); + background: var(--site-bg); } .site-section-header { @@ -37,6 +75,55 @@ } .post-prose { - @apply max-w-none text-[17px] leading-8 text-ink; + @apply max-w-none text-[17px] leading-8; + color: var(--site-text); + } + + .site-header { + height: 57px; + border-bottom: 1px solid var(--site-line); + background: var(--site-panel); + color: var(--site-text); + } + + .site-main { + min-height: calc(100vh - 57px); + border-left: 1px solid var(--site-line); + border-right: 1px solid var(--site-line); + background: var(--site-bg); + } + + .site-sidebar { + min-height: calc(100vh - 57px); + background: var(--site-panel); + color: var(--site-text); + } + + .site-sidebar-section { + border-bottom: 1px solid var(--site-line); + } + + .site-muted { + color: var(--site-muted); + } + + .site-soft { + color: var(--site-soft); + } + + .site-input { + border: 1px solid var(--site-line); + background: var(--site-input); + color: var(--site-text); + } + + .site-button { + background: var(--site-invert); + color: var(--site-invert-text); + } + + .site-accent-button { + background: var(--site-accent); + color: var(--site-accent-text); } } diff --git a/components/site/LeftSidebar.vue b/components/site/LeftSidebar.vue index f9b7023..daadffc 100644 --- a/components/site/LeftSidebar.vue +++ b/components/site/LeftSidebar.vue @@ -1,23 +1,105 @@ diff --git a/components/site/PostCard.vue b/components/site/PostCard.vue index 5e5ea5d..b2bea43 100644 --- a/components/site/PostCard.vue +++ b/components/site/PostCard.vue @@ -9,18 +9,21 @@ defineProps({ diff --git a/components/site/RightSidebar.vue b/components/site/RightSidebar.vue index 3fa7218..41a4e0c 100644 --- a/components/site/RightSidebar.vue +++ b/components/site/RightSidebar.vue @@ -1,17 +1,73 @@ diff --git a/components/site/SiteHeader.vue b/components/site/SiteHeader.vue index 84d5c54..b30bc95 100644 --- a/components/site/SiteHeader.vue +++ b/components/site/SiteHeader.vue @@ -1,18 +1,21 @@