AI DEV portal 초기 커밋
Express+EJS+Postgres 사내 개발 포털. - Keycloak OIDC(사번 로그인), GitHub 감성 UI - 사이트 모음 + 프로젝트 공유/코멘트/스타 - DB: OpenEverest appdb portal schema (portal_app role) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
135
public/style.css
Normal file
135
public/style.css
Normal file
@@ -0,0 +1,135 @@
|
||||
/* GitHub 감성 (Primer 팔레트 근사). 라이트 테마. */
|
||||
:root {
|
||||
--canvas: #ffffff;
|
||||
--canvas-subtle: #f6f8fa;
|
||||
--border: #d0d7de;
|
||||
--border-muted: #d8dee4;
|
||||
--fg: #1f2328;
|
||||
--fg-muted: #656d76;
|
||||
--accent: #0969da;
|
||||
--accent-emphasis: #0969da;
|
||||
--success: #1a7f37;
|
||||
--btn-primary: #1f883d;
|
||||
--btn-primary-hover: #1a7f37;
|
||||
--header-bg: #24292f;
|
||||
--star: #9a6700;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Helvetica, Arial, sans-serif;
|
||||
color: var(--fg);
|
||||
background: var(--canvas-subtle);
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
a { color: var(--accent); text-decoration: none; }
|
||||
a:hover { text-decoration: underline; }
|
||||
|
||||
/* 헤더 */
|
||||
.header {
|
||||
background: var(--header-bg);
|
||||
color: #fff;
|
||||
padding: 0 16px;
|
||||
height: 56px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
}
|
||||
.header .brand { font-weight: 600; font-size: 16px; color: #fff; display: flex; align-items: center; gap: 8px; }
|
||||
.header .brand:hover { text-decoration: none; }
|
||||
.header .spacer { flex: 1; }
|
||||
.header .who { color: #d1d9e0; font-size: 13px; }
|
||||
.header a.navlink { color: #fff; font-size: 14px; }
|
||||
|
||||
/* 컨테이너 */
|
||||
.container { max-width: 1012px; margin: 24px auto; padding: 0 16px; }
|
||||
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
|
||||
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; } }
|
||||
|
||||
/* 카드 */
|
||||
.box {
|
||||
background: var(--canvas);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
}
|
||||
.box-header {
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-weight: 600;
|
||||
background: var(--canvas-subtle);
|
||||
border-radius: 6px 6px 0 0;
|
||||
}
|
||||
.box-body { padding: 16px; }
|
||||
.box-row {
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid var(--border-muted);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
.box-row:last-child { border-bottom: 0; }
|
||||
|
||||
/* 사이트 그리드 */
|
||||
.site-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
|
||||
@media (max-width: 540px) { .site-grid { grid-template-columns: 1fr; } }
|
||||
.site-card {
|
||||
display: flex; gap: 12px; align-items: flex-start;
|
||||
border: 1px solid var(--border); border-radius: 6px;
|
||||
padding: 12px; background: var(--canvas);
|
||||
}
|
||||
.site-card:hover { border-color: var(--accent); text-decoration: none; }
|
||||
.site-card .ico { font-size: 22px; line-height: 1; }
|
||||
.site-card .name { font-weight: 600; color: var(--fg); }
|
||||
.site-card .desc { color: var(--fg-muted); font-size: 12px; }
|
||||
.group-title { font-size: 13px; font-weight: 600; color: var(--fg-muted); margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
|
||||
|
||||
/* 버튼 */
|
||||
.btn {
|
||||
display: inline-block; padding: 5px 16px; font-size: 14px; font-weight: 500;
|
||||
border: 1px solid var(--border); border-radius: 6px; background: var(--canvas-subtle);
|
||||
color: var(--fg); cursor: pointer;
|
||||
}
|
||||
.btn:hover { background: #f3f4f6; text-decoration: none; }
|
||||
.btn-primary { background: var(--btn-primary); border-color: rgba(31,35,40,.15); color: #fff; }
|
||||
.btn-primary:hover { background: var(--btn-primary-hover); color: #fff; }
|
||||
.btn-sm { padding: 3px 12px; font-size: 12px; }
|
||||
|
||||
/* 폼 */
|
||||
input[type=text], textarea, input[type=url] {
|
||||
width: 100%; padding: 6px 12px; border: 1px solid var(--border);
|
||||
border-radius: 6px; font-size: 14px; font-family: inherit;
|
||||
}
|
||||
textarea { min-height: 80px; resize: vertical; }
|
||||
label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 13px; }
|
||||
|
||||
/* 프로젝트 리스트 */
|
||||
.proj-item { padding: 16px; border-bottom: 1px solid var(--border-muted); }
|
||||
.proj-item:last-child { border-bottom: 0; }
|
||||
.proj-title { font-size: 16px; font-weight: 600; }
|
||||
.proj-meta { color: var(--fg-muted); font-size: 12px; margin-top: 4px; }
|
||||
.tag {
|
||||
display: inline-block; background: #ddf4ff; color: var(--accent);
|
||||
border-radius: 2em; padding: 0 8px; font-size: 12px; margin-right: 4px;
|
||||
}
|
||||
.counter { color: var(--fg-muted); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
|
||||
|
||||
/* 아바타 */
|
||||
.avatar {
|
||||
width: 28px; height: 28px; border-radius: 50%;
|
||||
background: var(--accent); color: #fff; display: inline-flex;
|
||||
align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
|
||||
}
|
||||
|
||||
/* 코멘트 */
|
||||
.comment { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; }
|
||||
.comment-head { background: var(--canvas-subtle); padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
|
||||
.comment-body { padding: 12px; white-space: pre-wrap; }
|
||||
|
||||
/* 로그인 */
|
||||
.login-wrap { max-width: 340px; margin: 80px auto; text-align: center; }
|
||||
.login-card { padding: 32px 24px; }
|
||||
.login-logo { font-size: 40px; }
|
||||
.login-title { font-size: 24px; font-weight: 300; margin: 12px 0 24px; }
|
||||
.alert { background: #ffebe9; border: 1px solid #ff818266; color: #cf222e; padding: 8px 12px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
|
||||
.muted { color: var(--fg-muted); font-size: 12px; }
|
||||
Reference in New Issue
Block a user