mirror of
https://github.com/headporter81/specialsource-homepage-frontend.git
synced 2026-10-07 15:21:10 +09:00
Compare commits
38
Commits
dev
...
2f9091ed70
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f9091ed70 | ||
|
|
1aa7086f51 | ||
|
|
ef847061eb | ||
|
|
22918fc366 | ||
|
|
aa92618ee6 | ||
|
|
9aa62a04ab | ||
|
|
8e2172f8b7 | ||
|
|
d9ff2b77cb | ||
|
|
15958b0a4b | ||
|
|
21e2e34d01 | ||
|
|
f65ea396b6 | ||
|
|
4bbc9380f3 | ||
|
|
911f1a171d | ||
|
|
ce94673981 | ||
|
|
3ec0a0dd5a | ||
|
|
d8dc09b4fe | ||
|
|
9581c89f28 | ||
|
|
bbb7386b48 | ||
|
|
0c1ea82adf | ||
|
|
4da6d0d8ca | ||
|
|
34c15fc4de | ||
|
|
926492b7b9 | ||
|
|
91a02c9527 | ||
|
|
30c5f74f05 | ||
|
|
ff6abf189e | ||
|
|
148a35d58b | ||
|
|
6cc02ce4ef | ||
|
|
53c8205b23 | ||
|
|
8921b43c8e | ||
|
|
1beac49b20 | ||
|
|
97341aceb8 | ||
|
|
4a321c96a1 | ||
|
|
206c14e9f1 | ||
|
|
2ff0bb7c74 | ||
|
|
722bb0328e | ||
|
|
f9dbb21aef | ||
|
|
2194826a00 | ||
|
|
3b98916680 |
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"projects": {
|
||||
"default": "specialsource-ba8f3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"hosting": {
|
||||
"public": "dist",
|
||||
"ignore": [
|
||||
"firebase.json",
|
||||
"**/.*",
|
||||
"**/node_modules/**"
|
||||
],
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "**",
|
||||
"destination": "/index.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,3 @@
|
||||
<template>
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<style>
|
||||
/* 전역 초기화 스타일 */
|
||||
body, html { margin: 0; padding: 0; width: 100%; height: 100%; background-color: #f1f5f9; }
|
||||
#app { width: 100%; height: 100%; }
|
||||
</style>
|
||||
@@ -3,44 +3,40 @@ import { computed } from 'vue';
|
||||
|
||||
// [Props 정의]
|
||||
const props = defineProps({
|
||||
// 현재 진행 값
|
||||
progress: {
|
||||
type: Number,
|
||||
required: true,
|
||||
default: 0
|
||||
},
|
||||
// 총량
|
||||
total: {
|
||||
type: Number,
|
||||
default: 100
|
||||
},
|
||||
// 하단에 표시할 상태 메시지
|
||||
status: {
|
||||
type: String,
|
||||
default: 'Initializing...'
|
||||
},
|
||||
// 막대의 총 글자 길이
|
||||
barLength: {
|
||||
type: Number,
|
||||
default: 30
|
||||
},
|
||||
username: {
|
||||
type: String,
|
||||
default: 'anonymous'
|
||||
}
|
||||
});
|
||||
|
||||
// [핵심 로직: Computed로 실시간 계산]
|
||||
|
||||
// 1. 퍼센트 계산 (0 ~ 100, 소수점 버림)
|
||||
// [진행률 및 바 문자열 계산식]
|
||||
const percentage = computed(() => {
|
||||
if (props.total <= 0) return 0;
|
||||
const percent = (props.progress / props.total) * 100;
|
||||
return Math.min(Math.round(percent), 100); // 100%를 넘지 않도록 제한
|
||||
return Math.min(Math.round(percent), 100);
|
||||
});
|
||||
|
||||
// 2. ASCII 막대 문자열 생성 (█░ 문자 조합)
|
||||
const barString = computed(() => {
|
||||
const filledCount = Math.round((props.barLength * percentage.value) / 100);
|
||||
const emptyCount = props.barLength - filledCount;
|
||||
|
||||
// '.repeat()'를 활용해 칼각 유지
|
||||
const filledBar = '█'.repeat(filledCount);
|
||||
const emptyBar = '░'.repeat(emptyCount);
|
||||
|
||||
@@ -51,7 +47,7 @@ const barString = computed(() => {
|
||||
<template>
|
||||
<div class="tui-window">
|
||||
<div class="tui-header">
|
||||
<span class="tui-prompt">porter@specialsource-nas:~$</span>
|
||||
<span class="tui-prompt">{{ username }}@specialsource-nas:~$</span>
|
||||
<span class="tui-cmd">deploy-service --watch</span>
|
||||
</div>
|
||||
|
||||
@@ -68,78 +64,3 @@ const barString = computed(() => {
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* [TUI 핵심 스타일 CSS] */
|
||||
|
||||
.tui-window {
|
||||
/* 레트로 터미널 배경색 및 초록색 글씨 */
|
||||
background-color: #000000;
|
||||
color: #33ff33; /* 형광 초록 */
|
||||
|
||||
/* ★가장 중요: 칼각을 위한 고정폭 폰트 설정 */
|
||||
font-family: 'Courier New', 'Fira Code', 'Monaco', monospace;
|
||||
|
||||
padding: 1.5rem;
|
||||
border-radius: 4px;
|
||||
border: 1px solid #33ff33;
|
||||
box-shadow: 0 0 15px rgba(51, 255, 51, 0.2);
|
||||
display: inline-block;
|
||||
min-width: 520px; /* 폰트에 따라 깨지지 않게 최소폭 지정 */
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tui-header {
|
||||
color: #aaaaaa; /* 프롬프트는 약간 흐리게 */
|
||||
margin-bottom: 1rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.tui-cmd {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.tui-bar-row {
|
||||
/* 막대가 스르륵 차오르는 느낌을 위한 자간 및 폰트 크기 조정 */
|
||||
font-size: 1.25rem;
|
||||
letter-spacing: 1px;
|
||||
|
||||
/* █와 ░의 높이를 맞추기 위해 white-space 설정 */
|
||||
white-space: pre;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.tui-bracket {
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
.tui-bar {
|
||||
/* 막대 문자 자체에 약간의 글로우 효과 */
|
||||
text-shadow: 0 0 5px rgba(51, 255, 51, 0.5);
|
||||
}
|
||||
|
||||
.tui-percent {
|
||||
color: #ffffff;
|
||||
margin-left: 0.75rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tui-status-row {
|
||||
margin-top: 1rem;
|
||||
font-size: 0.95rem;
|
||||
border-top: 1px dotted #444;
|
||||
padding-top: 0.75rem;
|
||||
}
|
||||
|
||||
.tui-label {
|
||||
color: #888888;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
|
||||
.tui-message {
|
||||
color: #ffffff;
|
||||
/* 메시지가 길어질 경우 대비 */
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
@@ -1,6 +1,7 @@
|
||||
import { createApp } from 'vue'
|
||||
import App from './App.vue'
|
||||
import router from './router' // 라우터 가져오기
|
||||
import './style.css' // 전역 스타일 (모든 페이지 공통 관리)
|
||||
|
||||
const app = createApp(App)
|
||||
app.use(router) // 라우터 연결
|
||||
|
||||
+434
-259
@@ -1,296 +1,471 @@
|
||||
:root {
|
||||
--text: #6b6375;
|
||||
--text-h: #08060d;
|
||||
--bg: #fff;
|
||||
--border: #e5e4e7;
|
||||
--code-bg: #f4f3ec;
|
||||
--accent: #aa3bff;
|
||||
--accent-bg: rgba(170, 59, 255, 0.1);
|
||||
--accent-border: rgba(170, 59, 255, 0.5);
|
||||
--social-bg: rgba(244, 243, 236, 0.5);
|
||||
--shadow:
|
||||
rgba(0, 0, 0, 0.1) 0 10px 15px -3px, rgba(0, 0, 0, 0.05) 0 4px 6px -2px;
|
||||
/* ==============================================================
|
||||
전역 스타일 (Global Styles)
|
||||
모든 페이지/컴포넌트의 스타일을 이 파일 한 곳에서 관리합니다.
|
||||
============================================================== */
|
||||
|
||||
--sans: system-ui, 'Segoe UI', Roboto, sans-serif;
|
||||
--heading: system-ui, 'Segoe UI', Roboto, sans-serif;
|
||||
--mono: ui-monospace, Consolas, monospace;
|
||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&display=swap');
|
||||
|
||||
font: 18px/145% var(--sans);
|
||||
letter-spacing: 0.18px;
|
||||
color-scheme: light dark;
|
||||
color: var(--text);
|
||||
background: var(--bg);
|
||||
font-synthesis: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
/* --- 전역 리셋 --- */
|
||||
body, html { margin: 0; padding: 0; width: 100%; height: 100%; background-color: #f1f5f9; }
|
||||
#app { width: 100%; height: 100%; }
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
font-size: 16px;
|
||||
}
|
||||
/* --- 폰트 강제 적용 대상 --- */
|
||||
.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,
|
||||
.terminal,
|
||||
.terminal span {
|
||||
font-family: 'JetBrains Mono', monospace !important;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--text: #9ca3af;
|
||||
--text-h: #f3f4f6;
|
||||
--bg: #16171d;
|
||||
--border: #2e303a;
|
||||
--code-bg: #1f2028;
|
||||
--accent: #c084fc;
|
||||
--accent-bg: rgba(192, 132, 252, 0.15);
|
||||
--accent-border: rgba(192, 132, 252, 0.5);
|
||||
--social-bg: rgba(47, 48, 58, 0.5);
|
||||
--shadow:
|
||||
rgba(0, 0, 0, 0.4) 0 10px 15px -3px, rgba(0, 0, 0, 0.25) 0 4px 6px -2px;
|
||||
}
|
||||
|
||||
#social .button-icon {
|
||||
filter: invert(1) brightness(2);
|
||||
}
|
||||
/* --- 테마 변수 모음 --- */
|
||||
.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);
|
||||
}
|
||||
.theme-white {
|
||||
--tui-color: #f4f4f0;
|
||||
--tui-dim: #9a9a94;
|
||||
--tui-glow: rgba(244, 244, 240, 0.5);
|
||||
--tui-border: rgba(244, 244, 240, 0.2);
|
||||
}
|
||||
.theme-plasma {
|
||||
--tui-color: #ff7300;
|
||||
--tui-dim: #b35100;
|
||||
--tui-glow: rgba(255, 115, 0, 0.6);
|
||||
--tui-border: rgba(255, 115, 0, 0.2);
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
/* ==============================================================
|
||||
메인 페이지 (Main.vue)
|
||||
============================================================== */
|
||||
.terminal, .terminal span {
|
||||
--color: var(--tui-color) !important;
|
||||
text-shadow: 0 0 5px var(--tui-glow) !important;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2 {
|
||||
font-family: var(--heading);
|
||||
font-weight: 500;
|
||||
color: var(--text-h);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 56px;
|
||||
letter-spacing: -1.68px;
|
||||
margin: 32px 0;
|
||||
@media (max-width: 1024px) {
|
||||
font-size: 36px;
|
||||
margin: 20px 0;
|
||||
}
|
||||
}
|
||||
h2 {
|
||||
font-size: 24px;
|
||||
line-height: 118%;
|
||||
letter-spacing: -0.24px;
|
||||
margin: 0 0 8px;
|
||||
@media (max-width: 1024px) {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
code,
|
||||
.counter {
|
||||
font-family: var(--mono);
|
||||
display: inline-flex;
|
||||
border-radius: 4px;
|
||||
color: var(--text-h);
|
||||
}
|
||||
|
||||
code {
|
||||
font-size: 15px;
|
||||
line-height: 135%;
|
||||
padding: 4px 8px;
|
||||
background: var(--code-bg);
|
||||
}
|
||||
|
||||
.counter {
|
||||
font-size: 16px;
|
||||
padding: 5px 10px;
|
||||
border-radius: 5px;
|
||||
color: var(--accent);
|
||||
background: var(--accent-bg);
|
||||
border: 2px solid transparent;
|
||||
transition: border-color 0.3s;
|
||||
margin-bottom: 24px;
|
||||
|
||||
&:hover {
|
||||
border-color: var(--accent-border);
|
||||
}
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.hero {
|
||||
position: relative;
|
||||
|
||||
.base,
|
||||
.framework,
|
||||
.vite {
|
||||
inset-inline: 0;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.base {
|
||||
width: 170px;
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.framework,
|
||||
.vite {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.framework {
|
||||
z-index: 1;
|
||||
top: 34px;
|
||||
height: 28px;
|
||||
transform: perspective(2000px) rotateZ(300deg) rotateX(44deg) rotateY(39deg)
|
||||
scale(1.4);
|
||||
}
|
||||
|
||||
.vite {
|
||||
z-index: 0;
|
||||
top: 107px;
|
||||
height: 26px;
|
||||
width: auto;
|
||||
transform: perspective(2000px) rotateZ(300deg) rotateX(40deg) rotateY(39deg)
|
||||
scale(0.8);
|
||||
}
|
||||
}
|
||||
|
||||
#app {
|
||||
width: 1126px;
|
||||
max-width: 100%;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
border-inline: 1px solid var(--border);
|
||||
min-height: 100svh;
|
||||
.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-x: auto; overflow-y: hidden; padding: 6px 20px; box-sizing: border-box; position: relative; }
|
||||
.ascii-clip { width: max-content; margin: 0 auto; overflow: hidden; }
|
||||
.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;
|
||||
}
|
||||
|
||||
.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; }
|
||||
|
||||
/* ==============================================================
|
||||
진행률 바 (TuiProgressBar.vue)
|
||||
============================================================== */
|
||||
.tui-window {
|
||||
background-color: #000000 !important;
|
||||
color: var(--tui-color) !important;
|
||||
font-family: 'JetBrains Mono', monospace !important;
|
||||
padding: 20px !important;
|
||||
border-radius: 4px !important;
|
||||
border: 1px solid var(--tui-color) !important;
|
||||
box-shadow: 0 0 15px var(--tui-border) !important;
|
||||
display: inline-block;
|
||||
min-width: 520px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#center {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 25px;
|
||||
place-content: center;
|
||||
place-items: center;
|
||||
flex-grow: 1;
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
padding: 32px 20px 24px;
|
||||
gap: 18px;
|
||||
}
|
||||
.tui-header {
|
||||
color: var(--tui-dim) !important;
|
||||
margin-bottom: 15px !important;
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
||||
#next-steps {
|
||||
display: flex;
|
||||
border-top: 1px solid var(--border);
|
||||
text-align: left;
|
||||
.tui-cmd {
|
||||
color: #ffffff !important;
|
||||
margin-left: 5px !important;
|
||||
}
|
||||
|
||||
& > div {
|
||||
flex: 1 1 0;
|
||||
padding: 32px;
|
||||
@media (max-width: 1024px) {
|
||||
padding: 24px 20px;
|
||||
}
|
||||
}
|
||||
.tui-bar-row {
|
||||
font-size: 20px !important;
|
||||
letter-spacing: 1px !important;
|
||||
white-space: pre !important;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
}
|
||||
|
||||
.icon {
|
||||
margin-bottom: 16px;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
.tui-bracket {
|
||||
color: var(--tui-dim) !important;
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
flex-direction: column;
|
||||
.tui-bar {
|
||||
color: var(--tui-color) !important;
|
||||
text-shadow: 0 0 5px var(--tui-glow) !important;
|
||||
}
|
||||
|
||||
.tui-percent {
|
||||
color: #ffffff !important;
|
||||
margin-left: 12px !important;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.tui-status-row {
|
||||
margin-top: 15px !important;
|
||||
font-size: 14px !important;
|
||||
border-top: 1px dotted var(--tui-border) !important;
|
||||
padding-top: 10px !important;
|
||||
}
|
||||
|
||||
.tui-label {
|
||||
color: var(--tui-dim) !important;
|
||||
margin-right: 8px !important;
|
||||
}
|
||||
|
||||
.tui-message {
|
||||
color: #ffffff !important;
|
||||
word-break: break-all !important;
|
||||
}
|
||||
|
||||
/* ==============================================================
|
||||
시스템 알림 (TuiAlert.vue) — alert() 공통 대체 컴포넌트
|
||||
============================================================== */
|
||||
.tui-alert-window {
|
||||
background-color: #000000 !important;
|
||||
color: var(--tui-color) !important;
|
||||
font-family: 'JetBrains Mono', monospace !important;
|
||||
padding: 25px !important;
|
||||
border-radius: 4px !important;
|
||||
border: 1px solid var(--tui-color) !important;
|
||||
box-shadow: 0 0 15px var(--tui-border) !important;
|
||||
min-width: 320px;
|
||||
max-width: 90vw;
|
||||
box-sizing: border-box;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
#docs {
|
||||
border-right: 1px solid var(--border);
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
border-right: none;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.tui-alert-header {
|
||||
color: var(--tui-dim) !important;
|
||||
margin-bottom: 15px !important;
|
||||
font-size: 13px !important;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
#next-steps ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
.tui-alert-body {
|
||||
color: #ffffff !important;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 20px;
|
||||
word-break: break-word;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.tui-alert-btn {
|
||||
background: none !important;
|
||||
border: 1px solid var(--tui-color) !important;
|
||||
color: var(--tui-color) !important;
|
||||
padding: 8px 24px !important;
|
||||
font-size: 13px !important;
|
||||
font-weight: bold !important;
|
||||
cursor: pointer;
|
||||
transition: 0.3s;
|
||||
font-family: 'JetBrains Mono', monospace !important;
|
||||
}
|
||||
.tui-alert-btn:hover {
|
||||
background: var(--tui-color) !important;
|
||||
color: #000 !important;
|
||||
box-shadow: 0 0 15px var(--tui-color);
|
||||
}
|
||||
|
||||
/* ==============================================================
|
||||
로그인 페이지 (Login.vue)
|
||||
============================================================== */
|
||||
.login-container { display: flex; justify-content: center; align-items: center; height: 100vh; background: #0f172a; }
|
||||
.login-box { background: white; padding: 40px; border-radius: 8px; width: 350px; text-align: center; }
|
||||
.login-box input { width: 100%; padding: 12px; margin: 10px 0; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 4px; }
|
||||
.login-box button { width: 100%; padding: 12px; background: #3b82f6; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
|
||||
.login-box button:hover { background: #2563eb; }
|
||||
.login-box .error { color: #ef4444; margin-top: 15px; font-size: 14px; }
|
||||
|
||||
/* ==============================================================
|
||||
📱 반응형 분기점 (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: 8px;
|
||||
margin: 32px 0 0;
|
||||
|
||||
.logo {
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--text-h);
|
||||
font-size: 16px;
|
||||
border-radius: 6px;
|
||||
background: var(--social-bg);
|
||||
display: flex;
|
||||
padding: 6px 12px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
text-decoration: none;
|
||||
transition: box-shadow 0.3s;
|
||||
|
||||
&:hover {
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.button-icon {
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
margin-top: 20px;
|
||||
gap: 12px 16px;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
|
||||
li {
|
||||
flex: 1 1 calc(50% - 8px);
|
||||
}
|
||||
|
||||
a {
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
}
|
||||
.menu-btn { font-size: 14px; }
|
||||
|
||||
#spacer {
|
||||
height: 88px;
|
||||
border-top: 1px solid var(--border);
|
||||
@media (max-width: 1024px) {
|
||||
height: 48px;
|
||||
}
|
||||
}
|
||||
.auth-group { width: 100%; justify-content: center; margin-top: 5px; flex-wrap: wrap; gap: 10px; }
|
||||
.nav-item { margin: 0; } /* 간격 조정 */
|
||||
|
||||
.ticks {
|
||||
position: relative;
|
||||
/* 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%;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -4.5px;
|
||||
border: 5px solid transparent;
|
||||
border-bottom: 1px solid var(--tui-dim);
|
||||
padding-bottom: 5px;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
&::before {
|
||||
left: 0;
|
||||
border-left-color: var(--border);
|
||||
/* 4. ASCII 아트 가독성 및 가로 스크롤 허용 */
|
||||
.ascii-container {
|
||||
padding: 10px 5px;
|
||||
}
|
||||
&::after {
|
||||
right: 0;
|
||||
border-right-color: var(--border);
|
||||
.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; }
|
||||
|
||||
/* 6. 진행률 바 모바일 최적화 */
|
||||
.tui-window {
|
||||
min-width: 90vw !important;
|
||||
padding: 15px !important;
|
||||
}
|
||||
.tui-bar-row {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* ==============================================================
|
||||
키프레임 애니메이션
|
||||
============================================================== */
|
||||
@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 2px var(--tui-color) !important; opacity: 1; }
|
||||
}
|
||||
|
||||
@@ -38,12 +38,3 @@ const handleLogin = async () => {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.login-container { display: flex; justify-content: center; align-items: center; height: 100vh; background: #0f172a; }
|
||||
.login-box { background: white; padding: 40px; border-radius: 8px; width: 350px; text-align: center; }
|
||||
input { width: 100%; padding: 12px; margin: 10px 0; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 4px; }
|
||||
button { width: 100%; padding: 12px; background: #3b82f6; color: white; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; }
|
||||
button:hover { background: #2563eb; }
|
||||
.error { color: #ef4444; margin-top: 15px; font-size: 14px; }
|
||||
</style>
|
||||
+231
-279
@@ -1,9 +1,26 @@
|
||||
<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>
|
||||
|
||||
<span :class="['server-badge', currentServerSource]">
|
||||
[{{ currentServerSourceDisplay }}]
|
||||
</span>
|
||||
|
||||
<div v-if="isLoggedIn" class="nav-stats">
|
||||
[LIVE:<span class="pulse-text">{{ activeNow }}</span>|TODAY:{{ todayUnique }}]
|
||||
</div>
|
||||
|
||||
<select v-model="activeTheme" class="theme-selector">
|
||||
<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>
|
||||
|
||||
<div class="nav-menu">
|
||||
@@ -34,21 +51,9 @@
|
||||
|
||||
<div v-if="activeMenu === 'main'" class="sub-page main-page" key="main">
|
||||
<div class="ascii-container">
|
||||
<pre class="ascii-art">
|
||||
███████╗██████╗ ███████╗ ██████╗██╗ █████╗ ██╗ ███████╗ ██████╗ ██╗ ██╗██████╗ ██████╗███████╗
|
||||
██╔════╝██╔══██╗██╔════╝██╔════╝██║██╔══██╗██║ ██╔════╝██╔═══██╗██║ ██║██╔══██╗██╔════╝██╔════╝
|
||||
███████╗██████╔╝█████╗ ██║ ██║███████║██║ ███████╗██║ ██║██║ ██║██████╔╝██║ █████╗
|
||||
╚════██║██╔═══╝ ██╔══╝ ██║ ██║██╔══██║██║ ╚════██║██║ ██║██║ ██║██╔══██╗██║ ██╔══╝
|
||||
███████║██║ ███████╗╚██████╗██║██║ ██║███████╗███████║╚██████╔╝╚██████╔╝██║ ██║╚██████╗███████╗
|
||||
╚══════╝╚═╝ ╚══════╝ ╚═════╝╚═╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
|
||||
|
||||
██████╗ ██████╗ ███╗ ███╗██████╗ █████╗ ███╗ ██╗██╗ ██╗
|
||||
██╔════╝██╔═══██╗████╗ ████║██╔══██╗██╔══██╗████╗ ██║╚██╗ ██╔╝
|
||||
██║ ██║ ██║██╔████╔██║██████╔╝███████║██╔██╗ ██║ ╚████╔╝
|
||||
██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██╔══██║██║╚██╗██║ ╚██╔╝
|
||||
╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ██║ ██║██║ ╚████║ ██║
|
||||
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝
|
||||
</pre>
|
||||
<div class="ascii-clip">
|
||||
<pre class="ascii-art" v-html="formattedAscii"></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -125,7 +130,7 @@
|
||||
<div v-else-if="activeMenu === 'contact'" class="sub-page contact-page" key="contact">
|
||||
<h2 class="page-title">> INITIALIZING ENCRYPTED_COMM.INK</h2>
|
||||
<div class="contact-form">
|
||||
<p>EMAIL: specialsource.company@gmail.com</p>
|
||||
<p>EMAIL: sungjin.choi@specialsource.company</p>
|
||||
<p>LOCATION: SEOUL, SOUTH KOREA</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -147,13 +152,20 @@
|
||||
<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>
|
||||
|
||||
<script setup>
|
||||
import { ref, onMounted, computed } from 'vue';
|
||||
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);
|
||||
@@ -164,42 +176,135 @@ 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 storedTheme = localStorage.getItem('theme');
|
||||
const activeTheme = ref(VALID_THEMES.includes(storedTheme) ? storedTheme : 'green');
|
||||
|
||||
watch(activeTheme, (theme) => {
|
||||
localStorage.setItem('theme', theme);
|
||||
});
|
||||
|
||||
// 글로벌 오버레이 레이어 상태 관리 변수
|
||||
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;
|
||||
|
||||
const currentServerSource = ref('nas');
|
||||
|
||||
const menuItems = [
|
||||
{ id: 'main', name: 'HOME' },
|
||||
{ id: 'youtube', name: 'YOUTUBE' },
|
||||
{ id: 'project', name: 'PROJECT' },
|
||||
// { id: 'project', name: 'PROJECT' },
|
||||
{ id: 'about', name: 'ABOUT' },
|
||||
{ id: 'contact', name: 'CONTACT' }
|
||||
];
|
||||
|
||||
const isLoggedIn = computed(() => !!authToken.value);
|
||||
|
||||
// 🟢 [UPGRADE] 메뉴 이동 시 영화 같은 TUI 로딩바 시퀀스 구동
|
||||
const terminalPrompt = () => `${isLoggedIn.value && currentUsername.value ? currentUsername.value : 'anonymous'}@specialsource:~$ `;
|
||||
|
||||
const syncTerminalPrompt = () => {
|
||||
if (termInstance.value) {
|
||||
termInstance.value.set_prompt(terminalPrompt());
|
||||
}
|
||||
};
|
||||
|
||||
const currentServerSourceDisplay = computed(() => {
|
||||
if (currentServerSource.value === 'firebase_night') {
|
||||
return 'SYS: CLOUD_REDUNDANCY (NIGHT)';
|
||||
}
|
||||
if (currentServerSource.value === 'firebase_failover') {
|
||||
return 'SYS: EMERGENCY_MIRROR (FAILOVER)';
|
||||
}
|
||||
if (currentServerSource.value === 'firebase_direct') {
|
||||
return 'SYS: CLOUD_DIRECT (BYPASS)';
|
||||
}
|
||||
return 'SYS: LOCAL_CORE (ACTIVE)';
|
||||
});
|
||||
|
||||
const detectRealtimeServerSource = async () => {
|
||||
const hostname = window.location.hostname;
|
||||
|
||||
if (hostname.includes('web.app') || hostname.includes('firebase')) {
|
||||
currentServerSource.value = 'firebase_direct';
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const res = await fetch(window.location.origin, { method: 'HEAD' });
|
||||
const servedBy = res.headers.get('x-served-by');
|
||||
|
||||
if (servedBy) {
|
||||
currentServerSource.value = servedBy;
|
||||
} else {
|
||||
currentServerSource.value = 'nas';
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("실시간 서버 소스 판별 실패:", err);
|
||||
currentServerSource.value = 'firebase_failover';
|
||||
}
|
||||
};
|
||||
|
||||
const rawAscii = `
|
||||
███████╗██████╗ ███████╗ ██████╗██╗ █████╗ ██╗
|
||||
██╔════╝██╔══██╗██╔════╝██╔════╝██║██╔══██╗██║
|
||||
███████╗██████╔╝█████╗ ██║ ██║███████║██║
|
||||
╚════██║██╔═══╝ ██╔══╝ ██║ ██║██╔══██║██║
|
||||
███████║██║ ███████╗╚██████╗██║██║ ██║███████╗
|
||||
╚══════╝╚═╝ ╚══════╝ ╚═════╝╚═╝╚═╝ ╚═╝╚══════╝
|
||||
███████╗██████╗ ██╗ ██╗██████╗ ██████╗███████╗
|
||||
██╔════╝██╔═══██╗██║ ██║██╔══██╗██╔════╝██╔════╝
|
||||
███████╗██║ ██║██║ ██║██████╔╝██║ █████╗
|
||||
╚════██║██║ ██║██║ ██║██╔══██╗██║ ██╔══╝
|
||||
███████║╚██████╔╝╚██████╔╝██║ ██║╚██████╗███████╗
|
||||
╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
|
||||
██████╗ ██████╗ ███╗ ███╗██████╗ █████╗ ███╗ ██╗██╗ ██╗
|
||||
██╔════╝██╔═══██╗████╗ ████║██╔══██╗██╔══██╗████╗ ██║╚██╗ ██╔╝
|
||||
██║ ██║ ██║██╔████╔██║██████╔╝███████║██╔██╗ ██║ ╚████╔╝
|
||||
██║ ██║ ██║██║╚██╔╝██║██╔═══╝ ██╔══██║██║╚██╗██║ ╚██╔╝
|
||||
╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ██║ ██║██║ ╚████║ ██║
|
||||
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝`;
|
||||
|
||||
const formattedAscii = computed(() => {
|
||||
return rawAscii.replace(/ /g, '<span class="bg-block">█</span>');
|
||||
});
|
||||
|
||||
const fetchAnalyticsData = async () => {
|
||||
try {
|
||||
const apiBaseUrl = import.meta.env.VITE_API_URL || '';
|
||||
const res = await axios.get(`${apiBaseUrl}/api/analytics/live`, { withCredentials: true });
|
||||
if (res.data) {
|
||||
todayUnique.value = res.data.todayUnique || 0;
|
||||
activeNow.value = res.data.activeNow || 0;
|
||||
}
|
||||
} catch (err) {
|
||||
console.error("관제 통계 데이터 로드 실패:", err);
|
||||
}
|
||||
};
|
||||
|
||||
const changeMenu = (id) => {
|
||||
// 이미 열려있는 메뉴를 다시 누르면 불필요한 시퀀스 방지 차단
|
||||
if (activeMenu.value === id) return;
|
||||
|
||||
// 1) 즉시 화면 전체를 덮고 초기 세팅
|
||||
isProcessing.value = true;
|
||||
overlayProgress.value = 0;
|
||||
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.`);
|
||||
}
|
||||
|
||||
// 2) 400ms 동안 빠르게 게이지를 채우는 인터벌 구동 (속도 체감 굿)
|
||||
const interval = setInterval(() => {
|
||||
overlayProgress.value += 5;
|
||||
|
||||
// 진행 수치별 리눅스 해커 감성 문구 전환
|
||||
if (overlayProgress.value === 25) {
|
||||
overlayStatus.value = `ALLOCATING MEMORY BUFFER FOR VUE_COMPONENT...`;
|
||||
}
|
||||
@@ -207,46 +312,22 @@ const changeMenu = (id) => {
|
||||
overlayStatus.value = `DECRYPTING INTERFACE LOGS & SECURE ASSETS...`;
|
||||
}
|
||||
if (overlayProgress.value === 85) {
|
||||
// ★ 85% 지점 오버레이 베일 뒤에서 슥 메인 콘텐츠 메뉴를 스왑!
|
||||
activeMenu.value = id;
|
||||
overlayStatus.value = `MOUNTING VIRTUAL DOM TREE... SUCCESS.`;
|
||||
}
|
||||
|
||||
// 100% 도달 완료 시 종료 세팅
|
||||
if (overlayProgress.value >= 100) {
|
||||
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(() => {
|
||||
isProcessing.value = false;
|
||||
}, 120);
|
||||
}
|
||||
}, 20); // 20ms * 20단계 = 총 400ms 로딩 스피드 보장
|
||||
};
|
||||
|
||||
// 로그인 등 다른 비즈니스 로직에서 사용하는 동적 제어용 스크립트는 원본 유지
|
||||
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);
|
||||
}, 20);
|
||||
};
|
||||
|
||||
const apiKey = 'AIzaSyD51LHwqoY8spjq6rsY_RlhBXzb96j7D6o';
|
||||
@@ -262,20 +343,23 @@ 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');
|
||||
localStorage.removeItem('username');
|
||||
authToken.value = null;
|
||||
currentUsername.value = '';
|
||||
activeMenu.value = 'main';
|
||||
if (termInstance.value) {
|
||||
termInstance.value.echo(`\n[[b;red;][ALERT]] SESSION TERMINATED. USER LOGGED OUT.`);
|
||||
}
|
||||
syncTerminalPrompt();
|
||||
};
|
||||
|
||||
const handleLoginSubmit = async () => {
|
||||
if (!loginId.value || !loginPw.value) {
|
||||
alert("아이디와 비밀번호를 모두 입력해 주세요.");
|
||||
showSystemAlert("아이디와 비밀번호를 모두 입력해 주세요.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -306,10 +390,13 @@ const handleLoginSubmit = async () => {
|
||||
overlayStatus.value = 'Access Granted. Generating JWT Session token...';
|
||||
|
||||
localStorage.setItem('token', response.data.token);
|
||||
localStorage.setItem('username', loginId.value);
|
||||
authToken.value = response.data.token;
|
||||
currentUsername.value = loginId.value;
|
||||
syncTerminalPrompt();
|
||||
|
||||
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;
|
||||
@@ -329,243 +416,108 @@ const handleLoginSubmit = async () => {
|
||||
if (termInstance.value) {
|
||||
termInstance.value.echo(`[[b;red;][CRITICAL ERROR]] ACCESS DENIED! INVALID ACCESS KEY.`);
|
||||
}
|
||||
alert("인증에 실패했습니다. 액세스 키를 확인하세요.");
|
||||
showSystemAlert("인증에 실패했습니다. 액세스 키를 확인하세요.");
|
||||
}
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
fetchVideos();
|
||||
fetchAnalyticsData();
|
||||
|
||||
detectRealtimeServerSource();
|
||||
|
||||
analyticsTimer = setInterval(() => {
|
||||
fetchAnalyticsData();
|
||||
detectRealtimeServerSource();
|
||||
}, 30000);
|
||||
|
||||
const globaljQuery = window.$;
|
||||
if (globaljQuery && terminalRef.value) {
|
||||
termInstance.value = globaljQuery(terminalRef.value).terminal({
|
||||
'hello': function () { this.echo('Hello, Welcome to Specialsource.company'); },
|
||||
'help': function () {
|
||||
this.echo(`- hello : Say hello\n- specialsource : Core info\n- email : Contact\n- clear : Clear console`);
|
||||
},
|
||||
'specialsource': function () { this.echo('SPECIALSOURCE Established 2021.01.'); },
|
||||
'email': function () { this.echo('specialsource.company@gmail.com'); },
|
||||
'email': function () { this.echo('sungjin.choi@specialsource.company'); },
|
||||
|
||||
'status': function () {
|
||||
const term = this;
|
||||
term.pause();
|
||||
|
||||
const lines = [
|
||||
"============================================",
|
||||
" 📟 SPECIALSOURCE TRAFFIC ARCHITECTURE",
|
||||
"============================================",
|
||||
`- CURRENT ACTIVE USERS (5m) : ${activeNow.value} ACTIVE`,
|
||||
`- TOTAL UNIQUE VISITORS TODAY : ${todayUnique.value} UVs`,
|
||||
"--------------------------------------------"
|
||||
];
|
||||
|
||||
term.echo("\n[SYS] INITIALIZING SECURE PIPELINE CHANNEL...");
|
||||
term.echo("[SYS] EXTRACTING POSTGRESQL METADATA... SNAPSHOT READY.");
|
||||
|
||||
let index = 0;
|
||||
const typingInterval = setInterval(() => {
|
||||
if (index < lines.length) {
|
||||
term.echo(lines[index]);
|
||||
index++;
|
||||
} else {
|
||||
clearInterval(typingInterval);
|
||||
term.resume();
|
||||
}
|
||||
}, 110);
|
||||
},
|
||||
|
||||
'login': function () {
|
||||
const term = this;
|
||||
|
||||
if (isLoggedIn.value) {
|
||||
term.echo(`\n[[b;red;][ERROR]] ALREADY AUTHENTICATED AS ${currentUsername.value || 'ADMIN'}. TYPE 'logout' FIRST TO SWITCH USER.`);
|
||||
return;
|
||||
}
|
||||
|
||||
term.echo(`\n[SYS] LOGIN: ENTER CREDENTIALS TO AUTHENTICATE.`);
|
||||
|
||||
term.read('ACCESS ID: ').then((id) => {
|
||||
term.set_mask(true);
|
||||
return term.read('ACCESS KEY: ').then((pw) => {
|
||||
term.set_mask(false);
|
||||
return { id, pw };
|
||||
});
|
||||
}).then(({ id, pw }) => {
|
||||
if (!id || !pw) {
|
||||
term.echo(`[[b;red;][ERROR]] ACCESS ID/KEY CANNOT BE EMPTY.`);
|
||||
return;
|
||||
}
|
||||
loginId.value = id;
|
||||
loginPw.value = pw;
|
||||
handleLoginSubmit();
|
||||
}).catch(() => {
|
||||
term.set_mask(false);
|
||||
term.echo(`\n[[b;red;][LOGIN]] AUTHENTICATION CANCELLED.`);
|
||||
});
|
||||
},
|
||||
|
||||
'logout': function () {
|
||||
const term = this;
|
||||
|
||||
if (!isLoggedIn.value) {
|
||||
term.echo(`\n[[b;red;][ERROR]] NOT AUTHENTICATED. NOTHING TO LOG OUT OF.`);
|
||||
return;
|
||||
}
|
||||
|
||||
handleLogout();
|
||||
},
|
||||
|
||||
'help': function () {
|
||||
this.echo(`- hello : Say hello\n- specialsource : Core info\n- email : Contact\n- status : Check Live Connected Users\n- login : Login via ID/Password prompt\n- logout : Log out of current session\n- clear : Clear console`);
|
||||
},
|
||||
}, {
|
||||
greetings: `[SYSTEM V3.2] INTERFACE ONLINE. TYPE 'help' FOR COMMANDS.`,
|
||||
prompt: 'admin@specialsource:~$ '
|
||||
prompt: terminalPrompt()
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
if (analyticsTimer) clearInterval(analyticsTimer);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.homepage-wrapper {
|
||||
background-color: #050505;
|
||||
color: #00ff00;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* --- GNB --- */
|
||||
.auth-nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 15px 40px;
|
||||
background: #000;
|
||||
border-bottom: 1px solid rgba(0, 255, 0, 0.2);
|
||||
}
|
||||
.nav-menu { display: flex; gap: 20px; }
|
||||
.menu-btn {
|
||||
background: none; border: none; color: #008800;
|
||||
font-family: monospace; font-size: 16px; cursor: pointer;
|
||||
transition: 0.3s;
|
||||
}
|
||||
.menu-btn:hover, .menu-btn.active { color: #00ff00; text-shadow: 0 0 10px #00ff00; }
|
||||
|
||||
.auth-group { display: flex; align-items: center; }
|
||||
|
||||
.nav-item {
|
||||
color: #00ff00 !important;
|
||||
text-decoration: none;
|
||||
background: none;
|
||||
border: 1px solid #00ff00 !important;
|
||||
padding: 6px 18px;
|
||||
margin-left: 10px;
|
||||
cursor: pointer;
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
font-size: 13px;
|
||||
box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
|
||||
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;
|
||||
}
|
||||
.user-info { color: #008800 !important; font-size: 12px; margin-right: 15px; font-family: monospace; 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; }
|
||||
|
||||
/* --- 컨텐츠 영역 --- */
|
||||
.content-area {
|
||||
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%; }
|
||||
.page-title { font-family: monospace; border-bottom: 1px solid #113311; padding-bottom: 10px; margin-bottom: 20px; color: #00ff00;}
|
||||
|
||||
/* 메인 홈 아스키 전광판 레이아웃 */
|
||||
.main-page {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex: 1;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* 글로벌 오버레이 배경 암전 처리 레이어 CSS 스타일 */
|
||||
.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: 20px;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
}
|
||||
.ascii-art {
|
||||
font-family: 'Courier New', Courier, monospace !important;
|
||||
font-weight: bold;
|
||||
white-space: pre;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
width: max-content;
|
||||
color: #00ff00 !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;
|
||||
}
|
||||
|
||||
/* 📺 유튜브 그리드 레이아웃 */
|
||||
#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 #113311;
|
||||
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; }
|
||||
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);
|
||||
font-family: 'Courier New', Courier, monospace;
|
||||
}
|
||||
.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-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 {
|
||||
flex: 1; background: none; border: none; color: #00ff00;
|
||||
font-family: 'Courier New', Courier, monospace; font-size: 15px; outline: none;
|
||||
}
|
||||
.login-submit-btn {
|
||||
margin-top: 15px; background: none; border: 1px solid #00ff00;
|
||||
color: #00ff00; padding: 12px; font-family: 'Courier New', Courier, monospace;
|
||||
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; }
|
||||
|
||||
/* 프로젝트 리스트 */
|
||||
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
|
||||
.project-item { border: 1px solid #113311; padding: 15px; background: #080808; font-family: monospace;}
|
||||
.item-header { font-weight: bold; margin-bottom: 10px; color: #00ff00; }
|
||||
.about-text { font-family: monospace; line-height: 2; color: #00cc00;}
|
||||
.contact-form { font-family: monospace; line-height: 2; color: #00cc00;}
|
||||
|
||||
/* 애니메이션 트랜지션 */
|
||||
.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: 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-family: monospace; font-size: 12px;}
|
||||
.monitor-status { color: #00aa00; 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; }
|
||||
|
||||
:deep(.terminal), :deep(.terminal span) {
|
||||
--color: #33ff33 !important; font-family: monospace !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); }
|
||||
}
|
||||
@media screen and (max-width: 650px) {
|
||||
#videos-container { grid-template-columns: 1fr; }
|
||||
.project-grid { grid-template-columns: 1fr; }
|
||||
.auth-nav { flex-direction: column; gap: 12px; padding: 15px 20px; }
|
||||
.ascii-art { font-size: 7px; line-height: 1.1; }
|
||||
}
|
||||
@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; }
|
||||
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; }
|
||||
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;}
|
||||
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; }
|
||||
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; }
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user