mirror of
https://github.com/headporter81/specialsource-homepage-frontend.git
synced 2026-10-07 15:21:10 +09:00
This commit is contained in:
+32
-5
@@ -125,10 +125,10 @@ body, html { margin: 0; padding: 0; width: 100%; height: 100%; background-color:
|
||||
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; }
|
||||
.server-badge.nas, .dash-chip.nas { color: var(--tui-color); text-shadow: 0 0 5px var(--tui-glow); border-color: var(--tui-border); }
|
||||
.server-badge.firebase_night, .dash-chip.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, .dash-chip.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, .dash-chip.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 {
|
||||
@@ -164,7 +164,7 @@ body, html { margin: 0; padding: 0; width: 100%; height: 100%; background-color:
|
||||
.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; }
|
||||
.main-page { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; flex: 1; position: relative; }
|
||||
|
||||
.tui-global-overlay {
|
||||
position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
|
||||
@@ -183,6 +183,28 @@ body, html { margin: 0; padding: 0; width: 100%; height: 100%; background-color:
|
||||
|
||||
.bg-block { color: #050505 !important; text-shadow: none !important; }
|
||||
|
||||
/* 대시보드 패널 — ASCII 글로우 인트로(2.5s)가 끝난 뒤 뒤이어 등장 */
|
||||
.dash-grid {
|
||||
display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px;
|
||||
width: 100%; max-width: 720px; padding: 0 20px; box-sizing: border-box;
|
||||
opacity: 0; animation: dashReveal 0.6s ease-out 2.5s forwards;
|
||||
}
|
||||
.dash-panel {
|
||||
background: rgba(0, 0, 0, 0.5); border: 1px solid var(--tui-border); border-radius: 3px;
|
||||
padding: 12px 14px;
|
||||
}
|
||||
.dash-panel h4 {
|
||||
margin: 0 0 10px; font-size: 10.5px; letter-spacing: 0.1em; color: var(--tui-dim); font-weight: 500;
|
||||
}
|
||||
.dash-stat { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; font-size: 12.5px; margin-bottom: 6px; }
|
||||
.dash-stat:last-child { margin-bottom: 0; }
|
||||
.dash-stat span { color: var(--tui-dim); }
|
||||
.dash-stat b { color: var(--tui-color); font-weight: 600; }
|
||||
.dash-chip {
|
||||
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; display: inline-block;
|
||||
}
|
||||
|
||||
/* 📺 유튜브 그리드 레이아웃 */
|
||||
#videos-container {
|
||||
display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
|
||||
@@ -430,6 +452,10 @@ iframe { width: 100%; height: 180px; border-radius: 4px; }
|
||||
font-size: 9px !important; /* 모바일 사이즈에 맞게 축소 */
|
||||
line-height: 1.2 !important;
|
||||
}
|
||||
.dash-grid {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
/* 5. 터미널 창 모바일 최적화 */
|
||||
.crt-monitor-frame {
|
||||
@@ -454,6 +480,7 @@ iframe { width: 100%; height: 180px; border-radius: 4px; }
|
||||
@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 dashReveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
|
||||
@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; }
|
||||
|
||||
+29
-1
@@ -55,6 +55,25 @@
|
||||
<pre class="ascii-art" v-html="formattedAscii"></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dash-grid">
|
||||
<div v-if="isLoggedIn" class="dash-panel">
|
||||
<h4>LIVE SESSION</h4>
|
||||
<div class="dash-stat"><span>LIVE</span><b class="pulse-text">{{ activeNow }}</b></div>
|
||||
<div class="dash-stat"><span>TODAY</span><b>{{ todayUnique }}</b></div>
|
||||
</div>
|
||||
|
||||
<div class="dash-panel">
|
||||
<h4>SERVER SOURCE</h4>
|
||||
<span :class="['dash-chip', currentServerSource]">[{{ currentServerSourceDisplay }}]</span>
|
||||
</div>
|
||||
|
||||
<div class="dash-panel">
|
||||
<h4>SESSION</h4>
|
||||
<div class="dash-stat"><span>USER</span><b>{{ isLoggedIn ? currentUsername : 'anonymous' }}</b></div>
|
||||
<div class="dash-stat"><span>DISPLAY</span><b>{{ activeThemeLabel }}</b></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-else-if="activeMenu === 'youtube'" id="videos-container" key="youtube">
|
||||
@@ -177,9 +196,18 @@ 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', 'white', 'plasma'];
|
||||
const THEME_LABELS = {
|
||||
green: 'IBM 5151 (그린)',
|
||||
amber: 'ZVM-1240 (호박)',
|
||||
vga: 'IBM 8503 (회색)',
|
||||
ega: 'IBM 5154 (청록)',
|
||||
white: 'VT220 (백색)',
|
||||
plasma: 'GRiD COMPASS (플라즈마)'
|
||||
};
|
||||
const VALID_THEMES = Object.keys(THEME_LABELS);
|
||||
const storedTheme = localStorage.getItem('theme');
|
||||
const activeTheme = ref(VALID_THEMES.includes(storedTheme) ? storedTheme : 'green');
|
||||
const activeThemeLabel = computed(() => THEME_LABELS[activeTheme.value]);
|
||||
|
||||
watch(activeTheme, (theme) => {
|
||||
localStorage.setItem('theme', theme);
|
||||
|
||||
Reference in New Issue
Block a user