mirror of
https://github.com/headporter81/specialsource-homepage-frontend.git
synced 2026-08-08 15:21:11 +09:00
This commit is contained in:
+99
-187
@@ -175,42 +175,51 @@ const todayUnique = ref(0);
|
|||||||
const activeNow = ref(0);
|
const activeNow = ref(0);
|
||||||
let analyticsTimer = null;
|
let analyticsTimer = null;
|
||||||
|
|
||||||
// 🟢 [NEW] 워커 표지판을 담을 반응형 변수 (기본값: nas)
|
|
||||||
const currentServerSource = ref('nas');
|
const currentServerSource = ref('nas');
|
||||||
|
|
||||||
const menuItems = [
|
const menuItems = [
|
||||||
{ id: 'main', name: 'HOME' },
|
{ id: 'main', name: 'HOME' },
|
||||||
{ id: 'youtube', name: 'YOUTUBE' },
|
{ id: 'youtube', name: 'YOUTUBE' },
|
||||||
{ id: 'project', name: 'PROJECT' },
|
// { id: 'project', name: 'PROJECT' },
|
||||||
{ id: 'about', name: 'ABOUT' },
|
{ id: 'about', name: 'ABOUT' },
|
||||||
{ id: 'contact', name: 'CONTACT' }
|
{ id: 'contact', name: 'CONTACT' }
|
||||||
];
|
];
|
||||||
|
|
||||||
const isLoggedIn = computed(() => !!authToken.value);
|
const isLoggedIn = computed(() => !!authToken.value);
|
||||||
|
|
||||||
// 🟢 헤더 상태에 따른 터미널 UI 텍스트 변환
|
|
||||||
const currentServerSourceDisplay = computed(() => {
|
const currentServerSourceDisplay = computed(() => {
|
||||||
if (currentServerSource.value === 'firebase_night') {
|
if (currentServerSource.value === 'firebase_night') {
|
||||||
return 'HOST: FIREBASE (NIGHT)';
|
return 'SYS: CLOUD_REDUNDANCY (NIGHT)';
|
||||||
}
|
}
|
||||||
if (currentServerSource.value === 'firebase_failover') {
|
if (currentServerSource.value === 'firebase_failover') {
|
||||||
return 'HOST: FIREBASE (FAILOVER)';
|
return 'SYS: EMERGENCY_MIRROR (FAILOVER)';
|
||||||
}
|
}
|
||||||
return 'HOST: GNET-NAS (LOCAL)';
|
if (currentServerSource.value === 'firebase_direct') {
|
||||||
|
return 'SYS: CLOUD_DIRECT (BYPASS)';
|
||||||
|
}
|
||||||
|
return 'SYS: LOCAL_CORE (ACTIVE)';
|
||||||
});
|
});
|
||||||
|
|
||||||
// 🟢 [NEW] 워커가 날려준 'x-served-by' 헤더를 직접 읽어 판별하는 핵심 감지 엔진
|
|
||||||
const detectRealtimeServerSource = async () => {
|
const detectRealtimeServerSource = async () => {
|
||||||
|
const hostname = window.location.hostname;
|
||||||
|
|
||||||
|
if (hostname.includes('web.app') || hostname.includes('firebase')) {
|
||||||
|
currentServerSource.value = 'firebase_direct';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 0바이트 짜리 초고속 HEAD 요청을 내 도메인으로 전송하여 헤더만 가볍게 긁어옴
|
|
||||||
const res = await fetch(window.location.origin, { method: 'HEAD' });
|
const res = await fetch(window.location.origin, { method: 'HEAD' });
|
||||||
const servedBy = res.headers.get('x-served-by');
|
const servedBy = res.headers.get('x-served-by');
|
||||||
|
|
||||||
if (servedBy) {
|
if (servedBy) {
|
||||||
currentServerSource.value = servedBy; // 'nas', 'firebase_night', 'firebase_failover' 적용
|
currentServerSource.value = servedBy;
|
||||||
|
} else {
|
||||||
|
currentServerSource.value = 'nas';
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("실시간 서버 소스 판별 실패:", err);
|
console.error("실시간 서버 소스 판별 실패:", err);
|
||||||
|
currentServerSource.value = 'firebase_failover';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -290,26 +299,6 @@ const changeMenu = (id) => {
|
|||||||
}, 20);
|
}, 20);
|
||||||
};
|
};
|
||||||
|
|
||||||
const triggerOverlayProcess = (durationMs, initialMsg) => {
|
|
||||||
isProcessing.value = true;
|
|
||||||
overlayProgress.value = 0;
|
|
||||||
overlayStatus.value = initialMsg;
|
|
||||||
|
|
||||||
const steps = 20;
|
|
||||||
const stepTime = durationMs / steps;
|
|
||||||
|
|
||||||
const interval = setInterval(() => {
|
|
||||||
if (overlayProgress.value >= 100) {
|
|
||||||
clearInterval(interval);
|
|
||||||
setTimeout(() => {
|
|
||||||
isProcessing.value = false;
|
|
||||||
}, 150);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
overlayProgress.value += (100 / steps);
|
|
||||||
}, stepTime);
|
|
||||||
};
|
|
||||||
|
|
||||||
const apiKey = 'AIzaSyD51LHwqoY8spjq6rsY_RlhBXzb96j7D6o';
|
const apiKey = 'AIzaSyD51LHwqoY8spjq6rsY_RlhBXzb96j7D6o';
|
||||||
const channelId = 'UC8L92ju0V88s6TcmLPb8Bkg';
|
const channelId = 'UC8L92ju0V88s6TcmLPb8Bkg';
|
||||||
const maxResults = 8;
|
const maxResults = 8;
|
||||||
@@ -398,12 +387,11 @@ onMounted(() => {
|
|||||||
fetchVideos();
|
fetchVideos();
|
||||||
fetchAnalyticsData();
|
fetchAnalyticsData();
|
||||||
|
|
||||||
// 🟢 [NEW] 부팅 시 표지판 헤더를 확인하여 소스지 즉시 감지
|
|
||||||
detectRealtimeServerSource();
|
detectRealtimeServerSource();
|
||||||
|
|
||||||
analyticsTimer = setInterval(() => {
|
analyticsTimer = setInterval(() => {
|
||||||
fetchAnalyticsData();
|
fetchAnalyticsData();
|
||||||
detectRealtimeServerSource(); // 30초마다 생존 여부 및 경로 실시간 트래킹
|
detectRealtimeServerSource();
|
||||||
}, 30000);
|
}, 30000);
|
||||||
|
|
||||||
const globaljQuery = window.$;
|
const globaljQuery = window.$;
|
||||||
@@ -442,7 +430,7 @@ onMounted(() => {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'help': function () {
|
'help': function () {
|
||||||
this.echo(`- hello : Say hello\n- specialsource : Core info\n- email : Contact\n- status : Check Live Connected Users (접속자 확인)\n- clear : Clear console`);
|
this.echo(`- hello : Say hello\n- specialsource : Core info\n- email : Contact\n- status : Check Live Connected Users\n- clear : Clear console`);
|
||||||
},
|
},
|
||||||
}, {
|
}, {
|
||||||
greetings: `[SYSTEM V3.2] INTERFACE ONLINE. TYPE 'help' FOR COMMANDS.`,
|
greetings: `[SYSTEM V3.2] INTERFACE ONLINE. TYPE 'help' FOR COMMANDS.`,
|
||||||
@@ -550,7 +538,6 @@ onUnmounted(() => {
|
|||||||
box-shadow: 0 0 8px var(--tui-glow);
|
box-shadow: 0 0 8px var(--tui-glow);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 🟢 [NEW] 터미널 감성의 실시간 감지 서버 배지 스타일링 */
|
|
||||||
.server-badge {
|
.server-badge {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -561,25 +548,10 @@ onUnmounted(() => {
|
|||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
transition: 0.3s;
|
transition: 0.3s;
|
||||||
}
|
}
|
||||||
/* NAS 활성화 상태 (그린 계열/현재 테마 컬러 적용) */
|
.server-badge.nas { color: var(--tui-color); text-shadow: 0 0 5px var(--tui-glow); border-color: var(--tui-border); }
|
||||||
.server-badge.nas {
|
.server-badge.firebase_night { color: #ffb000; text-shadow: 0 0 5px rgba(255, 176, 0, 0.6); border-color: rgba(255, 176, 0, 0.3); }
|
||||||
color: var(--tui-color);
|
.server-badge.firebase_direct { color: #ffb000; text-shadow: 0 0 8px rgba(255, 176, 0, 0.6); border-color: rgba(255, 176, 0, 0.4); }
|
||||||
text-shadow: 0 0 5px var(--tui-glow);
|
.server-badge.firebase_failover { color: #ff3b3b; text-shadow: 0 0 8px #ff3b3b; border-color: rgba(255, 59, 59, 0.4); animation: badgeBlink 1.5s infinite ease-in-out; }
|
||||||
border-color: var(--tui-border);
|
|
||||||
}
|
|
||||||
/* 정기 야간 Firebase 백업 작동 상태 (호박색) */
|
|
||||||
.server-badge.firebase_night {
|
|
||||||
color: #ffb000;
|
|
||||||
text-shadow: 0 0 5px rgba(255, 176, 0, 0.6);
|
|
||||||
border-color: rgba(255, 176, 0, 0.3);
|
|
||||||
}
|
|
||||||
/* 대낮 비상 통신장애 Firebase 백업 가동 상태 (강력한 레드 경고 & 점멸) */
|
|
||||||
.server-badge.firebase_failover {
|
|
||||||
color: #ff3b3b;
|
|
||||||
text-shadow: 0 0 8px #ff3b3b;
|
|
||||||
border-color: rgba(255, 59, 59, 0.4);
|
|
||||||
animation: badgeBlink 1.5s infinite ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --- GNB --- */
|
/* --- GNB --- */
|
||||||
.auth-nav {
|
.auth-nav {
|
||||||
@@ -592,117 +564,53 @@ onUnmounted(() => {
|
|||||||
}
|
}
|
||||||
.nav-left { display: flex; align-items: center; gap: 15px; }
|
.nav-left { display: flex; align-items: center; gap: 15px; }
|
||||||
.nav-menu { display: flex; gap: 20px; }
|
.nav-menu { display: flex; gap: 20px; }
|
||||||
.menu-btn {
|
.menu-btn { background: none; border: none; color: var(--tui-dim); font-size: 16px; cursor: pointer; transition: 0.3s; }
|
||||||
background: none; border: none; color: var(--tui-dim);
|
|
||||||
font-size: 16px; cursor: pointer;
|
|
||||||
transition: 0.3s;
|
|
||||||
}
|
|
||||||
.menu-btn:hover, .menu-btn.active { color: var(--tui-color); text-shadow: 0 0 10px var(--tui-color); }
|
.menu-btn:hover, .menu-btn.active { color: var(--tui-color); text-shadow: 0 0 10px var(--tui-color); }
|
||||||
|
|
||||||
.auth-group { display: flex; align-items: center; }
|
.auth-group { display: flex; align-items: center; }
|
||||||
|
|
||||||
.nav-item {
|
.nav-item {
|
||||||
color: var(--tui-color) !important;
|
color: var(--tui-color) !important; text-decoration: none; background: none;
|
||||||
text-decoration: none;
|
border: 1px solid var(--tui-color) !important; padding: 6px 18px; margin-left: 10px;
|
||||||
background: none;
|
cursor: pointer; font-size: 13px; box-shadow: 0 0 5px var(--tui-border); transition: 0.3s;
|
||||||
border: 1px solid var(--tui-color) !important;
|
|
||||||
padding: 6px 18px;
|
|
||||||
margin-left: 10px;
|
|
||||||
cursor: pointer;
|
|
||||||
font-size: 13px;
|
|
||||||
box-shadow: 0 0 5px var(--tui-border);
|
|
||||||
transition: 0.3s;
|
|
||||||
}
|
}
|
||||||
.nav-item:hover, .nav-item.active-auth {
|
.nav-item:hover, .nav-item.active-auth {
|
||||||
background: var(--tui-border) !important;
|
background: var(--tui-border) !important; color: var(--tui-color) !important; box-shadow: 0 0 10px var(--tui-color);
|
||||||
color: var(--tui-color) !important;
|
|
||||||
box-shadow: 0 0 10px var(--tui-color);
|
|
||||||
}
|
}
|
||||||
.user-info { color: var(--tui-dim) !important; font-size: 12px; margin-right: 15px; letter-spacing: 1px;}
|
.user-info { color: var(--tui-dim) !important; font-size: 12px; margin-right: 15px; letter-spacing: 1px;}
|
||||||
.status-dot { width: 8px; height: 8px; background: #ff3b3b; border-radius: 50%; box-shadow: 0 0 8px #ff3b3b; transition: 0.5s; }
|
.status-dot { width: 8px; height: 8px; background: #ff3b3b; border-radius: 50%; box-shadow: 0 0 8px #ff3b3b; transition: 0.5s; }
|
||||||
.status-dot.secure-mode { background: var(--tui-color); box-shadow: 0 0 8px var(--tui-color); }
|
.status-dot.secure-mode { background: var(--tui-color); box-shadow: 0 0 8px var(--tui-color); }
|
||||||
|
|
||||||
/* --- 컨텐츠 영역 --- */
|
/* --- 컨텐츠 영역 --- */
|
||||||
.content-area {
|
.content-area { flex: 1; padding: 20px; min-height: 400px; overflow-y: auto; display: flex; flex-direction: column; }
|
||||||
flex: 1; padding: 20px; min-height: 400px;
|
|
||||||
overflow-y: auto;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
.sub-page { max-width: 1000px; margin: 0 auto; padding-top: 15px; width: 100%; }
|
.sub-page { max-width: 1000px; margin: 0 auto; padding-top: 15px; width: 100%; }
|
||||||
.page-title { border-bottom: 1px solid var(--tui-border); padding-bottom: 10px; margin-bottom: 20px; color: var(--tui-color);}
|
.page-title { border-bottom: 1px solid var(--tui-border); padding-bottom: 10px; margin-bottom: 20px; color: var(--tui-color);}
|
||||||
|
|
||||||
.main-page {
|
.main-page { display: flex; justify-content: center; align-items: center; flex: 1; position: relative; }
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
flex: 1;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tui-global-overlay {
|
.tui-global-overlay {
|
||||||
position: fixed;
|
position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
|
||||||
top: 0;
|
background-color: rgba(0, 0, 0, 0.88); z-index: 9999; display: flex;
|
||||||
left: 0;
|
justify-content: center; align-items: center; pointer-events: all;
|
||||||
width: 100vw;
|
|
||||||
height: 100vh;
|
|
||||||
background-color: rgba(0, 0, 0, 0.88);
|
|
||||||
z-index: 9999;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
pointer-events: all;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.ascii-container {
|
.ascii-container { width: 100%; overflow: auto; padding: 20px; box-sizing: border-box; position: relative; }
|
||||||
width: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
padding: 20px;
|
|
||||||
box-sizing: border-box;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.ascii-art {
|
.ascii-art {
|
||||||
font-weight: bold;
|
font-weight: bold; white-space: pre; display: block; margin: 0 auto; width: max-content;
|
||||||
white-space: pre;
|
color: var(--tui-color) !important; font-size: 14px; line-height: 1.2;
|
||||||
display: block;
|
border: none; background: transparent; transform-origin: center; opacity: 1;
|
||||||
margin: 0 auto;
|
|
||||||
width: max-content;
|
|
||||||
|
|
||||||
color: var(--tui-color) !important;
|
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.2;
|
|
||||||
border: none;
|
|
||||||
background: transparent;
|
|
||||||
transform-origin: center;
|
|
||||||
opacity: 1;
|
|
||||||
|
|
||||||
animation: once-cyber-glitch-wobble 2.5s linear 1 forwards !important;
|
animation: once-cyber-glitch-wobble 2.5s linear 1 forwards !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.bg-block) {
|
:deep(.bg-block) { color: #050505 !important; text-shadow: none !important; }
|
||||||
color: #050505 !important;
|
|
||||||
text-shadow: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 📺 유튜브 그리드 레이아웃 */
|
/* 📺 유튜브 그리드 레이아웃 */
|
||||||
#videos-container {
|
#videos-container {
|
||||||
display: grid;
|
display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
|
||||||
grid-template-columns: repeat(4, 1fr);
|
padding: 10px 20px; max-width: 1300px; margin: 0 auto; width: 100%; box-sizing: border-box;
|
||||||
gap: 20px;
|
|
||||||
padding: 10px 20px;
|
|
||||||
max-width: 1300px;
|
|
||||||
margin: 0 auto;
|
|
||||||
width: 100%;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
.video-card {
|
.video-card {
|
||||||
width: 100%;
|
width: 100%; background: #000; padding: 10px; border: 1px solid var(--tui-border); box-sizing: border-box;
|
||||||
background: #000;
|
position: relative; cursor: pointer; transition: 0.3s;
|
||||||
padding: 10px;
|
|
||||||
border: 1px solid var(--tui-border);
|
|
||||||
position: relative;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: 0.3s;
|
|
||||||
}
|
}
|
||||||
.video-card:hover { border-color: var(--tui-color); box-shadow: 0 0 10px var(--tui-border); }
|
.video-card:hover { border-color: var(--tui-color); box-shadow: 0 0 10px var(--tui-border); }
|
||||||
.video-title { color: var(--tui-dim); margin-top: 10px; font-size: 14px; height: 40px; overflow: hidden; font-family: sans-serif; }
|
.video-title { color: var(--tui-dim); margin-top: 10px; font-size: 14px; height: 40px; overflow: hidden; font-family: sans-serif; }
|
||||||
@@ -710,27 +618,22 @@ iframe { width: 100%; height: 180px; border-radius: 4px; }
|
|||||||
|
|
||||||
/* 보안 로그인 프레임 */
|
/* 보안 로그인 프레임 */
|
||||||
.login-terminal-frame {
|
.login-terminal-frame {
|
||||||
max-width: 550px; margin: 40px auto;
|
max-width: 550px; margin: 40px auto; border: 1px dashed var(--tui-color); padding: 35px;
|
||||||
border: 1px dashed var(--tui-color); padding: 35px;
|
background: #020a02; box-shadow: 0 0 15px var(--tui-border); box-sizing: border-box;
|
||||||
background: #020a02; box-shadow: 0 0 15px var(--tui-border);
|
|
||||||
}
|
}
|
||||||
.login-gate-title { color: var(--tui-color); font-size: 20px; margin-bottom: 10px; font-weight: bold;}
|
.login-gate-title { color: var(--tui-color); font-size: 20px; margin-bottom: 10px; font-weight: bold;}
|
||||||
.login-gate-desc { color: var(--tui-dim); font-size: 12px; margin-bottom: 30px; line-height: 1.4; }
|
.login-gate-desc { color: var(--tui-dim); font-size: 12px; margin-bottom: 30px; line-height: 1.4; }
|
||||||
.login-form-form { display: flex; flex-direction: column; gap: 20px; }
|
.login-form-form { display: flex; flex-direction: column; gap: 20px; }
|
||||||
.login-input-group { display: flex; align-items: center; border-bottom: 1px solid var(--tui-dim); padding-bottom: 5px; }
|
.login-input-group { display: flex; align-items: center; border-bottom: 1px solid var(--tui-dim); padding-bottom: 5px; }
|
||||||
.login-label { width: 120px; color: var(--tui-color); font-weight: bold; font-size: 14px; }
|
.login-label { width: 120px; color: var(--tui-color); font-weight: bold; font-size: 14px; flex-shrink: 0; }
|
||||||
.login-input {
|
.login-input { flex: 1; background: none; border: none; color: var(--tui-color); font-size: 15px; outline: none; min-width: 0; }
|
||||||
flex: 1; background: none; border: none; color: var(--tui-color);
|
|
||||||
font-size: 15px; outline: none;
|
|
||||||
}
|
|
||||||
.login-submit-btn {
|
.login-submit-btn {
|
||||||
margin-top: 15px; background: none; border: 1px solid var(--tui-color);
|
margin-top: 15px; background: none; border: 1px solid var(--tui-color);
|
||||||
color: var(--tui-color); padding: 12px;
|
color: var(--tui-color); padding: 12px; font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.3s;
|
||||||
font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.3s;
|
|
||||||
}
|
}
|
||||||
.login-submit-btn:hover { background: var(--tui-color); color: #000; box-shadow: 0 0 15px var(--tui-color); }
|
.login-submit-btn:hover { background: var(--tui-color); color: #000; box-shadow: 0 0 15px var(--tui-color); }
|
||||||
|
|
||||||
/* 프로젝트 리스트 */
|
/* 프로젝트, 어바웃, 연락처 등 */
|
||||||
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
|
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
|
||||||
.project-item { border: 1px solid var(--tui-border); padding: 15px; background: #080808; }
|
.project-item { border: 1px solid var(--tui-border); padding: 15px; background: #080808; }
|
||||||
.item-header { font-weight: bold; margin-bottom: 10px; color: var(--tui-color); }
|
.item-header { font-weight: bold; margin-bottom: 10px; color: var(--tui-color); }
|
||||||
@@ -742,10 +645,7 @@ iframe { width: 100%; height: 180px; border-radius: 4px; }
|
|||||||
.fade-enter-from, .fade-leave-to { opacity: 0; }
|
.fade-enter-from, .fade-leave-to { opacity: 0; }
|
||||||
|
|
||||||
/* 하단 CRT 터미널 */
|
/* 하단 CRT 터미널 */
|
||||||
.crt-monitor-frame {
|
.crt-monitor-frame { height: 300px; margin: 10px 40px 30px; border: 2px solid #1a1a1a; background: #0a0a0a; overflow: hidden; }
|
||||||
height: 300px; margin: 10px 40px 30px;
|
|
||||||
border: 2px solid #1a1a1a; background: #0a0a0a; overflow: hidden;
|
|
||||||
}
|
|
||||||
.monitor-header { background: #151515; padding: 5px 15px; color: #555; display: flex; justify-content: space-between; font-size: 12px;}
|
.monitor-header { background: #151515; padding: 5px 15px; color: #555; display: flex; justify-content: space-between; font-size: 12px;}
|
||||||
.monitor-status { color: var(--tui-dim); animation: blink 2s infinite; }
|
.monitor-status { color: var(--tui-dim); animation: blink 2s infinite; }
|
||||||
.crt-screen-overlay { position: relative; height: calc(100% - 30px); background: #020802; }
|
.crt-screen-overlay { position: relative; height: calc(100% - 30px); background: #020802; }
|
||||||
@@ -754,22 +654,36 @@ iframe { width: 100%; height: 180px; border-radius: 4px; }
|
|||||||
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
|
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
|
||||||
z-index: 2; background-size: 100% 4px, 6px 100%; pointer-events: none;
|
z-index: 2; background-size: 100% 4px, 6px 100%; pointer-events: none;
|
||||||
}
|
}
|
||||||
.terminal-box { width: 100%; height: 100%; padding: 10px; }
|
.terminal-box { width: 100%; height: 100%; padding: 10px; box-sizing: border-box; }
|
||||||
|
|
||||||
/* 📱 반응형 분기점 */
|
|
||||||
|
/* ==============================================================
|
||||||
|
📱 반응형 분기점 (Responsive Design)
|
||||||
|
============================================================== */
|
||||||
@media screen and (max-width: 1100px) {
|
@media screen and (max-width: 1100px) {
|
||||||
#videos-container { grid-template-columns: repeat(2, 1fr); }
|
#videos-container { grid-template-columns: repeat(2, 1fr); }
|
||||||
.project-grid { grid-template-columns: repeat(2, 1fr); }
|
.project-grid { grid-template-columns: repeat(2, 1fr); }
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 650px) {
|
@media screen and (max-width: 650px) {
|
||||||
#videos-container { grid-template-columns: 1fr; }
|
/* 1. 레이아웃 & 패딩 초기화 */
|
||||||
|
.content-area { padding: 10px; }
|
||||||
|
#videos-container { grid-template-columns: 1fr; padding: 10px; }
|
||||||
.project-grid { grid-template-columns: 1fr; }
|
.project-grid { grid-template-columns: 1fr; }
|
||||||
|
|
||||||
|
/* 2. 네비게이션바 줄바꿈 허용 (화면 밖으로 넘어가지 않게 방어) */
|
||||||
.auth-nav {
|
.auth-nav {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 15px;
|
gap: 15px;
|
||||||
padding: 15px 20px;
|
padding: 15px 10px; /* 좌우 패딩 줄임 */
|
||||||
align-items: center;
|
align-items: stretch; /* 전체 너비 채우기 */
|
||||||
|
}
|
||||||
|
.nav-left {
|
||||||
|
flex-wrap: wrap; /* 배지, 통계 등이 좁으면 아래로 줄바꿈 */
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
gap: 10px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
.nav-menu {
|
.nav-menu {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -779,51 +693,49 @@ iframe { width: 100%; height: 180px; border-radius: 4px; }
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.menu-btn { font-size: 14px; }
|
.menu-btn { font-size: 14px; }
|
||||||
.auth-group { width: 100%; justify-content: center; margin-top: 5px; }
|
|
||||||
.nav-item { margin: 0 6px; }
|
|
||||||
|
|
||||||
.ascii-container {
|
.auth-group { width: 100%; justify-content: center; margin-top: 5px; flex-wrap: wrap; gap: 10px; }
|
||||||
|
.nav-item { margin: 0; } /* 간격 조정 */
|
||||||
|
|
||||||
|
/* 3. 로그인 폼 세로 배치 (글씨가 겹치는 것 방지) */
|
||||||
|
.login-terminal-frame {
|
||||||
|
margin: 15px 5px;
|
||||||
|
padding: 20px 15px; /* 모바일에서는 여백을 좁게 */
|
||||||
|
}
|
||||||
|
.login-input-group {
|
||||||
|
flex-direction: column; /* 라벨과 인풋을 위아래로 배치 */
|
||||||
|
align-items: flex-start;
|
||||||
|
border-bottom: none; /* 하단 선 제거 */
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
.login-label { width: 100%; font-size: 13px; }
|
||||||
|
.login-input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-x: auto !important;
|
border-bottom: 1px solid var(--tui-dim);
|
||||||
overflow-y: hidden !important;
|
padding-bottom: 5px;
|
||||||
padding: 20px 10px;
|
border-radius: 0;
|
||||||
display: block;
|
|
||||||
box-sizing: border-box;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 4. ASCII 아트 가독성 및 가로 스크롤 허용 */
|
||||||
|
.ascii-container {
|
||||||
|
padding: 10px 5px;
|
||||||
|
}
|
||||||
.ascii-art {
|
.ascii-art {
|
||||||
font-size: 11px !important;
|
font-size: 9px !important; /* 모바일 사이즈에 맞게 축소 */
|
||||||
line-height: 1.35 !important;
|
line-height: 1.2 !important;
|
||||||
white-space: pre !important;
|
|
||||||
word-break: keep-all !important;
|
|
||||||
width: max-content !important;
|
|
||||||
margin: 0 !important;
|
|
||||||
-webkit-text-size-adjust: none !important;
|
|
||||||
text-size-adjust: none !important;
|
|
||||||
max-height: 999999px !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 5. 터미널 창 모바일 최적화 */
|
||||||
.crt-monitor-frame {
|
.crt-monitor-frame {
|
||||||
height: 180px !important;
|
height: 180px !important;
|
||||||
margin: 10px 15px 15px !important;
|
margin: 10px !important;
|
||||||
}
|
}
|
||||||
.monitor-header { padding: 4px 10px; font-size: 10px; }
|
.monitor-header { padding: 4px 10px; font-size: 10px; }
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blink { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
|
@keyframes blink { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
|
||||||
|
@keyframes textPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; text-shadow: 0 0 8px var(--tui-glow); } }
|
||||||
@keyframes textPulse {
|
@keyframes badgeBlink { 0%, 100% { opacity: 0.6; box-shadow: 0 0 5px rgba(255, 59, 59, 0.2); } 50% { opacity: 1; box-shadow: 0 0 15px rgba(255, 59, 59, 0.6); text-shadow: 0 0 12px #ff3b3b; } }
|
||||||
0%, 100% { opacity: 0.3; }
|
|
||||||
50% { opacity: 1; text-shadow: 0 0 8px var(--tui-glow); }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 🟢 [NEW] 비상 Failover 점멸 애니메이션 */
|
|
||||||
@keyframes badgeBlink {
|
|
||||||
0%, 100% { opacity: 0.6; box-shadow: 0 0 5px rgba(255, 59, 59, 0.2); }
|
|
||||||
50% { opacity: 1; box-shadow: 0 0 15px rgba(255, 59, 59, 0.6); text-shadow: 0 0 12px #ff3b3b; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 일회성 사이버 글리치 키프레임 */
|
|
||||||
@keyframes once-cyber-glitch-wobble {
|
@keyframes once-cyber-glitch-wobble {
|
||||||
0%, 25% { transform: translate(0) scale(1) skewX(0deg); color: var(--tui-color) !important; text-shadow: 0 0 8px var(--tui-glow) !important; opacity: 1; }
|
0%, 25% { transform: translate(0) scale(1) skewX(0deg); color: var(--tui-color) !important; text-shadow: 0 0 8px var(--tui-glow) !important; opacity: 1; }
|
||||||
26% { transform: translate(-3px, 1.5px) scale(1.02); color: #ffffff !important; text-shadow: 2px 0 #ff0000, -2px 0 #0000ff !important; }
|
26% { transform: translate(-3px, 1.5px) scale(1.02); color: #ffffff !important; text-shadow: 2px 0 #ff0000, -2px 0 #0000ff !important; }
|
||||||
|
|||||||
Reference in New Issue
Block a user