From bbc32ca5bdf6dff113ec8786cab2d57ba5949d5c Mon Sep 17 00:00:00 2001 From: Dale Seo <5466341+DaleSeo@users.noreply.github.com> Date: Sun, 8 Nov 2026 19:42:55 -0500 Subject: [PATCH 1/2] feat: refine landing and edition page layout --- src/components/DevTypeGrid.tsx | 10 +- src/components/EditionList.tsx | 77 +++++--- src/lib/brand.ts | 63 ++++-- src/routes/$edition.index.tsx | 343 ++++++++++++++++++++------------ src/routes/index.tsx | 348 ++++++++++++++++++++++----------- 5 files changed, 547 insertions(+), 294 deletions(-) diff --git a/src/components/DevTypeGrid.tsx b/src/components/DevTypeGrid.tsx index e238995..4af3dc3 100644 --- a/src/components/DevTypeGrid.tsx +++ b/src/components/DevTypeGrid.tsx @@ -14,14 +14,16 @@ export function DevTypeGrid({ current, currentLabel }: { current?: string; curre key={t.slug} style={{ overflow: 'hidden', - borderRadius: 'var(--radii-md)', + borderRadius: 'var(--radii-lg)', background: 'var(--colors-app-bg)', - border: mine ? '2px solid var(--colors-border-brand)' : '1px solid var(--colors-bg-neutral-hover)', + border: mine ? '2px solid var(--colors-border-brand-active)' : '1px solid var(--colors-bg-brand-active)', }} > -
- {t.name} +
+ + {t.name} + {mine && currentLabel && {currentLabel}}
diff --git a/src/components/EditionList.tsx b/src/components/EditionList.tsx index fda1b94..e3df579 100644 --- a/src/components/EditionList.tsx +++ b/src/components/EditionList.tsx @@ -1,57 +1,78 @@ import { Link } from '@tanstack/react-router' -import { Heading, Tag, Text } from 'daleui' -import { EDITIONS, isBeta, isClosed } from '@/editions' +import { Tag, Text } from 'daleui' +import { EDITIONS, isClosed } from '@/editions' import { koDate as day } from '@/lib/date' import { RESULTS } from '@/results' -// 모든 회차를 최근 것부터. 회차마다 지금 할 수 있는 일(참여, 결과 보기)로 바로 간다. +const action: React.CSSProperties = { + display: 'inline-flex', + alignItems: 'center', + minHeight: 44, + padding: '0 var(--spacing-16)', + borderRadius: 'var(--radii-md)', + border: '1px solid var(--colors-border-neutral-active)', + color: 'var(--colors-fg-neutral)', + fontWeight: 600, + textDecoration: 'none', +} +const primary: React.CSSProperties = { ...action, border: 0, background: 'var(--colors-bg-solid-brand)', color: 'var(--colors-fg-solid-brand)' } + +// 모든 회차를 최근 것부터. 회차마다 지금 할 수 있는 일(참여, 결과 보기)로 간다. 설문은 회차 페이지에서 연다. export function EditionList() { return ( -