웹 프론트 페이지 개발

- React + Vite 구성
 - lotto-frontend 구성
 - script 설정으로 nas server로 빌드 n 배포 수행
This commit is contained in:
2026-01-18 09:07:01 +09:00
parent eade32f58a
commit cb4978fe4a
13 changed files with 3902 additions and 0 deletions

143
src/index.css Normal file
View File

@@ -0,0 +1,143 @@
:root {
--bg: #0b0f19;
--card: #111827;
--text: #e5e7eb;
--muted: #9ca3af;
--border: rgba(255,255,255,0.08);
--shadow: 0 20px 50px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Apple SD Gothic Neo, "Noto Sans KR", "Malgun Gothic", sans-serif;
background: radial-gradient(1200px 800px at 20% 0%, rgba(99,102,241,0.22), transparent 60%),
radial-gradient(1200px 800px at 80% 10%, rgba(16,185,129,0.18), transparent 55%),
var(--bg);
color: var(--text);
}
a { color: inherit; }
.page { max-width: 1100px; margin: 0 auto; padding: 28px 16px 60px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.header h1 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.sub { margin: 6px 0 0; color: var(--muted); }
.card {
background: rgba(17,24,39,0.9);
border: 1px solid var(--border);
border-radius: 18px;
padding: 16px;
box-shadow: var(--shadow);
backdrop-filter: blur(6px);
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.numbers { gap: 8px; flex-wrap: wrap; }
.meta { display: grid; gap: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.btn {
border: 1px solid var(--border);
background: rgba(255,255,255,0.06);
color: var(--text);
padding: 10px 12px;
border-radius: 12px;
cursor: pointer;
transition: transform .05s ease, background .15s ease;
}
.btn:hover { background: rgba(255,255,255,0.10); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary {
border-color: rgba(99,102,241,0.35);
background: rgba(99,102,241,0.25);
}
.btn.primary:hover { background: rgba(99,102,241,0.33); }
.btn.ghost { background: transparent; }
.btn.tiny { padding: 6px 10px; border-radius: 10px; font-size: 12px; }
.btn.danger { border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.18); }
.btn.danger:hover { background: rgba(239,68,68,0.25); }
.pill {
font-size: 12px;
color: var(--muted);
border: 1px solid var(--border);
padding: 6px 10px;
border-radius: 999px;
}
.form { display: grid; gap: 10px; margin-top: 10px; }
label { display: grid; gap: 6px; font-size: 13px; }
input {
border: 1px solid var(--border);
background: rgba(0,0,0,0.25);
color: var(--text);
padding: 10px 12px;
border-radius: 12px;
outline: none;
}
input:focus { border-color: rgba(99,102,241,0.55); }
.result { margin-top: 12px; display: grid; gap: 10px; }
.details summary { cursor: pointer; color: var(--muted); }
.pre {
white-space: pre-wrap;
overflow: auto;
background: rgba(0,0,0,0.28);
border: 1px solid var(--border);
border-radius: 12px;
padding: 12px;
font-size: 12px;
}
.table { display: grid; gap: 10px; margin-top: 10px; }
.tr {
display: grid;
grid-template-columns: 170px 1fr 160px;
gap: 12px;
padding: 12px;
border: 1px solid var(--border);
border-radius: 16px;
background: rgba(255,255,255,0.03);
}
@media (max-width: 900px) { .tr { grid-template-columns: 1fr; } }
.td.actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.td.grow { min-width: 0; }
.ball {
width: 40px; height: 40px;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 700;
border: 1px solid var(--border);
background: rgba(255,255,255,0.06);
}
.ball-a { box-shadow: 0 0 0 6px rgba(59,130,246,0.10) inset; }
.ball-b { box-shadow: 0 0 0 6px rgba(16,185,129,0.10) inset; }
.ball-c { box-shadow: 0 0 0 6px rgba(245,158,11,0.10) inset; }
.ball-d { box-shadow: 0 0 0 6px rgba(168,85,247,0.10) inset; }
.ball-e { box-shadow: 0 0 0 6px rgba(239,68,68,0.10) inset; }
.card.error {
border-color: rgba(239,68,68,0.35);
background: rgba(239,68,68,0.10);
margin-bottom: 14px;
}
.footer { margin-top: 14px; text-align: center; }