Files
coder-build-test/public/style.css
2620227 051c830039 feat: Node.js + Express 백엔드 추가
- server.js: Express 서버, 정적파일 서빙 + API 3개
  - GET /api/greeting (랜덤 한국어 인사말)
  - POST /api/echo (에코 테스트)
  - GET /api/stats (서버 업타임/버전 정보)
- 정적 파일을 public/ 디렉토리로 이동
- index.html에서 fetch로 API 호출하는 버튼 추가
- .gitignore, package.json 추가
2026-06-12 06:21:19 +00:00

239 lines
3.4 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
background: #f0f4ff;
color: #1a1a2e;
min-height: 100vh;
}
nav {
background: #16213e;
padding: 1rem 2rem;
display: flex;
gap: 0.75rem;
align-items: center;
}
nav .logo {
color: #e2e8f0;
font-weight: 700;
font-size: 1.1rem;
margin-right: auto;
}
nav a.btn {
color: #a0aec0;
background: transparent;
text-decoration: none;
padding: 0.45rem 1rem;
border-radius: 6px;
font-size: 0.9rem;
transition: all 0.2s;
border: 1px solid transparent;
}
nav a.btn:hover,
nav a.btn.active {
color: #fff;
background: #0f3460;
border-color: #4a5568;
}
main {
max-width: 720px;
margin: 3rem auto;
padding: 0 1.5rem;
}
h1 {
font-size: 2.8rem;
margin-bottom: 0.5rem;
color: #16213e;
}
.subtitle {
color: #718096;
font-size: 1.05rem;
margin-bottom: 2rem;
}
.card {
background: #fff;
border-radius: 12px;
padding: 2rem;
box-shadow: 0 2px 12px rgba(0,0,0,0.08);
margin-bottom: 1.5rem;
}
.card h2 {
font-size: 1.3rem;
margin-bottom: 0.75rem;
color: #16213e;
}
.card p {
color: #4a5568;
line-height: 1.7;
margin-bottom: 1.25rem;
}
.card p:last-child {
margin-bottom: 0;
}
.button-group {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
margin-top: 1.25rem;
}
.btn {
display: inline-block;
padding: 0.6rem 1.4rem;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
text-decoration: none;
transition: all 0.2s;
border: none;
}
.btn.primary {
background: #0f3460;
color: #fff;
}
.btn.primary:hover {
background: #16213e;
}
.btn.secondary {
background: #e2e8f0;
color: #2d3748;
}
.btn.secondary:hover {
background: #cbd5e0;
}
.btn.outline {
background: transparent;
border: 2px solid #0f3460;
color: #0f3460;
}
.btn.outline:hover {
background: #0f3460;
color: #fff;
}
.badge {
display: inline-block;
background: #ebf8ff;
color: #2b6cb0;
padding: 0.25rem 0.75rem;
border-radius: 999px;
font-size: 0.8rem;
font-weight: 600;
margin-bottom: 1rem;
}
.tag-list {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin-top: 0.75rem;
}
.tag {
background: #f0f4ff;
color: #4a5568;
padding: 0.3rem 0.8rem;
border-radius: 6px;
font-size: 0.85rem;
border: 1px solid #cbd5e0;
}
.contact-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 0;
border-bottom: 1px solid #e2e8f0;
color: #4a5568;
}
.contact-item:last-child {
border-bottom: none;
}
.contact-label {
font-weight: 600;
width: 70px;
color: #2d3748;
flex-shrink: 0;
}
.input-row {
display: flex;
gap: 0.75rem;
margin-top: 0.75rem;
}
.input-row input {
flex: 1;
padding: 0.55rem 1rem;
border: 1px solid #cbd5e0;
border-radius: 8px;
font-size: 0.95rem;
outline: none;
transition: border-color 0.2s;
}
.input-row input:focus {
border-color: #0f3460;
}
.result-text {
margin-top: 0.75rem !important;
color: #2b6cb0 !important;
font-weight: 500;
min-height: 1.5rem;
}
.stats-grid {
display: flex;
flex-direction: column;
gap: 0.5rem;
margin-top: 0.5rem;
}
.stat-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0.75rem;
background: #f7fafc;
border-radius: 6px;
font-size: 0.9rem;
}
.stat-label {
color: #718096;
font-weight: 500;
}
footer {
text-align: center;
padding: 2rem;
color: #a0aec0;
font-size: 0.85rem;
}