design: 기업용 UI 리디자인 및 로컬 실행 스크립트 추가
- 로그인/접근거부 페이지: 좌우 분할 레이아웃(다크 네이비 브랜드 패널 + 흰색 폼), 실제 Google G 컬러 버튼, 자물쇠·안내 아이콘 적용 - 메인 페이지: 다크 네이비 헤더, 웰컴 히어로 배너(오늘 날짜 JS 자동 표시), SVG 아이콘이 있는 업무 카드 그리드, 호버 시 상단 블루 액센트 라인 - styles.css: 코퍼레이트 네이비/블루 색상 토큰 체계로 전면 재작성, Pretendard 폰트 유지, 모바일 반응형 포함 - run-local.bat / run-local.ps1: 더블클릭 또는 인수(stop/logs/ps/restart)로 로컬 Docker 컨테이너를 간편하게 관리하는 스크립트 추가 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
+538
-135
@@ -1,3 +1,4 @@
|
||||
/* ── Pretendard 폰트 ─────────────────────────────── */
|
||||
@font-face {
|
||||
font-family: "Pretendard";
|
||||
src: url("/static/fonts/Pretendard-Thin.ttf") format("truetype");
|
||||
@@ -5,7 +6,6 @@
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Pretendard";
|
||||
src: url("/static/fonts/Pretendard-Regular.ttf") format("truetype");
|
||||
@@ -13,7 +13,6 @@
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Pretendard";
|
||||
src: url("/static/fonts/Pretendard-Bold.ttf") format("truetype");
|
||||
@@ -22,201 +21,605 @@
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* ── 디자인 토큰 ─────────────────────────────────── */
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #f5f7f9;
|
||||
--navy: #0d1b2a;
|
||||
--navy-mid: #1b2e45;
|
||||
--navy-light: #253d56;
|
||||
--blue: #1e56a0;
|
||||
--blue-hover: #17437d;
|
||||
--blue-tint: #e8f1fb;
|
||||
--bg: #f0f4f8;
|
||||
--surface: #ffffff;
|
||||
--text: #17202a;
|
||||
--muted: #5d6975;
|
||||
--line: #d9e0e7;
|
||||
--accent: #146c5f;
|
||||
--accent-strong: #0e554b;
|
||||
--shadow: 0 18px 50px rgba(22, 31, 42, 0.12);
|
||||
--border: #dce4ed;
|
||||
--text: #1a2433;
|
||||
--muted: #627590;
|
||||
--success: #127a46;
|
||||
--danger: #b91c1c;
|
||||
--header-h: 64px;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
/* ── 리셋 & 기본 ─────────────────────────────────── */
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
background: var(--bg);
|
||||
font-family: "Pretendard", "Segoe UI", "Apple SD Gothic Neo", system-ui, sans-serif;
|
||||
font-size: 15px;
|
||||
color: var(--text);
|
||||
font-family:
|
||||
"Pretendard",
|
||||
"Segoe UI",
|
||||
"Apple SD Gothic Neo",
|
||||
system-ui,
|
||||
sans-serif;
|
||||
background: var(--bg);
|
||||
min-height: 100vh;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
a { color: inherit; text-decoration: none; }
|
||||
|
||||
.auth-page {
|
||||
/* ════════════════════════════════════════════════════
|
||||
로그인 / 접근 거부 페이지
|
||||
════════════════════════════════════════════════════ */
|
||||
|
||||
/* 전체 레이아웃: 좌측 브랜드 패널 + 우측 폼 */
|
||||
.auth-layout {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 28px;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.auth-shell {
|
||||
width: min(100%, 460px);
|
||||
/* ── 좌측 브랜드 패널 ── */
|
||||
.brand-panel {
|
||||
background: var(--navy);
|
||||
background-image:
|
||||
radial-gradient(circle at 20% 80%, rgba(30,86,160,.35) 0%, transparent 55%),
|
||||
radial-gradient(circle at 80% 20%, rgba(13,27,42,.8) 0%, transparent 50%);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
padding: 48px 52px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.auth-panel {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--line);
|
||||
/* 점 격자 장식 */
|
||||
.brand-panel::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
|
||||
background-size: 28px 28px;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.brand-logo {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.brand-logo-mark {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
background: var(--blue);
|
||||
border-radius: 8px;
|
||||
box-shadow: var(--shadow);
|
||||
padding: 36px;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 8px;
|
||||
color: var(--accent);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
font-size: clamp(30px, 4vw, 44px);
|
||||
line-height: 1.1;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
|
||||
.lead {
|
||||
margin: 18px 0 28px;
|
||||
color: var(--muted);
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.note {
|
||||
margin: 18px 0 0;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.primary-button,
|
||||
.ghost-button {
|
||||
display: inline-flex;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 44px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.brand-logo-mark svg { color: #fff; }
|
||||
|
||||
.brand-name {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
letter-spacing: -.3px;
|
||||
}
|
||||
|
||||
.brand-body {
|
||||
position: relative;
|
||||
padding-bottom: 16px;
|
||||
}
|
||||
|
||||
.brand-tag {
|
||||
display: inline-block;
|
||||
background: rgba(30,86,160,.4);
|
||||
border: 1px solid rgba(30,86,160,.6);
|
||||
color: #93c5fd;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 1.2px;
|
||||
text-transform: uppercase;
|
||||
padding: 4px 10px;
|
||||
border-radius: 4px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.brand-headline {
|
||||
font-size: clamp(28px, 3.2vw, 42px);
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
line-height: 1.25;
|
||||
letter-spacing: -.5px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.brand-desc {
|
||||
font-size: 15px;
|
||||
color: rgba(255,255,255,.55);
|
||||
line-height: 1.7;
|
||||
max-width: 380px;
|
||||
}
|
||||
|
||||
.brand-divider {
|
||||
width: 48px;
|
||||
height: 3px;
|
||||
background: var(--blue);
|
||||
border-radius: 2px;
|
||||
margin-top: 28px;
|
||||
}
|
||||
|
||||
.brand-footer {
|
||||
font-size: 12px;
|
||||
color: rgba(255,255,255,.3);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* ── 우측 폼 패널 ── */
|
||||
.form-panel {
|
||||
background: var(--surface);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 48px 40px;
|
||||
}
|
||||
|
||||
.form-box {
|
||||
width: min(100%, 400px);
|
||||
}
|
||||
|
||||
.form-eyebrow {
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 1px;
|
||||
text-transform: uppercase;
|
||||
color: var(--blue);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.form-title {
|
||||
font-size: clamp(22px, 2.8vw, 30px);
|
||||
font-weight: 700;
|
||||
color: var(--navy);
|
||||
letter-spacing: -.4px;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.form-subtitle {
|
||||
font-size: 14px;
|
||||
color: var(--muted);
|
||||
line-height: 1.6;
|
||||
margin-bottom: 36px;
|
||||
}
|
||||
|
||||
/* 구분선 */
|
||||
.form-divider {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
.form-divider::before,
|
||||
.form-divider::after {
|
||||
content: "";
|
||||
flex: 1;
|
||||
height: 1px;
|
||||
background: var(--border);
|
||||
}
|
||||
|
||||
.form-divider span {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.primary-button {
|
||||
/* Google 로그인 버튼 */
|
||||
.btn-google {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
width: 100%;
|
||||
background: var(--accent);
|
||||
min-height: 48px;
|
||||
background: var(--surface);
|
||||
border: 1.5px solid var(--border);
|
||||
border-radius: 8px;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
transition: border-color .15s, box-shadow .15s, background .15s;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.btn-google:hover {
|
||||
border-color: var(--blue);
|
||||
background: var(--blue-tint);
|
||||
box-shadow: 0 0 0 3px rgba(30,86,160,.1);
|
||||
}
|
||||
|
||||
/* 기본 버튼 (접근거부 재시도 등) */
|
||||
.btn-primary {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
min-height: 48px;
|
||||
padding: 0 24px;
|
||||
background: var(--blue);
|
||||
color: #fff;
|
||||
padding: 0 18px;
|
||||
border-radius: 8px;
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
transition: background .15s;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.primary-button:hover {
|
||||
background: var(--accent-strong);
|
||||
}
|
||||
.btn-primary:hover { background: var(--blue-hover); }
|
||||
|
||||
.ghost-button {
|
||||
border: 1px solid var(--line);
|
||||
background: #fff;
|
||||
padding: 0 14px;
|
||||
.form-note {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
background: #f8fafc;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 14px 16px;
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
.form-note svg { flex-shrink: 0; margin-top: 1px; }
|
||||
|
||||
/* 접근 거부 전용 */
|
||||
.form-error-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background: #fef2f2;
|
||||
border: 1px solid #fecaca;
|
||||
border-radius: 8px;
|
||||
padding: 10px 14px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--danger);
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
|
||||
/* ════════════════════════════════════════════════════
|
||||
메인(대시보드) 페이지
|
||||
════════════════════════════════════════════════════ */
|
||||
|
||||
/* ── 헤더 ── */
|
||||
.header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
height: var(--header-h);
|
||||
background: var(--navy);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 24px;
|
||||
padding: 28px clamp(20px, 5vw, 56px);
|
||||
background: var(--surface);
|
||||
border-bottom: 1px solid var(--line);
|
||||
padding: 0 clamp(20px, 4vw, 48px);
|
||||
box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 2px 16px rgba(0,0,0,.35);
|
||||
}
|
||||
|
||||
.account {
|
||||
.header-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.header-logo-mark {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: var(--blue);
|
||||
border-radius: 7px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.header-logo-mark svg { color: #fff; }
|
||||
|
||||
.header-brand-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.header-company {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
letter-spacing: -.2px;
|
||||
}
|
||||
|
||||
.header-portal {
|
||||
font-size: 11px;
|
||||
color: rgba(255,255,255,.45);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.header-user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.account img {
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
.header-avatar {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid rgba(255,255,255,.2);
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.account strong,
|
||||
.account span {
|
||||
display: block;
|
||||
max-width: 240px;
|
||||
.header-avatar-placeholder {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 50%;
|
||||
background: var(--blue);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.header-user-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1.25;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.header-user-name {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.header-user-email {
|
||||
font-size: 11px;
|
||||
color: rgba(255,255,255,.45);
|
||||
max-width: 200px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.account span {
|
||||
color: var(--muted);
|
||||
.btn-logout {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
height: 34px;
|
||||
padding: 0 14px;
|
||||
background: rgba(255,255,255,.08);
|
||||
border: 1px solid rgba(255,255,255,.12);
|
||||
border-radius: 6px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: rgba(255,255,255,.75);
|
||||
transition: background .15s, color .15s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.menu-grid {
|
||||
.btn-logout:hover {
|
||||
background: rgba(255,255,255,.15);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* ── 히어로 배너 ── */
|
||||
.hero {
|
||||
background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
|
||||
padding: 36px clamp(20px, 4vw, 48px);
|
||||
border-bottom: 1px solid rgba(255,255,255,.06);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: -60px;
|
||||
top: -60px;
|
||||
width: 280px;
|
||||
height: 280px;
|
||||
background: radial-gradient(circle, rgba(30,86,160,.2) 0%, transparent 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.hero-greeting {
|
||||
font-size: clamp(20px, 2.5vw, 26px);
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
letter-spacing: -.3px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.hero-sub {
|
||||
font-size: 14px;
|
||||
color: rgba(255,255,255,.5);
|
||||
}
|
||||
|
||||
.hero-date {
|
||||
font-size: 13px;
|
||||
color: rgba(255,255,255,.35);
|
||||
margin-top: 14px;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
/* ── 메뉴 섹션 ── */
|
||||
.content {
|
||||
padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 48px);
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: var(--navy);
|
||||
letter-spacing: -.2px;
|
||||
}
|
||||
|
||||
.section-count {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 22px;
|
||||
height: 22px;
|
||||
padding: 0 6px;
|
||||
background: var(--blue-tint);
|
||||
color: var(--blue);
|
||||
border-radius: 99px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* ── 카드 그리드 ── */
|
||||
.card-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
gap: 18px;
|
||||
padding: clamp(20px, 5vw, 56px);
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.menu-card {
|
||||
display: flex;
|
||||
min-height: 150px;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 8px;
|
||||
background: var(--surface);
|
||||
padding: 24px;
|
||||
box-shadow: 0 10px 30px rgba(22, 31, 42, 0.07);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 28px 28px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
transition: border-color .2s, box-shadow .2s, transform .2s;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* 상단 컬러 액센트 라인 */
|
||||
.menu-card::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0; left: 0; right: 0;
|
||||
height: 3px;
|
||||
background: var(--blue);
|
||||
border-radius: 12px 12px 0 0;
|
||||
opacity: 0;
|
||||
transition: opacity .2s;
|
||||
}
|
||||
|
||||
.menu-card:hover {
|
||||
border-color: var(--accent);
|
||||
transform: translateY(-1px);
|
||||
border-color: #b8cfe8;
|
||||
box-shadow: 0 8px 32px rgba(13,27,42,.1);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.menu-card span {
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
line-height: 1.3;
|
||||
.menu-card:hover::before { opacity: 1; }
|
||||
|
||||
/* 아이콘 배지 */
|
||||
.card-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 12px;
|
||||
background: var(--blue-tint);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 20px;
|
||||
color: var(--blue);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.menu-card small {
|
||||
color: var(--muted);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.topbar {
|
||||
align-items: flex-start;
|
||||
/* 카드 내용 영역이 flex로 늘어나게 */
|
||||
.card-body {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.account {
|
||||
width: 100%;
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.ghost-button {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 17px;
|
||||
font-weight: 700;
|
||||
color: var(--navy);
|
||||
letter-spacing: -.3px;
|
||||
line-height: 1.35;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.card-desc {
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
line-height: 1.6;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
margin-top: 22px;
|
||||
padding-top: 18px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.card-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--blue);
|
||||
transition: gap .15s;
|
||||
}
|
||||
|
||||
.menu-card:hover .card-link { gap: 8px; }
|
||||
|
||||
|
||||
/* ════════════════════════════════════════════════════
|
||||
반응형
|
||||
════════════════════════════════════════════════════ */
|
||||
@media (max-width: 768px) {
|
||||
.auth-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.brand-panel { display: none; }
|
||||
|
||||
.form-panel {
|
||||
padding: 36px 24px;
|
||||
align-items: flex-start;
|
||||
padding-top: 60px;
|
||||
}
|
||||
|
||||
.header-user-info { display: none; }
|
||||
|
||||
.hero-date { display: none; }
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.header-portal { display: none; }
|
||||
.btn-logout span { display: none; }
|
||||
}
|
||||
|
||||
@@ -3,17 +3,80 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>접속 불가</title>
|
||||
<title>접속 불가 — DBX 업무 포털</title>
|
||||
<link rel="stylesheet" href="/static/styles.css" />
|
||||
</head>
|
||||
<body class="auth-page">
|
||||
<main class="auth-shell">
|
||||
<section class="auth-panel">
|
||||
<p class="eyebrow">Access denied</p>
|
||||
<h1>접속할 수 없습니다</h1>
|
||||
<p class="lead">{{ reason }}</p>
|
||||
<a class="primary-button" href="/login">다른 Google 계정으로 로그인</a>
|
||||
</section>
|
||||
<body>
|
||||
<div class="auth-layout">
|
||||
|
||||
<!-- 좌측: 브랜드 패널 -->
|
||||
<aside class="brand-panel">
|
||||
<div class="brand-logo">
|
||||
<div class="brand-logo-mark">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="3" y="3" width="7" height="7" rx="1"/>
|
||||
<rect x="14" y="3" width="7" height="7" rx="1"/>
|
||||
<rect x="3" y="14" width="7" height="7" rx="1"/>
|
||||
<rect x="14" y="14" width="7" height="7" rx="1"/>
|
||||
</svg>
|
||||
</div>
|
||||
<span class="brand-name">DBX Corp</span>
|
||||
</div>
|
||||
|
||||
<div class="brand-body">
|
||||
<p class="brand-tag">Internal Portal</p>
|
||||
<h1 class="brand-headline">업무 포털<br>시스템</h1>
|
||||
<p class="brand-desc">
|
||||
DBX Corp 임직원 전용 업무 통합 포털입니다.
|
||||
</p>
|
||||
<div class="brand-divider"></div>
|
||||
</div>
|
||||
|
||||
<p class="brand-footer">© 2026 DBX Corp. All rights reserved.</p>
|
||||
</aside>
|
||||
|
||||
<!-- 우측: 오류 패널 -->
|
||||
<main class="form-panel">
|
||||
<div class="form-box">
|
||||
<div class="form-error-badge">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="12" cy="12" r="10"/>
|
||||
<line x1="12" y1="8" x2="12" y2="12"/>
|
||||
<line x1="12" y1="16" x2="12.01" y2="16"/>
|
||||
</svg>
|
||||
접속 불가
|
||||
</div>
|
||||
|
||||
<h2 class="form-title">접속할 수 없습니다</h2>
|
||||
<p class="form-subtitle" style="margin-bottom: 32px;">
|
||||
{{ reason }}
|
||||
</p>
|
||||
|
||||
<a class="btn-primary" href="/login">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/>
|
||||
<polyline points="10 17 15 12 10 7"/>
|
||||
<line x1="15" y1="12" x2="3" y2="12"/>
|
||||
</svg>
|
||||
다른 Google 계정으로 로그인
|
||||
</a>
|
||||
|
||||
<div class="form-note" style="margin-top: 20px;">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="3" y="11" width="18" height="11" rx="2" ry="2"/>
|
||||
<path d="M7 11V7a5 5 0 0 1 10 0v4"/>
|
||||
</svg>
|
||||
<span>
|
||||
접속 권한이 필요하시면 시스템 관리자에게 문의하세요.
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+68
-10
@@ -3,18 +3,76 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>DBX 메인 페이지 로그인</title>
|
||||
<title>로그인 — DBX 업무 포털</title>
|
||||
<link rel="stylesheet" href="/static/styles.css" />
|
||||
</head>
|
||||
<body class="auth-page">
|
||||
<main class="auth-shell">
|
||||
<section class="auth-panel">
|
||||
<p class="eyebrow">DBX Workspace</p>
|
||||
<h1>메인 페이지</h1>
|
||||
<p class="lead">회사 Google Workspace 계정으로 로그인하세요.</p>
|
||||
<a class="primary-button" href="/login">Google 계정으로 로그인</a>
|
||||
<p class="note">허용된 계정만 접속할 수 있습니다.</p>
|
||||
</section>
|
||||
<body>
|
||||
<div class="auth-layout">
|
||||
|
||||
<!-- 좌측: 브랜드 패널 -->
|
||||
<aside class="brand-panel">
|
||||
<div class="brand-logo">
|
||||
<div class="brand-logo-mark">
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="3" y="3" width="7" height="7" rx="1"/>
|
||||
<rect x="14" y="3" width="7" height="7" rx="1"/>
|
||||
<rect x="3" y="14" width="7" height="7" rx="1"/>
|
||||
<rect x="14" y="14" width="7" height="7" rx="1"/>
|
||||
</svg>
|
||||
</div>
|
||||
<span class="brand-name">DBX Corp</span>
|
||||
</div>
|
||||
|
||||
<div class="brand-body">
|
||||
<p class="brand-tag">Internal Portal</p>
|
||||
<h1 class="brand-headline">업무 포털<br>시스템</h1>
|
||||
<p class="brand-desc">
|
||||
DBX Corp 임직원 전용 업무 통합 포털입니다.<br>
|
||||
회사 Google Workspace 계정으로 인증 후 이용하실 수 있습니다.
|
||||
</p>
|
||||
<div class="brand-divider"></div>
|
||||
</div>
|
||||
|
||||
<p class="brand-footer">© 2026 DBX Corp. All rights reserved.</p>
|
||||
</aside>
|
||||
|
||||
<!-- 우측: 로그인 폼 -->
|
||||
<main class="form-panel">
|
||||
<div class="form-box">
|
||||
<p class="form-eyebrow">DBX Corp</p>
|
||||
<h2 class="form-title">업무 포털 로그인</h2>
|
||||
<p class="form-subtitle">
|
||||
회사 Google Workspace 계정으로 로그인하세요.<br>
|
||||
허용된 계정만 접속할 수 있습니다.
|
||||
</p>
|
||||
|
||||
<a class="btn-google" href="/login">
|
||||
<!-- Google G 아이콘 -->
|
||||
<svg width="20" height="20" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/>
|
||||
<path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/>
|
||||
<path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"/>
|
||||
<path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.18 1.48-4.97 2.31-8.16 2.31-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/>
|
||||
</svg>
|
||||
Google 계정으로 로그인
|
||||
</a>
|
||||
|
||||
<div class="form-note">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="12" cy="12" r="10"/>
|
||||
<line x1="12" y1="8" x2="12" y2="12"/>
|
||||
<line x1="12" y1="16" x2="12.01" y2="16"/>
|
||||
</svg>
|
||||
<span>
|
||||
<strong style="color: var(--text);">dbxcorp.co.kr</strong> 도메인 계정이며
|
||||
접속 허용 목록에 등록된 임직원만 이용할 수 있습니다.
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+118
-15
@@ -3,34 +3,137 @@
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>DBX 메인 페이지</title>
|
||||
<title>업무 포털 — DBX Corp</title>
|
||||
<link rel="stylesheet" href="/static/styles.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header class="topbar">
|
||||
<div>
|
||||
<p class="eyebrow">DBX Workspace</p>
|
||||
<h1>업무 메뉴</h1>
|
||||
|
||||
<!-- ── 헤더 ── -->
|
||||
<header class="header">
|
||||
<div class="header-brand">
|
||||
<div class="header-logo-mark">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<rect x="3" y="3" width="7" height="7" rx="1"/>
|
||||
<rect x="14" y="3" width="7" height="7" rx="1"/>
|
||||
<rect x="3" y="14" width="7" height="7" rx="1"/>
|
||||
<rect x="14" y="14" width="7" height="7" rx="1"/>
|
||||
</svg>
|
||||
</div>
|
||||
<div class="header-brand-text">
|
||||
<span class="header-company">DBX Corp</span>
|
||||
<span class="header-portal">업무 포털</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="header-user">
|
||||
<div class="header-user-info">
|
||||
<span class="header-user-name">{{ user.name }}</span>
|
||||
<span class="header-user-email">{{ user.email }}</span>
|
||||
</div>
|
||||
<div class="account">
|
||||
{% if user.picture %}
|
||||
<img src="{{ user.picture }}" alt="" />
|
||||
{% endif %}
|
||||
<div>
|
||||
<strong>{{ user.name }}</strong>
|
||||
<span>{{ user.email }}</span>
|
||||
<img class="header-avatar" src="{{ user.picture }}" alt="{{ user.name }}" />
|
||||
{% else %}
|
||||
<div class="header-avatar-placeholder">
|
||||
{{ user.name[0] | upper }}
|
||||
</div>
|
||||
<a class="ghost-button" href="/logout">로그아웃</a>
|
||||
{% endif %}
|
||||
<a class="btn-logout" href="/logout">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
|
||||
<polyline points="16 17 21 12 16 7"/>
|
||||
<line x1="21" y1="12" x2="9" y2="12"/>
|
||||
</svg>
|
||||
<span>로그아웃</span>
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="menu-grid">
|
||||
<!-- ── 히어로 배너 ── -->
|
||||
<section class="hero">
|
||||
<p class="hero-greeting">안녕하세요, {{ user.name }}님 👋</p>
|
||||
<p class="hero-sub">오늘도 좋은 하루 되세요.</p>
|
||||
<p class="hero-date" id="today-date"></p>
|
||||
</section>
|
||||
|
||||
<!-- ── 메뉴 콘텐츠 ── -->
|
||||
<main class="content">
|
||||
<div class="section-header">
|
||||
<h2 class="section-title">업무 바로가기</h2>
|
||||
<span class="section-count">{{ menu_items | length }}</span>
|
||||
</div>
|
||||
|
||||
<div class="card-grid">
|
||||
{% for item in menu_items %}
|
||||
<a class="menu-card" href="{{ item.url }}">
|
||||
<span>{{ item.title }}</span>
|
||||
<small>{{ item.description }}</small>
|
||||
<div class="card-icon">
|
||||
{% if loop.index == 1 %}
|
||||
<!-- 클립보드 / 발주 아이콘 -->
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/>
|
||||
<rect x="8" y="2" width="8" height="4" rx="1" ry="1"/>
|
||||
<line x1="8" y1="13" x2="16" y2="13"/>
|
||||
<line x1="8" y1="17" x2="14" y2="17"/>
|
||||
</svg>
|
||||
{% elif loop.index == 2 %}
|
||||
<!-- 리스트 / 주문 아이콘 -->
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<line x1="8" y1="6" x2="21" y2="6"/>
|
||||
<line x1="8" y1="12" x2="21" y2="12"/>
|
||||
<line x1="8" y1="18" x2="21" y2="18"/>
|
||||
<line x1="3" y1="6" x2="3.01" y2="6"/>
|
||||
<line x1="3" y1="12" x2="3.01" y2="12"/>
|
||||
<line x1="3" y1="18" x2="3.01" y2="18"/>
|
||||
</svg>
|
||||
{% elif loop.index == 3 %}
|
||||
<!-- 차트 아이콘 -->
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<line x1="18" y1="20" x2="18" y2="10"/>
|
||||
<line x1="12" y1="20" x2="12" y2="4"/>
|
||||
<line x1="6" y1="20" x2="6" y2="14"/>
|
||||
<line x1="2" y1="20" x2="22" y2="20"/>
|
||||
</svg>
|
||||
{% else %}
|
||||
<!-- 기본 링크 아이콘 -->
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="12" cy="12" r="10"/>
|
||||
<line x1="12" y1="8" x2="12" y2="16"/>
|
||||
<line x1="8" y1="12" x2="16" y2="12"/>
|
||||
</svg>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<p class="card-title">{{ item.title }}</p>
|
||||
<p class="card-desc">{{ item.description }}</p>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<span class="card-link">
|
||||
바로가기
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none"
|
||||
stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<line x1="5" y1="12" x2="19" y2="12"/>
|
||||
<polyline points="12 5 19 12 12 19"/>
|
||||
</svg>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
// 오늘 날짜 표시
|
||||
const d = new Date();
|
||||
const days = ["일요일","월요일","화요일","수요일","목요일","금요일","토요일"];
|
||||
document.getElementById("today-date").textContent =
|
||||
d.getFullYear() + "년 " + (d.getMonth()+1) + "월 " + d.getDate() + "일 " + days[d.getDay()];
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
@echo off
|
||||
cd /d "%~dp0"
|
||||
|
||||
set PROJECT=dbx-main
|
||||
set COMPOSE=docker compose -p %PROJECT% -f docker-compose.local.yml
|
||||
|
||||
if "%1"=="stop" goto STOP
|
||||
if "%1"=="logs" goto LOGS
|
||||
if "%1"=="ps" goto PS
|
||||
if "%1"=="restart" goto RESTART
|
||||
|
||||
:START
|
||||
if not exist ".env.local" (
|
||||
echo.
|
||||
echo [ERROR] .env.local not found.
|
||||
echo Copy .env.local.example and fill in the values:
|
||||
echo.
|
||||
echo copy .env.local.example .env.local
|
||||
echo.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
echo.
|
||||
echo Starting DBX Main Page (local)...
|
||||
echo.
|
||||
%COMPOSE% up --build -d
|
||||
if %errorlevel%==0 (
|
||||
echo.
|
||||
echo [OK] Running at http://localhost:8080
|
||||
echo.
|
||||
echo Logs : run-local.bat logs
|
||||
echo Stop : run-local.bat stop
|
||||
echo.
|
||||
)
|
||||
pause
|
||||
exit /b
|
||||
|
||||
:STOP
|
||||
echo.
|
||||
echo Stopping container...
|
||||
%COMPOSE% down
|
||||
echo.
|
||||
pause
|
||||
exit /b
|
||||
|
||||
:LOGS
|
||||
%COMPOSE% logs -f
|
||||
exit /b
|
||||
|
||||
:PS
|
||||
echo.
|
||||
%COMPOSE% ps
|
||||
echo.
|
||||
pause
|
||||
exit /b
|
||||
|
||||
:RESTART
|
||||
echo.
|
||||
echo Restarting...
|
||||
%COMPOSE% restart
|
||||
echo.
|
||||
pause
|
||||
exit /b
|
||||
@@ -0,0 +1,52 @@
|
||||
# DBX 메인 페이지 — 로컬 실행 스크립트
|
||||
# 사용법: .\run-local.ps1 [명령어]
|
||||
#
|
||||
# .\run-local.ps1 → 시작 (코드 변경 시 자동 재빌드)
|
||||
# .\run-local.ps1 stop → 중지
|
||||
# .\run-local.ps1 logs → 로그 보기
|
||||
# .\run-local.ps1 ps → 상태 확인
|
||||
# .\run-local.ps1 restart → 재시작
|
||||
|
||||
$PROJECT = "dbx-main"
|
||||
$COMPOSE = "docker compose -p $PROJECT -f docker-compose.local.yml"
|
||||
|
||||
switch ($args[0]) {
|
||||
"stop" {
|
||||
Write-Host "컨테이너 중지 중..." -ForegroundColor Yellow
|
||||
Invoke-Expression "$COMPOSE down"
|
||||
}
|
||||
"logs" {
|
||||
Invoke-Expression "$COMPOSE logs -f"
|
||||
}
|
||||
"ps" {
|
||||
Invoke-Expression "$COMPOSE ps"
|
||||
}
|
||||
"restart" {
|
||||
Write-Host "재시작 중..." -ForegroundColor Yellow
|
||||
Invoke-Expression "$COMPOSE restart"
|
||||
}
|
||||
default {
|
||||
# .env.local 없으면 안내 후 종료
|
||||
if (-not (Test-Path ".env.local")) {
|
||||
Write-Host ""
|
||||
Write-Host "❌ .env.local 파일이 없습니다." -ForegroundColor Red
|
||||
Write-Host " .env.local.example 을 복사하여 값을 채워주세요:" -ForegroundColor Yellow
|
||||
Write-Host " copy .env.local.example .env.local" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "🚀 DBX 메인 페이지 로컬 시작..." -ForegroundColor Cyan
|
||||
Invoke-Expression "$COMPOSE up --build -d"
|
||||
|
||||
if ($LASTEXITCODE -eq 0) {
|
||||
Write-Host ""
|
||||
Write-Host "✅ 실행 중 → http://localhost:8080" -ForegroundColor Green
|
||||
Write-Host ""
|
||||
Write-Host " 로그 보기 : .\run-local.ps1 logs" -ForegroundColor Gray
|
||||
Write-Host " 중지 : .\run-local.ps1 stop" -ForegroundColor Gray
|
||||
Write-Host ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user