diff --git a/LOG.md b/LOG.md
index 109a793..6ec1f66 100644
--- a/LOG.md
+++ b/LOG.md
@@ -2,6 +2,11 @@
## 2026-05-29
+- Added a category post-list page size control with 9/18/27 options, defaulting to 9 and persisting the user's choice in `localStorage` under `categoryPageSize`.
+- Wired the selected category page size into the React Query key and `getPostsByCategory` request size, resetting to page 1 when the size changes while preserving search behavior.
+- Adjusted the category page toolbar so search, page-size controls, and grid/list controls stack cleanly on narrow screens and align in one row on desktop.
+- Validation: `npm run lint` passed and `npm run build` passed. Static verification confirms the category query uses `pageSize` and the page-size selector persists to `localStorage`; interactive browser verification was skipped because no local browser/Playwright automation runtime is available in this environment.
+- Recommended next task: verify the category toolbar in a real browser after deploy, especially mobile widths and the 18/27 page-size transitions.
- Investigated Google Search Console crawlability concerns for the live site.
- Checked live `robots.txt`, `sitemap.xml`, homepage, sample post pages, and backend post API with a Googlebot user agent; public post URLs in the sitemap returned 200 with no `X-Robots-Tag` or meta robots block.
- Confirmed the non-www production host `blog.wypark.me` is the relevant host; its home/archive initial HTML currently contains no `/posts/` links because public lists are client-side rendered.
@@ -23,3 +28,7 @@
- Validation: `npm run lint` passed, `npm run build` passed. The build logged a sitemap fetch warning because the backend API at the local default was not reachable, but the command completed successfully.
- Browser verification: previously started this app on `http://localhost:3100` because ports 3000 and 3001 were already occupied; confirmed desktop background gradients, menu bar, Dock, and window surfaces on `/`, `/archive`, and `/login`. For this follow-up, the dev/standalone server started successfully in foreground but exited when launched as a background non-interactive process, so browser verification was skipped after lint/build passed.
- Recommended next task: review the remaining older Korean strings in admin/editor flows and normalize any mojibake that predates this redesign.
+- Unified the macOS-inspired layer system by splitting window, card, control, sidebar, menu bar, and Dock border/shadow/blur tokens, with stronger dark-mode card separation.
+- Applied the layer tokens across shared surfaces, the menu bar, Dock, sidebar controls, search/toggles, home dashboard panels, reader navigation cards, and admin dashboard/editor panels.
+- Validation: `npm run lint` passed, `npm run build` passed, and in-app browser verification on `http://localhost:3100/` confirmed distinct light/dark computed border, shadow, and backdrop blur values for the menu bar, main window, internal cards, and Dock.
+- Recommended next task: do a visual pass on lower-traffic admin list/modal screens and convert any remaining ad hoc hover fills to the shared card/control tokens.
diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx
index 7f9006f..d026b24 100644
--- a/src/app/admin/page.tsx
+++ b/src/app/admin/page.tsx
@@ -93,7 +93,7 @@ function RecentPostRow({ post }: { post: Post }) {
return (
{post.title}
@@ -123,7 +123,7 @@ function RecentCommentRow({ comment }: { comment: AdminComment }) {
return (
{content}
diff --git a/src/app/category/[id]/page.tsx b/src/app/category/[id]/page.tsx
index fac3ff1..77787b1 100644
--- a/src/app/category/[id]/page.tsx
+++ b/src/app/category/[id]/page.tsx
@@ -9,10 +9,23 @@ import PostCard from '@/components/post/PostCard';
import PostListItem from '@/components/post/PostListItem';
import PostSearch from '@/components/post/PostSearch';
import EmptyState from '@/components/ui/EmptyState';
+import SegmentedControl from '@/components/ui/SegmentedControl';
import Surface from '@/components/ui/Surface';
import WindowSurface from '@/components/ui/WindowSurface';
-const PAGE_SIZE = 10;
+const PAGE_SIZE_OPTIONS = [
+ { label: '9개', value: '9' },
+ { label: '18개', value: '18' },
+ { label: '27개', value: '27' },
+] as const;
+const DEFAULT_PAGE_SIZE = '9';
+const CATEGORY_PAGE_SIZE_STORAGE_KEY = 'categoryPageSize';
+
+type PageSizeOption = (typeof PAGE_SIZE_OPTIONS)[number]['value'];
+
+const isPageSizeOption = (value: string | null): value is PageSizeOption => {
+ return PAGE_SIZE_OPTIONS.some((option) => option.value === value);
+};
const isNoticeCategoryName = (categoryName: string) => {
const normalizedName = categoryName.toLowerCase();
@@ -27,6 +40,12 @@ export default function CategoryPage({ params }: { params: Promise<{ id: string
const [page, setPage] = useState(0);
const [keyword, setKeyword] = useState('');
+ const [pageSize, setPageSize] = useState
(() => {
+ if (typeof window === 'undefined') return DEFAULT_PAGE_SIZE;
+
+ const savedSize = localStorage.getItem(CATEGORY_PAGE_SIZE_STORAGE_KEY);
+ return isPageSizeOption(savedSize) ? savedSize : DEFAULT_PAGE_SIZE;
+ });
const [viewMode, setViewMode] = useState<'grid' | 'list'>(() => {
if (isNoticeCategory || typeof window === 'undefined') return isNoticeCategory ? 'list' : 'grid';
@@ -47,9 +66,15 @@ export default function CategoryPage({ params }: { params: Promise<{ id: string
setPage(0);
};
+ const handlePageSizeChange = (nextSize: PageSizeOption) => {
+ setPage(0);
+ setPageSize(nextSize);
+ localStorage.setItem(CATEGORY_PAGE_SIZE_STORAGE_KEY, nextSize);
+ };
+
const { data: postsData, isLoading, error, isPlaceholderData } = useQuery({
- queryKey: ['posts', 'category', apiCategoryName, page, keyword],
- queryFn: () => getPostsByCategory(apiCategoryName, page, PAGE_SIZE, keyword),
+ queryKey: ['posts', 'category', apiCategoryName, page, pageSize, keyword],
+ queryFn: () => getPostsByCategory(apiCategoryName, page, Number(pageSize), keyword),
placeholderData: (previousData) => previousData,
});
@@ -96,22 +121,30 @@ export default function CategoryPage({ params }: { params: Promise<{ id: string
글 목록
-
+
-
+
+
+
handleViewModeChange('grid')}
className={clsx(
'rounded-full p-2 transition-all duration-150',
activeViewMode === 'grid'
- ? 'bg-[var(--window-bg-strong)] text-[var(--color-accent)] shadow-sm'
- : 'text-[var(--color-text-subtle)] hover:bg-black/[0.04] hover:text-[var(--color-text)] dark:hover:bg-white/10',
+ ? 'bg-[var(--card-bg-strong)] text-[var(--color-accent)] shadow-sm'
+ : 'text-[var(--color-text-subtle)] hover:bg-[var(--card-bg)] hover:text-[var(--color-text)]',
)}
title="카드로 보기"
aria-label="카드로 보기"
@@ -125,8 +158,8 @@ export default function CategoryPage({ params }: { params: Promise<{ id: string
className={clsx(
'rounded-full p-2 transition-all duration-150',
activeViewMode === 'list'
- ? 'bg-[var(--window-bg-strong)] text-[var(--color-accent)] shadow-sm'
- : 'text-[var(--color-text-subtle)] hover:bg-black/[0.04] hover:text-[var(--color-text)] dark:hover:bg-white/10',
+ ? 'bg-[var(--card-bg-strong)] text-[var(--color-accent)] shadow-sm'
+ : 'text-[var(--color-text-subtle)] hover:bg-[var(--card-bg)] hover:text-[var(--color-text)]',
)}
title="리스트로 보기"
aria-label="리스트로 보기"
@@ -173,7 +206,7 @@ export default function CategoryPage({ params }: { params: Promise<{ id: string
type="button"
onClick={handlePrevPage}
disabled={page === 0}
- className="rounded-full p-2 text-[var(--color-text-muted)] transition-colors hover:bg-black/[0.04] hover:text-[var(--color-text)] disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-transparent dark:hover:bg-white/10"
+ className="rounded-full p-2 text-[var(--color-text-muted)] transition-colors hover:bg-[var(--card-bg)] hover:text-[var(--color-text)] disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-transparent"
aria-label="이전 페이지"
>
@@ -187,7 +220,7 @@ export default function CategoryPage({ params }: { params: Promise<{ id: string
type="button"
onClick={handleNextPage}
disabled={isLast || isPlaceholderData}
- className="rounded-full p-2 text-[var(--color-text-muted)] transition-colors hover:bg-black/[0.04] hover:text-[var(--color-text)] disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-transparent dark:hover:bg-white/10"
+ className="rounded-full p-2 text-[var(--color-text-muted)] transition-colors hover:bg-[var(--card-bg)] hover:text-[var(--color-text)] disabled:cursor-not-allowed disabled:opacity-30 disabled:hover:bg-transparent"
aria-label="다음 페이지"
>
diff --git a/src/app/globals.css b/src/app/globals.css
index 81d9af4..2143590 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -30,16 +30,25 @@
linear-gradient(155deg, rgba(218, 235, 255, 0.86) 6%, rgba(218, 235, 255, 0) 50%),
linear-gradient(42deg, rgba(222, 251, 236, 0.74) 48%, rgba(222, 251, 236, 0) 88%),
linear-gradient(180deg, #fbf8ff 0%, #eef5ff 100%);
- --window-bg: rgba(255, 255, 255, 0.58);
- --window-bg-strong: rgba(255, 255, 255, 0.78);
+ --window-bg: rgba(255, 255, 255, 0.6);
+ --window-bg-strong: rgba(255, 255, 255, 0.8);
--window-titlebar: rgba(255, 255, 255, 0.5);
- --window-border: rgba(255, 255, 255, 0.62);
- --menubar-bg: rgba(255, 255, 255, 0.48);
- --dock-bg: rgba(255, 255, 255, 0.5);
- --sidebar-bg: rgba(255, 255, 255, 0.46);
- --color-surface: rgba(255, 255, 255, 0.58);
- --color-surface-strong: rgba(255, 255, 255, 0.82);
- --color-control: rgba(255, 255, 255, 0.54);
+ --window-border: rgba(255, 255, 255, 0.68);
+ --window-titlebar-border: rgba(39, 54, 82, 0.1);
+ --card-bg: rgba(255, 255, 255, 0.46);
+ --card-bg-strong: rgba(255, 255, 255, 0.68);
+ --card-border: rgba(39, 54, 82, 0.11);
+ --card-border-hover: rgba(39, 54, 82, 0.18);
+ --control-border: rgba(39, 54, 82, 0.12);
+ --menubar-bg: rgba(255, 255, 255, 0.5);
+ --menubar-border: rgba(255, 255, 255, 0.7);
+ --dock-bg: rgba(255, 255, 255, 0.54);
+ --dock-border: rgba(255, 255, 255, 0.72);
+ --sidebar-bg: rgba(255, 255, 255, 0.48);
+ --sidebar-border: rgba(255, 255, 255, 0.6);
+ --color-surface: var(--card-bg);
+ --color-surface-strong: var(--card-bg-strong);
+ --color-control: rgba(255, 255, 255, 0.56);
--color-line: rgba(39, 54, 82, 0.13);
--color-text: #1d1d1f;
--color-text-muted: #62646d;
@@ -48,10 +57,13 @@
--color-accent-hover: #0071e3;
--color-accent-soft: rgba(0, 102, 204, 0.1);
--color-danger-soft: rgba(255, 59, 48, 0.1);
- --shadow-window: 0 26px 80px rgba(70, 92, 130, 0.16), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
- --shadow-panel: 0 22px 56px rgba(70, 92, 130, 0.13);
- --shadow-card: 0 10px 30px rgba(70, 92, 130, 0.08);
- --shadow-control: 0 12px 26px rgba(70, 92, 130, 0.1);
+ --shadow-window: 0 28px 80px rgba(70, 92, 130, 0.18), 0 10px 28px rgba(70, 92, 130, 0.08), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
+ --shadow-sidebar: 16px 0 42px rgba(70, 92, 130, 0.12), -1px 0 0 rgba(255, 255, 255, 0.46) inset;
+ --shadow-menubar: 0 16px 40px rgba(70, 92, 130, 0.12), 0 1px 0 rgba(255, 255, 255, 0.58) inset;
+ --shadow-panel: var(--shadow-sidebar);
+ --shadow-card: 0 14px 34px rgba(70, 92, 130, 0.09), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
+ --shadow-dock: 0 22px 58px rgba(70, 92, 130, 0.18), 0 8px 18px rgba(70, 92, 130, 0.1), 0 1px 0 rgba(255, 255, 255, 0.68) inset;
+ --shadow-control: 0 12px 26px rgba(70, 92, 130, 0.1), 0 1px 0 rgba(255, 255, 255, 0.46) inset;
--focus-ring: 0 0 0 4px rgba(0, 102, 204, 0.14);
--background: var(--color-page);
--foreground: var(--color-text);
@@ -72,17 +84,26 @@ html[data-theme="dark"] {
linear-gradient(150deg, rgba(43, 73, 110, 0.5) 10%, rgba(43, 73, 110, 0) 54%),
linear-gradient(42deg, rgba(38, 91, 72, 0.38) 48%, rgba(38, 91, 72, 0) 88%),
linear-gradient(180deg, #131620 0%, #07090f 100%);
- --window-bg: rgba(27, 29, 39, 0.64);
- --window-bg-strong: rgba(34, 36, 48, 0.82);
- --window-titlebar: rgba(255, 255, 255, 0.06);
- --window-border: rgba(255, 255, 255, 0.14);
- --menubar-bg: rgba(24, 26, 36, 0.58);
- --dock-bg: rgba(24, 26, 36, 0.62);
- --sidebar-bg: rgba(22, 24, 33, 0.56);
- --color-surface: rgba(27, 29, 39, 0.64);
- --color-surface-strong: rgba(34, 36, 48, 0.82);
- --color-control: rgba(255, 255, 255, 0.08);
- --color-line: rgba(255, 255, 255, 0.12);
+ --window-bg: rgba(28, 31, 42, 0.68);
+ --window-bg-strong: rgba(39, 42, 56, 0.84);
+ --window-titlebar: rgba(255, 255, 255, 0.075);
+ --window-border: rgba(255, 255, 255, 0.18);
+ --window-titlebar-border: rgba(255, 255, 255, 0.13);
+ --card-bg: rgba(43, 46, 60, 0.5);
+ --card-bg-strong: rgba(52, 55, 70, 0.66);
+ --card-border: rgba(255, 255, 255, 0.14);
+ --card-border-hover: rgba(255, 255, 255, 0.22);
+ --control-border: rgba(255, 255, 255, 0.13);
+ --menubar-bg: rgba(24, 27, 38, 0.62);
+ --menubar-border: rgba(255, 255, 255, 0.16);
+ --dock-bg: rgba(27, 30, 42, 0.66);
+ --dock-border: rgba(255, 255, 255, 0.18);
+ --sidebar-bg: rgba(21, 24, 34, 0.64);
+ --sidebar-border: rgba(255, 255, 255, 0.14);
+ --color-surface: var(--card-bg);
+ --color-surface-strong: var(--card-bg-strong);
+ --color-control: rgba(255, 255, 255, 0.085);
+ --color-line: rgba(255, 255, 255, 0.13);
--color-text: #f5f5f7;
--color-text-muted: #b2b5bf;
--color-text-subtle: #8f939f;
@@ -90,10 +111,13 @@ html[data-theme="dark"] {
--color-accent-hover: #46a6ff;
--color-accent-soft: rgba(41, 151, 255, 0.16);
--color-danger-soft: rgba(255, 69, 58, 0.16);
- --shadow-window: 0 30px 90px rgba(0, 0, 0, 0.44), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
- --shadow-panel: 0 24px 60px rgba(0, 0, 0, 0.36);
- --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.24);
- --shadow-control: 0 14px 30px rgba(0, 0, 0, 0.26);
+ --shadow-window: 0 32px 100px rgba(0, 0, 0, 0.54), 0 14px 36px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
+ --shadow-sidebar: 18px 0 46px rgba(0, 0, 0, 0.38), -1px 0 0 rgba(255, 255, 255, 0.08) inset;
+ --shadow-menubar: 0 18px 46px rgba(0, 0, 0, 0.32), 0 1px 0 rgba(255, 255, 255, 0.09) inset;
+ --shadow-panel: var(--shadow-sidebar);
+ --shadow-card: 0 16px 34px rgba(0, 0, 0, 0.32), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
+ --shadow-dock: 0 26px 68px rgba(0, 0, 0, 0.44), 0 10px 24px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.12) inset;
+ --shadow-control: 0 14px 30px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
--focus-ring: 0 0 0 4px rgba(41, 151, 255, 0.18);
--background: var(--color-page);
--foreground: var(--color-text);
@@ -221,7 +245,7 @@ samp,
.hover\:bg-gray-100:hover,
.hover\:bg-gray-200:hover,
.focus\:bg-white:focus {
- background-color: rgba(255, 255, 255, 0.58);
+ background-color: var(--card-bg-strong);
}
.hover\:bg-blue-50:hover {
@@ -264,16 +288,16 @@ input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
background-color: var(--color-control);
- border-color: var(--color-line);
+ border-color: var(--control-border);
color: var(--color-text);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) inset;
- backdrop-filter: blur(20px);
+ backdrop-filter: blur(18px);
}
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
- background-color: var(--window-bg-strong);
+ background-color: var(--card-bg-strong);
border-color: var(--color-accent);
}
@@ -330,7 +354,7 @@ html[data-theme="dark"] .hover\:bg-gray-50:hover,
html[data-theme="dark"] .hover\:bg-gray-100:hover,
html[data-theme="dark"] .hover\:bg-gray-200:hover,
html[data-theme="dark"] .focus\:bg-white:focus {
- background-color: rgba(255, 255, 255, 0.11);
+ background-color: var(--card-bg-strong);
}
html[data-theme="dark"] .hover\:bg-blue-50:hover {
@@ -351,44 +375,45 @@ html[data-theme="dark"] .disabled\:bg-gray-400:disabled {
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
- background-color: rgba(255, 255, 255, 0.08);
+ background-color: var(--color-control);
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
- background-color: rgba(255, 255, 255, 0.11);
+ background-color: var(--card-bg-strong);
}
.w-md-editor {
border-radius: 0.5rem !important;
- border-color: var(--color-line) !important;
- background-color: var(--window-bg-strong) !important;
+ border-color: var(--card-border) !important;
+ background-color: var(--card-bg-strong) !important;
box-shadow: var(--shadow-card);
- backdrop-filter: blur(24px);
+ backdrop-filter: blur(20px);
}
.w-md-editor-toolbar {
border-radius: 0.5rem 0.5rem 0 0 !important;
- border-color: var(--color-line) !important;
+ border-color: var(--window-titlebar-border) !important;
background-color: var(--window-titlebar) !important;
}
html[data-theme="dark"] .w-md-editor {
- background-color: var(--window-bg-strong) !important;
- border-color: var(--color-line) !important;
+ background-color: var(--card-bg-strong) !important;
+ border-color: var(--card-border) !important;
}
html[data-theme="dark"] .w-md-editor-toolbar {
background-color: var(--window-titlebar) !important;
- border-color: var(--color-line) !important;
+ border-color: var(--window-titlebar-border) !important;
}
.wy-editor-shell {
--color-canvas-default: transparent;
--color-canvas-subtle: transparent;
- --color-border-default: var(--color-line);
- --color-border-muted: var(--color-line);
+ --color-border-default: var(--card-border);
+ --color-border-muted: var(--card-border);
--color-fg-default: var(--color-text);
--color-fg-muted: var(--color-text-muted);
--color-accent-fg: var(--color-accent);
@@ -399,14 +424,15 @@ html[data-theme="dark"] .w-md-editor-toolbar {
min-height: 520px;
overflow: hidden;
border-radius: 0.5rem !important;
- border: 1px solid var(--color-line) !important;
- background-color: var(--window-bg-strong) !important;
+ border: 1px solid var(--card-border) !important;
+ background-color: var(--card-bg-strong) !important;
color: var(--color-text) !important;
box-shadow: var(--shadow-card) !important;
+ backdrop-filter: blur(20px);
}
.wy-editor-shell .w-md-editor-toolbar {
- border-color: var(--color-line) !important;
+ border-color: var(--window-titlebar-border) !important;
background-color: var(--window-titlebar) !important;
}
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 1ea272d..32963dd 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -170,7 +170,7 @@ function CompactPostRow({
return (
{rank !== undefined && (
@@ -217,13 +217,8 @@ function PostListPanel({
isPopular?: boolean;
}) {
return (
-
-
+
+
{icon}
{title}
@@ -250,7 +245,7 @@ function PostListPanel({
)}
-
+
);
}
diff --git a/src/components/admin/AdminPostEditor.tsx b/src/components/admin/AdminPostEditor.tsx
index e31c6e8..4842300 100644
--- a/src/components/admin/AdminPostEditor.tsx
+++ b/src/components/admin/AdminPostEditor.tsx
@@ -111,7 +111,7 @@ function CategoryOptions({
{categories.map((category) => (
취소
@@ -479,7 +479,7 @@ export default function AdminPostEditor({ editSlug }: AdminPostEditorProps) {
router.push('/admin/posts')}
- className="inline-flex h-8 items-center gap-2 rounded-full border border-[var(--color-line)] bg-[var(--color-control)] px-3 text-xs font-semibold text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--window-bg-strong)] hover:text-[var(--color-text)]"
+ className="inline-flex h-8 items-center gap-2 rounded-full border border-[var(--control-border)] bg-[var(--color-control)] px-3 text-xs font-semibold text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--card-bg-strong)] hover:text-[var(--color-text)]"
>
목록
@@ -502,7 +502,7 @@ export default function AdminPostEditor({ editSlug }: AdminPostEditorProps) {
임시저장
@@ -527,7 +527,7 @@ export default function AdminPostEditor({ editSlug }: AdminPostEditorProps) {
value={title}
onChange={(event) => setTitle(event.target.value)}
placeholder="제목을 입력하세요"
- className="mb-5 w-full rounded-lg border border-[var(--color-line)] bg-[var(--color-control)] px-4 py-3 text-2xl font-bold tracking-normal text-[var(--color-text)] outline-none transition placeholder:text-[var(--color-text-subtle)] focus:border-[var(--color-accent)] md:text-3xl"
+ className="mb-5 w-full rounded-lg border border-[var(--control-border)] bg-[var(--color-control)] px-4 py-3 text-2xl font-bold tracking-normal text-[var(--color-text)] outline-none transition placeholder:text-[var(--color-text-subtle)] focus:border-[var(--color-accent)] md:text-3xl"
/>
@@ -558,15 +558,15 @@ export default function AdminPostEditor({ editSlug }: AdminPostEditorProps) {
발행 상태
-
+
{contentLength.toLocaleString()}
글자
-
+
{wordCount.toLocaleString()}
단어
-
+
@@ -581,7 +581,7 @@ export default function AdminPostEditor({ editSlug }: AdminPostEditorProps) {
카테고리
-
+
{categories.length > 0 ? (
) : (
@@ -602,7 +602,7 @@ export default function AdminPostEditor({ editSlug }: AdminPostEditorProps) {
value={tags}
onChange={(event) => setTags(event.target.value)}
placeholder="react, nextjs, essay"
- className="w-full rounded-lg border border-[var(--color-line)] bg-[var(--color-control)] px-3 py-2 text-sm text-[var(--color-text)] outline-none transition placeholder:text-[var(--color-text-subtle)] focus:border-[var(--color-accent)]"
+ className="w-full rounded-lg border border-[var(--control-border)] bg-[var(--color-control)] px-3 py-2 text-sm text-[var(--color-text)] outline-none transition placeholder:text-[var(--color-text-subtle)] focus:border-[var(--color-accent)]"
/>
쉼표로 구분해서 입력하세요.
@@ -613,7 +613,7 @@ export default function AdminPostEditor({ editSlug }: AdminPostEditorProps) {
이미지
@@ -641,7 +641,7 @@ export default function AdminPostEditor({ editSlug }: AdminPostEditorProps) {
setShowDraftList((previous) => !previous)}
- className="rounded-full border border-[var(--color-line)] bg-[var(--color-control)] px-2.5 py-1 text-xs font-bold text-[var(--color-text-muted)] transition hover:bg-[var(--window-bg-strong)] hover:text-[var(--color-text)]"
+ className="rounded-full border border-[var(--control-border)] bg-[var(--color-control)] px-2.5 py-1 text-xs font-bold text-[var(--color-text-muted)] transition hover:bg-[var(--card-bg-strong)] hover:text-[var(--color-text)]"
>
{drafts.length}/10
@@ -656,7 +656,7 @@ export default function AdminPostEditor({ editSlug }: AdminPostEditorProps) {
) : (
{drafts.map((draft) => (
-
+
handleLoadDraft(draft)} className="min-w-0 flex-1 text-left">
{draft.title}
diff --git a/src/components/admin/AdminRouteShell.tsx b/src/components/admin/AdminRouteShell.tsx
index 3f6b044..04c5314 100644
--- a/src/components/admin/AdminRouteShell.tsx
+++ b/src/components/admin/AdminRouteShell.tsx
@@ -60,7 +60,7 @@ export default function AdminRouteShell({ children }: { children: React.ReactNod
{navItems.map((item) => {
@@ -74,8 +74,8 @@ export default function AdminRouteShell({ children }: { children: React.ReactNod
className={clsx(
'inline-flex h-9 shrink-0 items-center gap-2 rounded-lg px-4 text-sm font-semibold transition',
isActive
- ? 'bg-[var(--window-bg-strong)] text-[var(--color-text)] shadow-sm'
- : 'text-[var(--color-text-muted)] hover:bg-black/[0.04] hover:text-[var(--color-text)] dark:hover:bg-white/10',
+ ? 'bg-[var(--card-bg-strong)] text-[var(--color-text)] shadow-sm'
+ : 'text-[var(--color-text-muted)] hover:bg-[var(--card-bg-strong)] hover:text-[var(--color-text)]',
)}
>
diff --git a/src/components/admin/dashboard/AdminDashboardActionCenter.tsx b/src/components/admin/dashboard/AdminDashboardActionCenter.tsx
index 23e8e1c..2e06208 100644
--- a/src/components/admin/dashboard/AdminDashboardActionCenter.tsx
+++ b/src/components/admin/dashboard/AdminDashboardActionCenter.tsx
@@ -50,7 +50,7 @@ export default function AdminDashboardActionCenter({
diff --git a/src/components/admin/dashboard/AdminDashboardCategoryHealth.tsx b/src/components/admin/dashboard/AdminDashboardCategoryHealth.tsx
index 065dae3..a7cec91 100644
--- a/src/components/admin/dashboard/AdminDashboardCategoryHealth.tsx
+++ b/src/components/admin/dashboard/AdminDashboardCategoryHealth.tsx
@@ -34,9 +34,9 @@ export default function AdminDashboardCategoryHealth({
{categoryStats.length > 0 ? (
-
+
-
+
카테고리
글
최근 조회
@@ -47,7 +47,7 @@ export default function AdminDashboardCategoryHealth({
{category.name}
{category.postCount.toLocaleString()}
diff --git a/src/components/admin/dashboard/AdminDashboardPostPerformance.tsx b/src/components/admin/dashboard/AdminDashboardPostPerformance.tsx
index 866aa7e..f524c09 100644
--- a/src/components/admin/dashboard/AdminDashboardPostPerformance.tsx
+++ b/src/components/admin/dashboard/AdminDashboardPostPerformance.tsx
@@ -16,7 +16,7 @@ function PostStatRow({ post, isFallback }: { post: DashboardPostStat; isFallback
return (
diff --git a/src/components/comment/CommentItem.tsx b/src/components/comment/CommentItem.tsx
index 5f06912..00e6fe1 100644
--- a/src/components/comment/CommentItem.tsx
+++ b/src/components/comment/CommentItem.tsx
@@ -163,7 +163,7 @@ export default function CommentItem({ comment, postSlug, depth = 0 }: CommentIte
{ setIsDeleting(false); setGuestPassword(''); }}
- className="rounded-full p-1 text-[var(--color-text-subtle)] hover:bg-black/[0.06] dark:hover:bg-white/10"
+ className="rounded-full p-1 text-[var(--color-text-subtle)] hover:bg-[var(--card-bg)]"
>
diff --git a/src/components/layout/DesktopDock.tsx b/src/components/layout/DesktopDock.tsx
index 8bbb343..0c0c4a6 100644
--- a/src/components/layout/DesktopDock.tsx
+++ b/src/components/layout/DesktopDock.tsx
@@ -109,14 +109,14 @@ export default function DesktopDock({ isSidebarCollapsed }: DesktopDockProps) {
const Icon = item.icon;
const active = item.isActive?.(pathname) ?? false;
const itemClass = clsx(
- 'group relative flex h-10 w-10 items-center justify-center rounded-lg border border-white/20 bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition duration-150 hover:-translate-y-1 hover:bg-[var(--window-bg-strong)] hover:text-[var(--color-text)] focus-visible:-translate-y-1 sm:h-12 sm:w-12',
- active && 'bg-[var(--window-bg-strong)] text-[var(--color-accent)] ring-1 ring-[var(--color-accent-soft)]',
+ 'group relative flex h-10 w-10 items-center justify-center rounded-lg border border-[var(--control-border)] bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition duration-150 hover:-translate-y-1 hover:bg-[var(--card-bg-strong)] hover:text-[var(--color-text)] focus-visible:-translate-y-1 sm:h-12 sm:w-12',
+ active && 'bg-[var(--card-bg-strong)] text-[var(--color-accent)] ring-1 ring-[var(--color-accent-soft)]',
);
const content = (
<>
-
+
{item.label}
{active && (
@@ -162,7 +162,7 @@ export default function DesktopDock({ isSidebarCollapsed }: DesktopDockProps) {
isSidebarCollapsed ? 'md:left-[calc(50%+2.5rem)]' : 'md:left-[calc(50%+9rem)]',
)}
>
-
+
{items.map(renderItem)}
diff --git a/src/components/layout/DesktopMenuBar.tsx b/src/components/layout/DesktopMenuBar.tsx
index 6ea69d8..90f9faa 100644
--- a/src/components/layout/DesktopMenuBar.tsx
+++ b/src/components/layout/DesktopMenuBar.tsx
@@ -58,7 +58,7 @@ export default function DesktopMenuBar({ isSidebarCollapsed }: DesktopMenuBarPro
isSidebarCollapsed ? 'md:left-24' : 'md:left-[19rem]',
)}
>
-
+
WYPark
diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx
index bb453df..14ee966 100644
--- a/src/components/layout/Sidebar.tsx
+++ b/src/components/layout/Sidebar.tsx
@@ -74,7 +74,7 @@ function CategoryItem({ category, depth, onNavigate, pathname }: CategoryItemPro
'flex items-center justify-between rounded-lg px-3 py-2 text-sm transition-all',
isActive
? 'bg-[var(--color-accent-soft)] font-semibold text-[var(--color-accent)] shadow-sm'
- : 'text-[var(--color-text-muted)] hover:bg-black/[0.04] hover:text-[var(--color-text)] dark:hover:bg-white/10',
+ : 'text-[var(--color-text-muted)] hover:bg-[var(--card-bg)] hover:text-[var(--color-text)]',
)}
style={{ marginLeft: `${depth * 8}px` }}
>
@@ -95,7 +95,7 @@ function CategoryItem({ category, depth, onNavigate, pathname }: CategoryItemPro
event.stopPropagation();
setIsExpanded((previous) => !previous);
}}
- className="ml-1 rounded-full p-1 transition-colors hover:bg-black/[0.06] dark:hover:bg-white/10"
+ className="ml-1 rounded-full p-1 transition-colors hover:bg-[var(--card-bg)]"
aria-label={isChildrenVisible ? `${category.name} 접기` : `${category.name} 펼치기`}
>
setIsOpen((previous) => !previous)}
- className="fixed left-4 top-4 z-50 rounded-full border border-[var(--color-line)] bg-[var(--color-control)] p-2 shadow-[var(--shadow-control)] backdrop-blur-xl transition-colors hover:bg-[var(--color-surface-strong)] md:hidden"
+ className="fixed left-4 top-4 z-50 rounded-full border border-[var(--control-border)] bg-[var(--color-control)] p-2 shadow-[var(--shadow-control)] backdrop-blur-[18px] transition-colors hover:bg-[var(--card-bg-strong)] md:hidden"
aria-label={isOpen ? '사이드바 닫기' : '사이드바 열기'}
>
{isOpen ? : }
@@ -189,7 +189,7 @@ function SidebarContent({
onDesktopCollapsedChange(!isDesktopCollapsed)}
- className="absolute right-3 top-3 hidden h-8 w-8 items-center justify-center rounded-full border border-[var(--color-line)] bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--window-bg-strong)] hover:text-[var(--color-text)] md:flex"
+ className="absolute right-3 top-3 hidden h-8 w-8 items-center justify-center rounded-full border border-[var(--control-border)] bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--card-bg-strong)] hover:text-[var(--color-text)] md:flex"
aria-label={isDesktopCollapsed ? '사이드바 펼치기' : '사이드바 접기'}
>
{isDesktopCollapsed ? : }
@@ -288,7 +288,7 @@ function SidebarContent({
'flex items-center gap-2.5 rounded-lg px-3 py-2 text-sm transition-all',
pathname === '/category/uncategorized'
? 'bg-[var(--color-accent-soft)] font-semibold text-[var(--color-accent)]'
- : 'text-[var(--color-text-muted)] hover:bg-black/[0.04] hover:text-[var(--color-text)] dark:hover:bg-white/10',
+ : 'text-[var(--color-text-muted)] hover:bg-[var(--card-bg)] hover:text-[var(--color-text)]',
)}
>
@@ -310,7 +310,7 @@ function SidebarContent({
'flex items-center gap-2.5 rounded-lg px-3 py-2 text-sm transition-all',
pathname === '/play/chess'
? 'bg-[var(--color-accent-soft)] font-semibold text-[var(--color-accent)]'
- : 'text-[var(--color-text-muted)] hover:bg-black/[0.04] hover:text-[var(--color-text)] dark:hover:bg-white/10',
+ : 'text-[var(--color-text-muted)] hover:bg-[var(--card-bg)] hover:text-[var(--color-text)]',
)}
>
@@ -325,8 +325,8 @@ function SidebarContent({
title="홈"
aria-label="홈"
className={clsx(
- 'flex h-11 w-11 items-center justify-center rounded-xl border border-[var(--color-line)] bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--window-bg-strong)] hover:text-[var(--color-text)]',
- pathname === '/' && 'bg-[var(--window-bg-strong)] text-[var(--color-accent)]',
+ 'flex h-11 w-11 items-center justify-center rounded-xl border border-[var(--control-border)] bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--card-bg-strong)] hover:text-[var(--color-text)]',
+ pathname === '/' && 'bg-[var(--card-bg-strong)] text-[var(--color-accent)]',
)}
>
@@ -344,8 +344,8 @@ function SidebarContent({
title={category.name}
aria-label={category.name}
className={clsx(
- 'flex h-11 w-11 items-center justify-center rounded-xl border border-[var(--color-line)] bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--window-bg-strong)] hover:text-[var(--color-text)]',
- isActive && 'bg-[var(--window-bg-strong)] text-[var(--color-accent)]',
+ 'flex h-11 w-11 items-center justify-center rounded-xl border border-[var(--control-border)] bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--card-bg-strong)] hover:text-[var(--color-text)]',
+ isActive && 'bg-[var(--card-bg-strong)] text-[var(--color-accent)]',
)}
>
@@ -358,8 +358,8 @@ function SidebarContent({
title="미분류"
aria-label="미분류"
className={clsx(
- 'flex h-11 w-11 items-center justify-center rounded-xl border border-[var(--color-line)] bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--window-bg-strong)] hover:text-[var(--color-text)]',
- pathname === '/category/uncategorized' && 'bg-[var(--window-bg-strong)] text-[var(--color-accent)]',
+ 'flex h-11 w-11 items-center justify-center rounded-xl border border-[var(--control-border)] bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--card-bg-strong)] hover:text-[var(--color-text)]',
+ pathname === '/category/uncategorized' && 'bg-[var(--card-bg-strong)] text-[var(--color-accent)]',
)}
>
@@ -372,8 +372,8 @@ function SidebarContent({
title="체스"
aria-label="체스"
className={clsx(
- 'flex h-11 w-11 items-center justify-center rounded-xl border border-[var(--color-line)] bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--window-bg-strong)] hover:text-[var(--color-text)]',
- pathname === '/play/chess' && 'bg-[var(--window-bg-strong)] text-[var(--color-accent)]',
+ 'flex h-11 w-11 items-center justify-center rounded-xl border border-[var(--control-border)] bg-[var(--color-control)] text-[var(--color-text-muted)] shadow-[var(--shadow-control)] transition hover:bg-[var(--card-bg-strong)] hover:text-[var(--color-text)]',
+ pathname === '/play/chess' && 'bg-[var(--card-bg-strong)] text-[var(--color-accent)]',
)}
>
@@ -402,7 +402,7 @@ export default function Sidebar(props: SidebarProps) {
fallback={(
diff --git a/src/components/layout/TopHeader.tsx b/src/components/layout/TopHeader.tsx
index ba9842f..e11a42d 100644
--- a/src/components/layout/TopHeader.tsx
+++ b/src/components/layout/TopHeader.tsx
@@ -49,7 +49,7 @@ export default function TopHeader() {
};
const quietActionClass =
- 'flex h-9 shrink-0 items-center gap-2 rounded-full border border-[var(--color-line)] bg-[var(--color-control)] px-3 text-sm font-semibold text-[var(--color-text-muted)] shadow-[var(--shadow-control)] backdrop-blur-2xl transition-colors hover:bg-[var(--color-surface-strong)] hover:text-[var(--color-text)]';
+ 'flex h-9 shrink-0 items-center gap-2 rounded-full border border-[var(--control-border)] bg-[var(--color-control)] px-3 text-sm font-semibold text-[var(--color-text-muted)] shadow-[var(--shadow-control)] backdrop-blur-[18px] transition-colors hover:bg-[var(--card-bg-strong)] hover:text-[var(--color-text)]';
return (
-
+
{_hasHydrated && (
@@ -96,7 +96,7 @@ export default function TopHeader() {
로그아웃
@@ -116,7 +116,7 @@ export default function TopHeader() {
회원가입
@@ -132,7 +132,7 @@ export default function TopHeader() {
aria-label={isMenuOpen ? '상단 메뉴 닫기' : '상단 메뉴 열기'}
aria-expanded={isMenuOpen}
onClick={() => setIsMenuOpen((previous) => !previous)}
- className="flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-[var(--color-line)] bg-[var(--color-control)] text-[var(--color-text)] shadow-[var(--shadow-control)] backdrop-blur-2xl transition-colors hover:bg-[var(--color-surface-strong)]"
+ className="flex h-9 w-9 shrink-0 items-center justify-center rounded-full border border-[var(--control-border)] bg-[var(--color-control)] text-[var(--color-text)] shadow-[var(--shadow-control)] backdrop-blur-[18px] transition-colors hover:bg-[var(--card-bg-strong)]"
>
{isMenuOpen ? : }
diff --git a/src/components/post/PostDetailClient.tsx b/src/components/post/PostDetailClient.tsx
index 08135c7..274e880 100644
--- a/src/components/post/PostDetailClient.tsx
+++ b/src/components/post/PostDetailClient.tsx
@@ -78,7 +78,7 @@ export default function PostDetailClient({ slug, initialPost }: PostDetailClient
router.push('/')}
- className="rounded-lg border border-[var(--color-line)] bg-[var(--color-control)] px-5 py-2.5 font-semibold text-[var(--color-text-muted)] transition-colors hover:bg-[var(--window-bg-strong)]"
+ className="rounded-lg border border-[var(--control-border)] bg-[var(--color-control)] px-5 py-2.5 font-semibold text-[var(--color-text-muted)] transition-colors hover:bg-[var(--card-bg-strong)]"
>
메인으로
@@ -144,7 +144,7 @@ export default function PostDetailClient({ slug, initialPost }: PostDetailClient
{prevPost ? (
-
+
이전 글
@@ -163,7 +163,7 @@ export default function PostDetailClient({ slug, initialPost }: PostDetailClient
)}
{nextPost ? (
-
+
다음 글
diff --git a/src/components/post/PostListItem.tsx b/src/components/post/PostListItem.tsx
index 1a70824..7a49a43 100644
--- a/src/components/post/PostListItem.tsx
+++ b/src/components/post/PostListItem.tsx
@@ -33,7 +33,7 @@ export default function PostListItem({ post, showViews = false }: PostListItemPr
diff --git a/src/components/post/PostSearch.tsx b/src/components/post/PostSearch.tsx
index 82c1d7c..860362a 100644
--- a/src/components/post/PostSearch.tsx
+++ b/src/components/post/PostSearch.tsx
@@ -48,7 +48,7 @@ export default function PostSearch({
onChange={(e) => setKeyword(e.target.value)}
onKeyDown={handleKeyDown}
placeholder={placeholder}
- className="w-full rounded-full border border-[var(--color-line)] bg-[var(--color-control)] py-2.5 pl-10 pr-10 text-sm text-[var(--color-text)] shadow-[var(--shadow-control)] outline-none transition-all placeholder:text-[var(--color-text-subtle)] focus:border-[var(--color-accent)] focus:bg-[var(--color-surface-strong)]"
+ className="w-full rounded-full border border-[var(--control-border)] bg-[var(--color-control)] py-2.5 pl-10 pr-10 text-sm text-[var(--color-text)] shadow-[var(--shadow-control)] outline-none transition-all placeholder:text-[var(--color-text-subtle)] focus:border-[var(--color-accent)] focus:bg-[var(--card-bg-strong)]"
/>
diff --git a/src/components/theme/ThemeToggle.tsx b/src/components/theme/ThemeToggle.tsx
index 337c954..abb190b 100644
--- a/src/components/theme/ThemeToggle.tsx
+++ b/src/components/theme/ThemeToggle.tsx
@@ -20,7 +20,7 @@ export default function ThemeToggle() {
return (
@@ -39,8 +39,8 @@ export default function ThemeToggle() {
className={clsx(
'inline-flex h-7 w-7 items-center justify-center rounded-full text-xs font-semibold transition duration-150 sm:w-8',
isSelected
- ? 'bg-[var(--window-bg-strong)] text-[var(--color-text)] shadow-sm'
- : 'text-[var(--color-text-subtle)] hover:bg-black/[0.04] hover:text-[var(--color-text)] dark:hover:bg-white/10',
+ ? 'bg-[var(--card-bg-strong)] text-[var(--color-text)] shadow-sm'
+ : 'text-[var(--color-text-subtle)] hover:bg-[var(--card-bg)] hover:text-[var(--color-text)]',
)}
>
diff --git a/src/components/ui/EmptyState.tsx b/src/components/ui/EmptyState.tsx
index 84fd24f..1eff200 100644
--- a/src/components/ui/EmptyState.tsx
+++ b/src/components/ui/EmptyState.tsx
@@ -17,7 +17,7 @@ export default function EmptyState({
return (
diff --git a/src/components/ui/SegmentedControl.tsx b/src/components/ui/SegmentedControl.tsx
index ac0c5e2..ef161ac 100644
--- a/src/components/ui/SegmentedControl.tsx
+++ b/src/components/ui/SegmentedControl.tsx
@@ -7,7 +7,7 @@ export interface SegmentedControlOption
{
interface SegmentedControlProps {
ariaLabel: string;
- options: SegmentedControlOption[];
+ options: readonly SegmentedControlOption[];
value: T;
onChange: (value: T) => void;
className?: string;
@@ -23,7 +23,7 @@ export default function SegmentedControl({
return (
({
className={clsx(
'min-w-14 rounded-full px-3 text-sm font-semibold transition duration-150',
isSelected
- ? 'bg-[var(--color-surface-strong)] text-[var(--color-text)] shadow-sm'
- : 'text-[var(--color-text-muted)] hover:bg-black/[0.04] hover:text-[var(--color-text)] dark:hover:bg-white/10',
+ ? 'bg-[var(--card-bg-strong)] text-[var(--color-text)] shadow-sm'
+ : 'text-[var(--color-text-muted)] hover:bg-[var(--card-bg)] hover:text-[var(--color-text)]',
)}
>
{option.label}
diff --git a/src/components/ui/Surface.tsx b/src/components/ui/Surface.tsx
index a80d530..e9b71ff 100644
--- a/src/components/ui/Surface.tsx
+++ b/src/components/ui/Surface.tsx
@@ -19,11 +19,11 @@ export default function Surface({
return (
{hasTitlebar && (
-