mirror of
https://github.com/headporter81/specialsource-homepage-frontend.git
synced 2026-12-06 07:11:02 +09:00
fix : main banner modify
This commit is contained in:
1 parent
aa92618ee6
commit
ef847061eb
6 files changed
+466
-682
No files matched your search
+25
-321
@@ -14,10 +14,12 @@
|
||||
</div>
|
||||
|
||||
<select v-model="activeTheme" class="theme-selector">
|
||||
<option value="green">P3_GREEN (기본)</option>
|
||||
<option value="amber">HERCULES (호박)</option>
|
||||
<option value="vga">VGA_GRAY (회색)</option>
|
||||
<option value="ega">EGA_CYAN (청록)</option>
|
||||
<option value="green">IBM 5151 (그린)</option>
|
||||
<option value="amber">ZVM-1240 (호박)</option>
|
||||
<option value="vga">IBM 8503 (회색)</option>
|
||||
<option value="ega">IBM 5154 (청록)</option>
|
||||
<option value="white">VT220 (백색)</option>
|
||||
<option value="plasma">GRiD COMPASS (플라즈마)</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -49,7 +51,9 @@
|
||||
|
||||
<div v-if="activeMenu === 'main'" class="sub-page main-page" key="main">
|
||||
<div class="ascii-container">
|
||||
<pre class="ascii-art" v-html="formattedAscii"></pre>
|
||||
<div class="ascii-clip">
|
||||
<pre class="ascii-art" v-html="formattedAscii"></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -148,6 +152,12 @@
|
||||
<TuiProgressBar :progress="overlayProgress" :status="overlayStatus" />
|
||||
</div>
|
||||
</transition>
|
||||
|
||||
<transition name="fade">
|
||||
<div v-if="systemAlert.show" class="tui-global-overlay" @click.self="systemAlert.show = false">
|
||||
<TuiAlert :message="systemAlert.message" @close="systemAlert.show = false" />
|
||||
</div>
|
||||
</transition>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -155,6 +165,7 @@
|
||||
import { ref, onMounted, onUnmounted, computed, watch } from 'vue';
|
||||
import axios from 'axios';
|
||||
import TuiProgressBar from '@/components/TuiProgressBar.vue';
|
||||
import TuiAlert from '@/components/TuiAlert.vue';
|
||||
|
||||
const videos = ref([]);
|
||||
const terminalRef = ref(null);
|
||||
@@ -166,7 +177,7 @@ const loginPw = ref('');
|
||||
const activeMenu = ref('main');
|
||||
const authToken = ref(localStorage.getItem('token'));
|
||||
const currentUsername = ref(localStorage.getItem('username') || '');
|
||||
const VALID_THEMES = ['green', 'amber', 'vga', 'ega'];
|
||||
const VALID_THEMES = ['green', 'amber', 'vga', 'ega', 'white', 'plasma'];
|
||||
const storedTheme = localStorage.getItem('theme');
|
||||
const activeTheme = ref(VALID_THEMES.includes(storedTheme) ? storedTheme : 'green');
|
||||
|
||||
@@ -178,6 +189,11 @@ const isProcessing = ref(false);
|
||||
const overlayProgress = ref(0);
|
||||
const overlayStatus = ref('');
|
||||
|
||||
const systemAlert = ref({ show: false, message: '' });
|
||||
const showSystemAlert = (message) => {
|
||||
systemAlert.value = { show: true, message };
|
||||
};
|
||||
|
||||
const todayUnique = ref(0);
|
||||
const activeNow = ref(0);
|
||||
let analyticsTimer = null;
|
||||
@@ -327,7 +343,7 @@ const fetchVideos = async () => {
|
||||
};
|
||||
|
||||
const openVideo = (id) => window.open(`https://www.youtube.com/watch?v=${id}`);
|
||||
const handleRegister = () => alert("회원가입은 현재 관리자 승인제로 운영됩니다.");
|
||||
const handleRegister = () => showSystemAlert("회원가입은 현재 관리자 승인제로 운영됩니다.");
|
||||
|
||||
const handleLogout = () => {
|
||||
localStorage.removeItem('token');
|
||||
@@ -343,7 +359,7 @@ const handleLogout = () => {
|
||||
|
||||
const handleLoginSubmit = async () => {
|
||||
if (!loginId.value || !loginPw.value) {
|
||||
alert("아이디와 비밀번호를 모두 입력해 주세요.");
|
||||
showSystemAlert("아이디와 비밀번호를 모두 입력해 주세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -400,7 +416,7 @@ const handleLoginSubmit = async () => {
|
||||
if (termInstance.value) {
|
||||
termInstance.value.echo(`[[b;red;][CRITICAL ERROR]] ACCESS DENIED! INVALID ACCESS KEY.`);
|
||||
}
|
||||
alert("인증에 실패했습니다. 액세스 키를 확인하세요.");
|
||||
showSystemAlert("인증에 실패했습니다. 액세스 키를 확인하세요.");
|
||||
}
|
||||
};
|
||||
|
||||
@@ -505,315 +521,3 @@ onUnmounted(() => {
|
||||
if (analyticsTimer) clearInterval(analyticsTimer);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&display=swap');
|
||||
|
||||
.homepage-wrapper,
|
||||
.menu-btn,
|
||||
.nav-item,
|
||||
.terminal-box,
|
||||
.tui-global-overlay,
|
||||
.login-terminal-frame,
|
||||
.project-item,
|
||||
.about-text,
|
||||
.contact-form,
|
||||
.theme-selector,
|
||||
.nav-stats,
|
||||
.server-badge,
|
||||
:deep(.terminal),
|
||||
:deep(.terminal span) {
|
||||
font-family: 'JetBrains Mono', monospace !important;
|
||||
}
|
||||
|
||||
/* 변수 모음 */
|
||||
.theme-green {
|
||||
--tui-color: #00ff00;
|
||||
--tui-dim: #008800;
|
||||
--tui-glow: rgba(0, 255, 0, 0.6);
|
||||
--tui-border: rgba(0, 255, 0, 0.2);
|
||||
}
|
||||
.theme-amber {
|
||||
--tui-color: #ffb000;
|
||||
--tui-dim: #aa6600;
|
||||
--tui-glow: rgba(255, 176, 0, 0.6);
|
||||
--tui-border: rgba(255, 176, 0, 0.2);
|
||||
}
|
||||
.theme-vga {
|
||||
--tui-color: #e2e8f0;
|
||||
--tui-dim: #718096;
|
||||
--tui-glow: rgba(226, 232, 240, 0.4);
|
||||
--tui-border: rgba(226, 232, 240, 0.2);
|
||||
}
|
||||
.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: var(--tui-color);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
.nav-stats {
|
||||
font-size: 13px;
|
||||
color: var(--tui-color);
|
||||
font-weight: bold;
|
||||
border: 1px dashed var(--tui-border);
|
||||
padding: 3px 10px;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.pulse-text {
|
||||
color: var(--tui-color);
|
||||
font-weight: bold;
|
||||
animation: textPulse 2s infinite ease-in-out;
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.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);
|
||||
}
|
||||
|
||||
.server-badge {
|
||||
font-size: 11px;
|
||||
font-weight: bold;
|
||||
padding: 3px 8px;
|
||||
border: 1px solid currentColor;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
letter-spacing: 1px;
|
||||
border-radius: 2px;
|
||||
transition: 0.3s;
|
||||
}
|
||||
.server-badge.nas { color: var(--tui-color); text-shadow: 0 0 5px var(--tui-glow); border-color: var(--tui-border); }
|
||||
.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); }
|
||||
.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); }
|
||||
.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 --- */
|
||||
.auth-nav {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 12px 20px;
|
||||
padding: 15px clamp(12px, 4vw, 40px);
|
||||
background: #000;
|
||||
border-bottom: 1px solid var(--tui-border);
|
||||
}
|
||||
.nav-left { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; }
|
||||
.nav-menu { display: flex; flex-wrap: wrap; gap: 20px; }
|
||||
.menu-btn { 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); }
|
||||
.auth-group { display: flex; align-items: center; flex-wrap: wrap; }
|
||||
|
||||
.nav-item {
|
||||
color: var(--tui-color) !important; text-decoration: none; background: none;
|
||||
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 {
|
||||
background: var(--tui-border) !important; 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;}
|
||||
.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); }
|
||||
|
||||
/* --- 컨텐츠 영역 --- */
|
||||
.content-area { flex: 1; padding: 8px 20px; min-height: 220px; overflow-y: auto; display: flex; flex-direction: column; }
|
||||
.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);}
|
||||
|
||||
.main-page { display: flex; justify-content: center; align-items: center; flex: 1; position: relative; }
|
||||
|
||||
.tui-global-overlay {
|
||||
position: fixed; top: 0; left: 0; 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 { width: 100%; overflow: auto; padding: 6px 20px; box-sizing: border-box; position: relative; }
|
||||
.ascii-art {
|
||||
font-weight: bold; white-space: pre; display: block; 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;
|
||||
}
|
||||
|
||||
:deep(.bg-block) { color: #050505 !important; text-shadow: none !important; }
|
||||
|
||||
/* 📺 유튜브 그리드 레이아웃 */
|
||||
#videos-container {
|
||||
display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
|
||||
padding: 10px 20px; max-width: 1300px; margin: 0 auto; width: 100%; box-sizing: border-box;
|
||||
}
|
||||
.video-card {
|
||||
width: 100%; background: #000; padding: 10px; border: 1px solid var(--tui-border); box-sizing: border-box;
|
||||
position: relative; cursor: pointer; transition: 0.3s;
|
||||
}
|
||||
.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 var(--tui-color); padding: 35px;
|
||||
background: #020a02; box-shadow: 0 0 15px var(--tui-border); box-sizing: border-box;
|
||||
}
|
||||
.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 var(--tui-dim); padding-bottom: 5px; }
|
||||
.login-label { width: 120px; color: var(--tui-color); font-weight: bold; font-size: 14px; flex-shrink: 0; }
|
||||
.login-input { flex: 1; background: none; border: none; color: var(--tui-color); font-size: 15px; outline: none; min-width: 0; }
|
||||
.login-submit-btn {
|
||||
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: 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 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; }
|
||||
.fade-enter-from, .fade-leave-to { opacity: 0; }
|
||||
|
||||
/* 하단 CRT 터미널 */
|
||||
.crt-monitor-frame { height: 300px; margin: 6px 40px 14px; 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: 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;
|
||||
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;
|
||||
}
|
||||
.terminal-box { width: 100%; height: 100%; padding: 10px; box-sizing: border-box; }
|
||||
|
||||
|
||||
/* ==============================================================
|
||||
📱 반응형 분기점 (Responsive Design)
|
||||
============================================================== */
|
||||
@media screen and (max-width: 1100px) {
|
||||
#videos-container { grid-template-columns: repeat(2, 1fr); }
|
||||
.project-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
}
|
||||
|
||||
@media screen and (max-width: 650px) {
|
||||
/* 1. 레이아웃 & 패딩 초기화 */
|
||||
.content-area { padding: 10px; }
|
||||
#videos-container { grid-template-columns: 1fr; padding: 10px; }
|
||||
.project-grid { grid-template-columns: 1fr; }
|
||||
|
||||
/* 2. 네비게이션바 줄바꿈 허용 (화면 밖으로 넘어가지 않게 방어) */
|
||||
.auth-nav {
|
||||
flex-direction: column;
|
||||
gap: 15px;
|
||||
padding: 15px 10px; /* 좌우 패딩 줄임 */
|
||||
align-items: stretch; /* 전체 너비 채우기 */
|
||||
}
|
||||
.nav-left {
|
||||
flex-wrap: wrap; /* 배지, 통계 등이 좁으면 아래로 줄바꿈 */
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
gap: 10px;
|
||||
width: 100%;
|
||||
}
|
||||
.nav-menu {
|
||||
display: flex;
|
||||
gap: 12px 16px;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
}
|
||||
.menu-btn { font-size: 14px; }
|
||||
|
||||
.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%;
|
||||
border-bottom: 1px solid var(--tui-dim);
|
||||
padding-bottom: 5px;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* 4. ASCII 아트 가독성 및 가로 스크롤 허용 */
|
||||
.ascii-container {
|
||||
padding: 10px 5px;
|
||||
}
|
||||
.ascii-art {
|
||||
font-size: 9px !important; /* 모바일 사이즈에 맞게 축소 */
|
||||
line-height: 1.2 !important;
|
||||
}
|
||||
|
||||
/* 5. 터미널 창 모바일 최적화 */
|
||||
.crt-monitor-frame {
|
||||
height: 180px !important;
|
||||
margin: 6px 10px !important;
|
||||
}
|
||||
.monitor-header { padding: 4px 10px; font-size: 10px; }
|
||||
}
|
||||
|
||||
@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 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 {
|
||||
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: 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: 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: 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: 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