디자인: 게임천국 느낌 아이콘, 홈 단순화(큰 버튼 3개 + 탭), 헤더 로그인/계정 메뉴, 로그인 페이지 분리
- 아이콘: 게임패드 + 천사 고리 + 반짝이, scripts/pwa-icons.ts가 favicon.svg와 PNG를 한 디자인에서 생성 - 홈: 방 만들기·코드로 참여(/j)·컴퓨터와 연습 버튼, [게임 고르기 | 지금 열린 방] 탭 - 헤더: 로그인 전 [로그인] → /login, 로그인 뒤 닉네임 → [설정][로그아웃] 메뉴 - /login: 로그인만, /me(설정)는 로그인 안 했으면 /login?next=/me로 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -626,6 +626,60 @@ label.field {
|
||||
.header-user:hover {
|
||||
background: var(--surface-2);
|
||||
}
|
||||
button.header-user {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
.header-login {
|
||||
padding: 0 18px;
|
||||
min-height: 42px;
|
||||
border: 2px solid var(--primary);
|
||||
color: var(--primary);
|
||||
}
|
||||
.header-login:hover {
|
||||
background: var(--primary-soft);
|
||||
}
|
||||
.header-user-name {
|
||||
max-width: 160px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.account-menu {
|
||||
position: relative;
|
||||
}
|
||||
.account-menu-list {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: calc(100% + 6px);
|
||||
min-width: 168px;
|
||||
padding: 6px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
|
||||
z-index: 40;
|
||||
}
|
||||
.account-menu-list button {
|
||||
min-height: var(--tap);
|
||||
padding: 0 14px;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-weight: 700;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
}
|
||||
.account-menu-list button:hover,
|
||||
.account-menu-list button:focus-visible {
|
||||
background: var(--surface-2);
|
||||
}
|
||||
@media (max-width: 1099px) {
|
||||
.site-nav {
|
||||
display: none;
|
||||
@@ -648,6 +702,9 @@ label.field {
|
||||
.site-logo {
|
||||
flex: 1;
|
||||
}
|
||||
.header-user-name {
|
||||
max-width: 96px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Room bar under the site header */
|
||||
@@ -1034,3 +1091,97 @@ label.field {
|
||||
border-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
/* Home: 큰 버튼 3개 + 탭 (docs/07 §3.3) */
|
||||
.home-actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
.home-action {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 4px;
|
||||
min-height: 132px;
|
||||
padding: 20px 22px;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
box-shadow: var(--shadow);
|
||||
transition: transform 0.12s ease, box-shadow 0.12s ease;
|
||||
}
|
||||
.home-action:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: default;
|
||||
}
|
||||
.home-action.primary {
|
||||
background: var(--primary);
|
||||
border-color: var(--primary);
|
||||
color: var(--primary-text);
|
||||
}
|
||||
.home-action-icon {
|
||||
font-size: 2.2rem;
|
||||
line-height: 1;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
.home-action-title {
|
||||
font-size: 1.3rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
.home-action-sub {
|
||||
font-size: 0.95rem;
|
||||
color: var(--text-sub);
|
||||
}
|
||||
.home-action.primary .home-action-sub {
|
||||
color: inherit;
|
||||
}
|
||||
@media (hover: hover) {
|
||||
.home-action:hover:not(:disabled) {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
}
|
||||
@media (max-width: 719px) {
|
||||
.home-actions {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
.home-action.primary {
|
||||
grid-column: 1 / -1;
|
||||
min-height: 96px;
|
||||
}
|
||||
.home-action {
|
||||
min-height: 108px;
|
||||
padding: 16px;
|
||||
}
|
||||
}
|
||||
.home-tabs {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
border-bottom: 2px solid var(--border);
|
||||
}
|
||||
.home-tabs button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: var(--tap);
|
||||
padding: 0 18px;
|
||||
margin-bottom: -2px;
|
||||
border: 0;
|
||||
border-bottom: 3px solid transparent;
|
||||
background: transparent;
|
||||
color: var(--text-sub);
|
||||
font: inherit;
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
.home-tabs button[aria-selected='true'] {
|
||||
color: var(--primary);
|
||||
border-bottom-color: var(--primary);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user