first commit

This commit is contained in:
peregr1nus
2025-12-10 13:27:48 +09:00
commit 8019a7e4ba
19 changed files with 2028 additions and 0 deletions

27
static/script.js Normal file
View File

@@ -0,0 +1,27 @@
// 공통 JavaScript 함수들
// 폼 유효성 검사
function validateForm(formId) {
const form = document.getElementById(formId);
if (!form.checkValidity()) {
form.reportValidity();
return false;
}
return true;
}
// 로딩 표시
function showLoading() {
const modal = document.getElementById('loadingModal');
if (modal) {
modal.style.display = 'flex';
}
}
function hideLoading() {
const modal = document.getElementById('loadingModal');
if (modal) {
modal.style.display = 'none';
}
}

475
static/style.css Normal file
View File

@@ -0,0 +1,475 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 20px;
color: #333;
}
.container {
max-width: 900px;
margin: 0 auto;
background: white;
border-radius: 10px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
overflow: hidden;
}
header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 30px;
text-align: center;
position: relative;
}
.header-actions {
position: absolute;
top: 20px;
right: 20px;
}
.logout-link {
color: white;
text-decoration: none;
padding: 8px 15px;
background: rgba(255, 255, 255, 0.2);
border-radius: 5px;
font-size: 0.9em;
transition: background 0.3s;
}
.logout-link:hover {
background: rgba(255, 255, 255, 0.3);
}
header h1 {
font-size: 2em;
margin-bottom: 10px;
}
.subtitle {
font-size: 1.1em;
opacity: 0.9;
}
main {
padding: 40px;
}
.step-container {
max-width: 800px;
margin: 0 auto;
}
.progress-bar {
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 40px;
padding: 20px 0;
}
.progress-step {
width: 40px;
height: 40px;
border-radius: 50%;
background: #e0e0e0;
color: #999;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
transition: all 0.3s;
}
.progress-step.active {
background: #667eea;
color: white;
transform: scale(1.1);
}
.progress-step.completed {
background: #4caf50;
color: white;
}
.progress-line {
width: 80px;
height: 3px;
background: #e0e0e0;
margin: 0 10px;
}
h2 {
color: #333;
margin-bottom: 30px;
font-size: 1.8em;
}
.cult-name {
background: #f5f5f5;
padding: 15px;
border-radius: 5px;
margin-bottom: 30px;
font-size: 1.1em;
}
.form-container {
background: #fafafa;
padding: 30px;
border-radius: 8px;
}
.form-group {
margin-bottom: 25px;
}
.form-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #555;
}
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
width: 100%;
padding: 12px;
border: 2px solid #e0e0e0;
border-radius: 5px;
font-size: 1em;
font-family: inherit;
transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
outline: none;
border-color: #667eea;
}
.form-group textarea {
resize: vertical;
min-height: 100px;
}
.radio-group {
display: flex;
gap: 20px;
margin-top: 10px;
flex-wrap: wrap;
}
.radio-group label {
display: flex;
align-items: center;
gap: 8px;
font-weight: normal;
cursor: pointer;
}
.radio-group input[type="radio"] {
width: auto;
cursor: pointer;
}
.doctrine-section {
background: white;
padding: 20px;
border-radius: 5px;
margin-bottom: 25px;
border-left: 4px solid #667eea;
}
.doctrine-section h3 {
color: #667eea;
margin-bottom: 15px;
font-size: 1.3em;
}
.help-text {
font-size: 0.9em;
color: #666;
margin-bottom: 10px;
font-style: italic;
}
.form-actions {
display: flex;
gap: 15px;
justify-content: flex-end;
margin-top: 30px;
padding-top: 20px;
border-top: 2px solid #e0e0e0;
}
.btn {
padding: 12px 30px;
border: none;
border-radius: 5px;
font-size: 1em;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}
.btn-primary {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.btn-secondary {
background: #e0e0e0;
color: #333;
}
.btn-secondary:hover {
background: #d0d0d0;
}
.complete-message {
text-align: center;
padding: 60px 20px;
}
.checkmark {
width: 100px;
height: 100px;
border-radius: 50%;
background: #4caf50;
color: white;
font-size: 60px;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 30px;
animation: scaleIn 0.5s ease-out;
}
@keyframes scaleIn {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}
.complete-message h2 {
color: #4caf50;
margin-bottom: 15px;
}
.complete-message p {
font-size: 1.1em;
color: #666;
margin-bottom: 10px;
}
footer {
background: #f5f5f5;
padding: 20px;
text-align: center;
color: #666;
font-size: 0.9em;
}
/* 모달 스타일 */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-content {
background: white;
padding: 40px;
border-radius: 10px;
text-align: center;
max-width: 400px;
}
.spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #667eea;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.auth-container {
max-width: 500px;
margin: 0 auto;
padding: 40px 20px;
text-align: center;
}
.auth-description {
color: #666;
margin-bottom: 10px;
font-size: 1em;
}
.auth-form {
background: #fafafa;
padding: 30px;
border-radius: 8px;
margin-top: 30px;
}
.error-message {
background: #ffebee;
color: #c62828;
padding: 15px;
border-radius: 5px;
margin: 20px 0;
border-left: 4px solid #c62828;
text-align: left;
}
.welcome-message {
text-align: center;
padding: 40px 20px;
}
.welcome-message h2 {
color: #667eea;
margin-bottom: 20px;
}
.welcome-message p {
font-size: 1.1em;
color: #666;
margin-bottom: 15px;
line-height: 1.6;
}
.info-box {
background: #f5f5f5;
border-left: 4px solid #667eea;
padding: 25px;
margin: 30px 0;
text-align: left;
border-radius: 5px;
}
.info-box h3 {
color: #667eea;
margin-bottom: 15px;
font-size: 1.2em;
}
.info-box ul {
list-style: none;
padding-left: 0;
}
.info-box li {
padding: 8px 0;
padding-left: 25px;
position: relative;
color: #555;
}
.info-box li:before {
content: "✓";
position: absolute;
left: 0;
color: #4caf50;
font-weight: bold;
}
.description-box {
margin-bottom: 30px;
}
.description-text {
font-size: 1.1em;
font-weight: 600;
color: #333;
margin-bottom: 20px;
}
.section-list {
list-style: decimal;
padding-left: 30px;
margin: 20px 0;
color: #555;
}
.section-list li {
padding: 8px 0;
font-size: 1em;
line-height: 1.6;
}
.description-note {
margin-top: 25px;
padding: 15px;
background: #fff3cd;
border-left: 4px solid #ffc107;
border-radius: 4px;
color: #856404;
font-size: 1em;
line-height: 1.8;
font-style: italic;
}
/* 반응형 디자인 */
@media (max-width: 768px) {
.container {
margin: 10px;
border-radius: 5px;
}
main {
padding: 20px;
}
.progress-bar {
flex-wrap: wrap;
}
.progress-line {
width: 40px;
}
.form-actions {
flex-direction: column;
}
.btn {
width: 100%;
}
}