mirror of
https://github.com/headporter81/specialsource-homepage-frontend.git
synced 2026-08-08 15:21:11 +09:00
This commit is contained in:
+115
-72
@@ -1,9 +1,16 @@
|
||||
<template>
|
||||
<div class="homepage-wrapper">
|
||||
<div :class="['homepage-wrapper', `theme-${activeTheme}`]">
|
||||
<nav class="auth-nav">
|
||||
<div class="nav-left">
|
||||
<span class="status-dot" :class="{ 'secure-mode': isLoggedIn }"></span>
|
||||
<span class="brand">SPECIALSOURCE.SYSTEM</span>
|
||||
|
||||
<select v-model="activeTheme" class="theme-selector">
|
||||
<option value="green">Green (기본)</option>
|
||||
<option value="amber">Amber (호박)</option>
|
||||
<option value="vga">Paper White (회색)</option>
|
||||
<option value="ega">EGA (청록)</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="nav-menu">
|
||||
@@ -151,6 +158,9 @@ const loginPw = ref('');
|
||||
const activeMenu = ref('main');
|
||||
const authToken = ref(localStorage.getItem('token'));
|
||||
|
||||
// 🟢 [NEW] 활성화된 테마 상태 제어 변수 (green, amber, vga, ega)
|
||||
const activeTheme = ref('green');
|
||||
|
||||
const isProcessing = ref(false);
|
||||
const overlayProgress = ref(0);
|
||||
const overlayStatus = ref('');
|
||||
@@ -197,7 +207,7 @@ const changeMenu = (id) => {
|
||||
overlayStatus.value = `INITIALIZING ROUTE ACCESS: /${id.toUpperCase()}...`;
|
||||
|
||||
if (termInstance.value) {
|
||||
termInstance.value.echo(`\n[[b;green;]>] NAVIGATING TO /${id.toUpperCase()}... INITIALIZING PIPELINE.`);
|
||||
termInstance.value.echo(`\n[[b;var(--tui-color);]>] NAVIGATING TO /${id.toUpperCase()}... INITIALIZING PIPELINE.`);
|
||||
}
|
||||
|
||||
const interval = setInterval(() => {
|
||||
@@ -218,7 +228,7 @@ const changeMenu = (id) => {
|
||||
clearInterval(interval);
|
||||
|
||||
if (termInstance.value) {
|
||||
termInstance.value.echo(`[[b;green;][SUCCESS]] COMPONENT LOADED PERFECTLY.`);
|
||||
termInstance.value.echo(`[[b;var(--tui-color);][SUCCESS]] COMPONENT LOADED PERFECTLY.`);
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
@@ -308,7 +318,7 @@ const handleLoginSubmit = async () => {
|
||||
authToken.value = response.data.token;
|
||||
|
||||
if (termInstance.value) {
|
||||
termInstance.value.echo(`[[b;green;][SUCCESS]] ACCESS GRANTED. CREDENTIALS VERIFIED.`);
|
||||
termInstance.value.echo(`[[b;var(--tui-color);][SUCCESS]] ACCESS GRANTED. CREDENTIALS VERIFIED.`);
|
||||
}
|
||||
|
||||
overlayProgress.value = 100;
|
||||
@@ -364,21 +374,75 @@ onMounted(() => {
|
||||
.project-item,
|
||||
.about-text,
|
||||
.contact-form,
|
||||
.theme-selector,
|
||||
:deep(.terminal),
|
||||
:deep(.terminal span) {
|
||||
font-family: 'JetBrains Mono', monospace !important;
|
||||
}
|
||||
|
||||
/* 🌟 [테마 마스터 서버 변수 선언] */
|
||||
/* 🟢 테마 1: 오리지널 P3 녹색 인광 시스템 */
|
||||
.theme-green {
|
||||
--tui-color: #00ff00;
|
||||
--tui-dim: #008800;
|
||||
--tui-glow: rgba(0, 255, 0, 0.6);
|
||||
--tui-border: rgba(0, 255, 0, 0.2);
|
||||
}
|
||||
/* 🟠 테마 2: 추억의 허큘리스 플라즈마 호박색(Amber) 단색 시스템 */
|
||||
.theme-amber {
|
||||
--tui-color: #ffb000;
|
||||
--tui-dim: #aa6600;
|
||||
--tui-glow: rgba(255, 176, 0, 0.6);
|
||||
--tui-border: rgba(255, 176, 0, 0.2);
|
||||
}
|
||||
/* ⚪ 테마 3: IBM 오리지널 VGA 단색 회색/흰색 시스템 */
|
||||
.theme-vga {
|
||||
--tui-color: #e2e8f0;
|
||||
--tui-dim: #718096;
|
||||
--tui-glow: rgba(226, 232, 240, 0.4);
|
||||
--tui-border: rgba(226, 232, 240, 0.2);
|
||||
}
|
||||
/* 🔵 테마 4: 화려한 레트로 사이버 청록색(CGA/EGA Cyan) 시스템 */
|
||||
.theme-ega {
|
||||
--tui-color: #00ffff;
|
||||
--tui-dim: #008b8b;
|
||||
--tui-glow: rgba(0, 255, 255, 0.6);
|
||||
--tui-border: rgba(0, 255, 255, 0.2);
|
||||
}
|
||||
</style>
|
||||
|
||||
<style scoped>
|
||||
/* 하단 임베디드 터미널 내부 컬러까지 실시간 매핑 연동 */
|
||||
:deep(.terminal), :deep(.terminal span) {
|
||||
--color: var(--tui-color) !important;
|
||||
text-shadow: 0 0 5px var(--tui-glow) !important;
|
||||
}
|
||||
|
||||
.homepage-wrapper {
|
||||
background-color: #050505;
|
||||
color: #00ff00;
|
||||
color: var(--tui-color); /* 덮어쓰기 */
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* 🟢 [NEW] GNB 테마 셀렉터 스타일 */
|
||||
.theme-selector {
|
||||
background: #111;
|
||||
border: 1px solid var(--tui-border);
|
||||
color: var(--tui-color);
|
||||
font-size: 11px;
|
||||
padding: 3px 6px;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
transition: 0.3s;
|
||||
box-shadow: 0 0 4px var(--tui-border);
|
||||
}
|
||||
.theme-selector:hover {
|
||||
border-color: var(--tui-color);
|
||||
box-shadow: 0 0 8px var(--tui-glow);
|
||||
}
|
||||
|
||||
/* --- GNB --- */
|
||||
.auth-nav {
|
||||
display: flex;
|
||||
@@ -386,38 +450,39 @@ onMounted(() => {
|
||||
align-items: center;
|
||||
padding: 15px 40px;
|
||||
background: #000;
|
||||
border-bottom: 1px solid rgba(0, 255, 0, 0.2);
|
||||
border-bottom: 1px solid var(--tui-border);
|
||||
}
|
||||
.nav-left { display: flex; align-items: center; gap: 15px; }
|
||||
.nav-menu { display: flex; gap: 20px; }
|
||||
.menu-btn {
|
||||
background: none; border: none; color: #008800;
|
||||
background: none; border: none; color: var(--tui-dim);
|
||||
font-size: 16px; cursor: pointer;
|
||||
transition: 0.3s;
|
||||
}
|
||||
.menu-btn:hover, .menu-btn.active { color: #00ff00; text-shadow: 0 0 10px #00ff00; }
|
||||
.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; }
|
||||
|
||||
.nav-item {
|
||||
color: #00ff00 !important;
|
||||
color: var(--tui-color) !important;
|
||||
text-decoration: none;
|
||||
background: none;
|
||||
border: 1px solid #00ff00 !important;
|
||||
border: 1px solid var(--tui-color) !important;
|
||||
padding: 6px 18px;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
|
||||
box-shadow: 0 0 5px var(--tui-border);
|
||||
transition: 0.3s;
|
||||
}
|
||||
.nav-item:hover, .nav-item.active-auth {
|
||||
background: rgba(0, 255, 0, 0.2) !important;
|
||||
color: #00ff00 !important;
|
||||
box-shadow: 0 0 10px #00ff00;
|
||||
background: var(--tui-border) !important;
|
||||
color: var(--tui-color) !important;
|
||||
box-shadow: 0 0 10px var(--tui-color);
|
||||
}
|
||||
.user-info { color: #008800 !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.secure-mode { background: #00ff00; box-shadow: 0 0 8px #00ff00; }
|
||||
.status-dot.secure-mode { background: var(--tui-color); box-shadow: 0 0 8px var(--tui-color); }
|
||||
|
||||
/* --- 컨텐츠 영역 --- */
|
||||
.content-area {
|
||||
@@ -427,9 +492,8 @@ onMounted(() => {
|
||||
flex-direction: column;
|
||||
}
|
||||
.sub-page { max-width: 1000px; margin: 0 auto; padding-top: 15px; width: 100%; }
|
||||
.page-title { border-bottom: 1px solid #113311; padding-bottom: 10px; margin-bottom: 20px; color: #00ff00;}
|
||||
.page-title { border-bottom: 1px solid var(--tui-border); padding-bottom: 10px; margin-bottom: 20px; color: var(--tui-color);}
|
||||
|
||||
/* 메인 홈 아스키 전광판 레이아웃 */
|
||||
.main-page {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@@ -466,7 +530,7 @@ onMounted(() => {
|
||||
margin: 0 auto;
|
||||
width: max-content;
|
||||
|
||||
color: #00ff00 !important;
|
||||
color: var(--tui-color) !important;
|
||||
font-size: 14px;
|
||||
line-height: 1.2;
|
||||
border: none;
|
||||
@@ -497,43 +561,43 @@ onMounted(() => {
|
||||
width: 100%;
|
||||
background: #000;
|
||||
padding: 10px;
|
||||
border: 1px solid #113311;
|
||||
border: 1px solid var(--tui-border);
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
transition: 0.3s;
|
||||
}
|
||||
.video-card:hover { border-color: #00ff00; box-shadow: 0 0 10px rgba(0, 255, 0, 0.3); }
|
||||
.video-title { color: #00aa00; margin-top: 10px; font-size: 14px; height: 40px; overflow: hidden; font-family: sans-serif; }
|
||||
.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; }
|
||||
iframe { width: 100%; height: 180px; border-radius: 4px; }
|
||||
|
||||
/* 보안 로그인 프레임 */
|
||||
.login-terminal-frame {
|
||||
max-width: 550px; margin: 40px auto;
|
||||
border: 1px dashed #00ff00; padding: 35px;
|
||||
background: #020a02; box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
|
||||
border: 1px dashed var(--tui-color); padding: 35px;
|
||||
background: #020a02; box-shadow: 0 0 15px var(--tui-border);
|
||||
}
|
||||
.login-gate-title { color: #00ff00; font-size: 20px; margin-bottom: 10px; font-weight: bold;}
|
||||
.login-gate-desc { color: #008800; font-size: 12px; margin-bottom: 30px; line-height: 1.4; }
|
||||
.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-form-form { display: flex; flex-direction: column; gap: 20px; }
|
||||
.login-input-group { display: flex; align-items: center; border-bottom: 1px solid #005500; padding-bottom: 5px; }
|
||||
.login-label { width: 120px; color: #00ff00; font-weight: bold; font-size: 14px; }
|
||||
.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-input {
|
||||
flex: 1; background: none; border: none; color: #00ff00;
|
||||
flex: 1; background: none; border: none; color: var(--tui-color);
|
||||
font-size: 15px; outline: none;
|
||||
}
|
||||
.login-submit-btn {
|
||||
margin-top: 15px; background: none; border: 1px solid #00ff00;
|
||||
color: #00ff00; padding: 12px;
|
||||
margin-top: 15px; background: none; border: 1px solid var(--tui-color);
|
||||
color: var(--tui-color); padding: 12px;
|
||||
font-size: 14px; font-weight: bold; cursor: pointer; transition: 0.3s;
|
||||
}
|
||||
.login-submit-btn:hover { background: #00ff00; color: #000; box-shadow: 0 0 15px #00ff00; }
|
||||
.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-item { border: 1px solid #113311; padding: 15px; background: #080808; }
|
||||
.item-header { font-weight: bold; margin-bottom: 10px; color: #00ff00; }
|
||||
.about-text { line-height: 2; color: #00cc00;}
|
||||
.contact-form { line-height: 2; color: #00cc00;}
|
||||
.project-item { border: 1px solid var(--tui-border); padding: 15px; background: #080808; }
|
||||
.item-header { font-weight: bold; margin-bottom: 10px; color: var(--tui-color); }
|
||||
.about-text { line-height: 2; color: var(--tui-dim);}
|
||||
.contact-form { line-height: 2; color: var(--tui-dim);}
|
||||
|
||||
/* 애니메이션 트랜지션 */
|
||||
.fade-enter-active, .fade-leave-active { transition: opacity 0.25s ease; }
|
||||
@@ -545,7 +609,7 @@ iframe { width: 100%; height: 180px; border-radius: 4px; }
|
||||
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-status { color: #00aa00; 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::before {
|
||||
content: " "; display: block; position: absolute; top: 0; left: 0; bottom: 0; right: 0;
|
||||
@@ -554,12 +618,7 @@ iframe { width: 100%; height: 180px; border-radius: 4px; }
|
||||
}
|
||||
.terminal-box { width: 100%; height: 100%; padding: 10px; }
|
||||
|
||||
:deep(.terminal), :deep(.terminal span) {
|
||||
--color: #33ff33 !important;
|
||||
text-shadow: 0 0 5px rgba(51, 255, 51, 0.6) !important;
|
||||
}
|
||||
|
||||
/* 📱 반응형 분기점 (모바일 전체 레이아웃 짤림 디버깅 패치) */
|
||||
/* 📱 반응형 분기점 */
|
||||
@media screen and (max-width: 1100px) {
|
||||
#videos-container { grid-template-columns: repeat(2, 1fr); }
|
||||
.project-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
@@ -568,15 +627,12 @@ iframe { width: 100%; height: 180px; border-radius: 4px; }
|
||||
#videos-container { grid-template-columns: 1fr; }
|
||||
.project-grid { grid-template-columns: 1fr; }
|
||||
|
||||
/* 🟢 1) GNB 세로 배치 시 각 구성원이 정중앙 정렬되고 여백을 최적화하도록 보정 */
|
||||
.auth-nav {
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
padding: 15px 20px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* 🟢 2) 모바일 가로폭이 아주 협소할 때 상단 메뉴 버튼들이 댕강 잘리는 것을 막기 위한 자동 유연 래핑 */
|
||||
.nav-menu {
|
||||
display: flex;
|
||||
gap: 12px 16px;
|
||||
@@ -584,19 +640,10 @@ iframe { width: 100%; height: 180px; border-radius: 4px; }
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
.menu-btn {
|
||||
font-size: 14px; /* 모바일 맞춤 폰트 다이어트 */
|
||||
}
|
||||
.auth-group {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
margin-top: 5px;
|
||||
}
|
||||
.nav-item {
|
||||
margin: 0 6px;
|
||||
}
|
||||
.menu-btn { font-size: 14px; }
|
||||
.auth-group { width: 100%; justify-content: center; margin-top: 5px; }
|
||||
.nav-item { margin: 0 6px; }
|
||||
|
||||
/* 쾌적한 모바일 가로 스크롤 뷰 복구 */
|
||||
.ascii-container {
|
||||
width: 100%;
|
||||
overflow-x: auto !important;
|
||||
@@ -619,34 +666,30 @@ iframe { width: 100%; height: 180px; border-radius: 4px; }
|
||||
max-height: 999999px !important;
|
||||
}
|
||||
|
||||
/* 🟢 3) [★핵심 패치] 하단 터미널 모니터 프레임 모바일 대적용
|
||||
PC용 300px 높이와 40px이라는 과도한 사이드 마진이 화면 전체 레이아웃을 찌그러뜨리고 잘리게 만들었던 원인입니다.
|
||||
모바일에서는 높이를 슬림화(180px)하고 마진을 대폭 압축하여 메인 스페이스 확보 완료. */
|
||||
.crt-monitor-frame {
|
||||
height: 180px !important;
|
||||
margin: 10px 15px 15px !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 once-cyber-glitch-wobble {
|
||||
0%, 25% { transform: translate(0) scale(1) skewX(0deg); color: #00ff00 !important; text-shadow: 0 0 8px rgba(0, 255, 0, 0.7) !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; }
|
||||
27% { transform: translate(3px, -1.5px) skewX(-2deg); color: #00ff00 !important; }
|
||||
27% { transform: translate(3px, -1.5px) skewX(-2deg); color: var(--tui-color) !important; }
|
||||
28% { transform: translate(-5px, 0) skewX(10deg); color: #ff00ff !important; text-shadow: -3px 0 magenta, 3px 0 cyan;}
|
||||
29% { transform: translate(5px, 0) skewX(-10deg); color: #00ffff !important; text-shadow: 3px 0 magenta, -3px 0 cyan;}
|
||||
30% { transform: translate(0); color: #00ff00 !important; text-shadow: 0 0 15px rgba(0, 255, 0, 1) !important;}
|
||||
31%, 50% { transform: translate(0); color: #00ff00 !important; text-shadow: 0 0 8px rgba(0, 255, 0, 0.7) !important;}
|
||||
30% { transform: translate(0); color: var(--tui-color) !important; text-shadow: 0 0 15px var(--tui-color) !important;}
|
||||
31%, 50% { transform: translate(0); color: var(--tui-color) !important; text-shadow: 0 0 8px var(--tui-glow) !important;}
|
||||
51% { transform: scale(1.05) skewY(1deg); color: #ffffff !important; opacity: 0.05; }
|
||||
53% { opacity: 1; transform: translate(0); color: #00ffff !important; text-shadow: 0 0 20px #00ffff, 0 0 40px rgba(0, 255, 255, 0.8) !important; }
|
||||
|
||||
/* 🌟 [복구 시점 고정] 부활 연출 이후 최종 색상도 선택한 테마 변수(--tui-color)에 무조건 완벽 연동되도록 매핑 */
|
||||
53% { opacity: 1; transform: translate(0); color: var(--tui-color) !important; text-shadow: 0 0 20px var(--tui-color), 0 0 40px var(--tui-glow) !important; }
|
||||
90% { transform: translate(-2px, 1px); text-shadow: 2px 0 red, -2px 0 blue;}
|
||||
92% { transform: translate(2px, -1px); text-shadow: -2px 0 red, 2px 0 blue;}
|
||||
95% { transform: translate(0); color: #00ffff !important; text-shadow: 0 0 20px #00ffff !important;}
|
||||
100% { transform: translate(0) scale(1) skewX(0deg); color: #00ffff !important; text-shadow: 0 0 15px #00ffff, 0 0 30px rgba(0, 255, 255, 0.7) !important; opacity: 1; }
|
||||
95% { transform: translate(0); color: var(--tui-color) !important; text-shadow: 0 0 20px var(--tui-color) !important;}
|
||||
100% { transform: translate(0) scale(1) skewX(0deg); color: var(--tui-color) !important; text-shadow: 0 0 15px var(--tui-color), 0 0 30px var(--tui-glow) !important; opacity: 1; }
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user