Update app.py
Browse files5 unmodified lines678991011121 unmodified line14151617171819204 unmodified lines25262728282930317 unmodified lines394041424243444546464748495051495051525354545556565758596061626364596061626364656667686970666768697071727323 unmodified lines9798991001001011021033 unmodified lines10710810911011011111211211311411411511611711811711811912012112212312412512612712012812913012 unmodified lines14314414513914614714814912 unmodified lines16216316415816516616716814 unmodified lines18318418517918618718818944 unmodified lines23423523623023723823924011 unmodified lines2522532542482552562572584 unmodified lines26326426525926626726126826927027133 unmodified lines3053063073013083093103115 unmodified linesapp = Flask(__name__)
# ==========================================# FRONTEND: Clean Cinematic Intro + Floating UI# FRONTEND: Ultimate Glassmorphism & Glowing Intro# ==========================================HTML_TEMPLATE = """<!DOCTYPE html>1 unmodified line<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Twenty IDE | Pro Environment</title> <title>Twenty IDE | Premium Edition</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <style> :root {4 unmodified lines --text-muted: #888899; --accent: #00f2fe; --radius-big: 24px; --radius-small: 12px; --radius-small: 10px; }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }7 unmodified lines @keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(20vw, 20vh); } } @keyframes floatReverse { 0% { transform: translate(0, 0); } 100% { transform: translate(-20vw, -20vh); } }
/* --- TƏMİZ VƏ KƏSKİN SPLASH EKRANI --- */ /* --- SİRR Lİ VƏ DUMANLI (BLUR) SPLASH EKRANI --- */ #splash { position: fixed; inset: 0; background: #020204; z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.8s ease-in-out; transition: opacity 1.5s ease-in-out; } .splash-text { font-size: 65px; font-weight: 200; color: var(--color-white); margin-left: 30px; letter-spacing: 25px; animation: cleanFade 3s ease-in-out forwards; font-size: 65px; font-weight: 200; color: transparent; margin-left: 30px; animation: breatheMelt 4s cubic-bezier(0.25, 1, 0.5, 1) forwards; } .splash-sub { font-size: 13px; color: var(--accent); letter-spacing: 15px; margin-top: 25px; font-size: 13px; color: var(--accent); letter-spacing: 20px; margin-top: 25px; text-transform: uppercase; margin-left: 20px; opacity: 0; animation: cleanSubFade 2.5s ease-in-out forwards 0.5s; animation: subFade 4s ease-in-out forwards; }
/* Kino effekti: Blursuz, təmiz görünüş */ @keyframes cleanFade { 0% { opacity: 0; transform: scale(1.05); } 20% { opacity: 1; transform: scale(1); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.95); } /* Kino effekti: Dumanlı yaranış və qeyb olma */ @keyframes breatheMelt { 0% { opacity: 0; filter: blur(30px); text-shadow: 0 0 0px rgba(0, 242, 254, 0); transform: scale(1.1); letter-spacing: 45px; } 40% { opacity: 1; filter: blur(0px); text-shadow: 0 0 60px rgba(0, 242, 254, 0.8); transform: scale(1); letter-spacing: 30px; color: var(--color-white); } 70% { opacity: 1; filter: blur(0px); text-shadow: 0 0 40px rgba(0, 242, 254, 0.5); transform: scale(1); letter-spacing: 30px; color: var(--color-white); } 100% { opacity: 0; filter: blur(30px); text-shadow: 0 0 0px rgba(0, 242, 254, 0); transform: scale(0.9); letter-spacing: 15px; color: transparent; } } @keyframes cleanSubFade { 0% { opacity: 0; } 20% { opacity: 0.9; } 80% { opacity: 0.9; } 100% { opacity: 0; } @keyframes subFade { 0% { opacity: 0; filter: blur(10px); } 40% { opacity: 0.9; filter: blur(0px); } 70% { opacity: 0.9; filter: blur(0px); } 100% { opacity: 0; filter: blur(15px); } }
/* --- ŞÜŞƏ PANEL STİLLƏRİ --- */23 unmodified lines @keyframes slideInLeft { to { transform: translateX(0); opacity: 1; } } @keyframes slideInUp { to { transform: translateY(0); opacity: 1; } }
/* --- ÜST PANEL --- */ /* --- ÜST PANEL (DÜYMƏLƏR YENİLƏNDİ) --- */ .top-bar { height: 65px; margin: 15px 15px 0 15px; display: flex; justify-content: space-between; align-items: center; padding: 0 25px; z-index: 100;3 unmodified lines .controls { display: flex; align-items: center; gap: 15px; } .lang-select { background: rgba(0,0,0,0.3); color: var(--text-muted); border: 1px solid var(--glass-border); background: rgba(0, 0, 0, 0.4); color: var(--text-main); border: 1px solid rgba(255,255,255,0.1); padding: 8px 15px; border-radius: var(--radius-small); cursor: pointer; outline: none; transition: 0.3s; font-size: 13px; letter-spacing: 1px; font-size: 13px; letter-spacing: 1px; font-weight: 500; } .lang-select:hover { color: white; border-color: rgba(255,255,255,0.3); background: rgba(0,0,0,0.5); } .lang-select:hover { border-color: var(--accent); box-shadow: 0 0 10px rgba(0, 242, 254, 0.2); }
/* Yeni "İcra Et" Düyməsi: Neon kənar, qəşəng parlama */ .run-btn { background: rgba(0, 242, 254, 0.1); color: var(--accent); border: 1px solid var(--accent); background: rgba(255,255,255,0.9); color: #000; border: none; padding: 10px 25px; border-radius: var(--radius-small); cursor: pointer; font-weight: 600; transition: 0.3s; display: flex; align-items: center; gap: 8px; padding: 8px 22px; border-radius: var(--radius-small); cursor: pointer; font-weight: 600; transition: 0.4s; display: flex; align-items: center; gap: 8px; box-shadow: 0 0 15px rgba(0, 242, 254, 0.1); letter-spacing: 1px; } .run-btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 20px rgba(0, 242, 254, 0.5); transform: translateY(-2px); } .run-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 5px 20px rgba(255,255,255,0.3); } .panel-toggle { background: transparent; color: var(--text-muted); border: none; cursor: pointer; font-size: 18px; transition: 0.3s; padding: 5px; } .panel-toggle:hover { color: white; transform: scale(1.1); }12 unmodified lines .folder-items { margin-left: 22px; display: flex; flex-direction: column; gap: 5px; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 12px; } .file-item { display: flex; align-items: center; gap: 10px; color: var(--text-muted); cursor: pointer; padding: 10px 12px; border-radius: var(--radius-small); transition: 0.2s; font-size: 13.5px; } .file-item:hover { color: white; background: rgba(255,255,255,0.05); } .file-item.active { color: white; background: rgba(255,255,255,0.1); border-left: 3px solid var(--accent); } .file-item.active { color: white; background: rgba(0, 242, 254, 0.1); border-left: 3px solid var(--accent); }
/* Orta Panel */ .center-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }12 unmodified lines flex: 1; padding: 25px; font-family: 'Consolas', monospace; font-size: 15px; color: #d1d1d1; overflow-y: auto; white-space: pre-wrap; line-height: 1.7; text-align: left; } .ps-prompt { color: #82aaff; font-weight: bold; } .ps-prompt { color: var(--accent); font-weight: bold; } .ps-success { color: #c3e88d; } .ps-error { color: #ff5370; }
14 unmodified lines
<div id="splash"> <div class="splash-text">TWENTY</div> <div class="splash-sub">Pro Environment</div> <div class="splash-sub">Premium Environment</div> </div>
<div class="glass-panel top-bar" id="top-bar">44 unmodified lines <i class="fa-solid fa-broom" style="cursor:pointer; transition:0.3s;" onclick="clearTerminal()" onmouseover="this.style.color='white'" onmouseout="this.style.color='#999'" title="Təmizlə"></i> </div> <div id="terminal-output"><span style="color: #888;">// Twenty IDE Aktivdir...</span><span style="color: #888;">// Twenty Premium Engine Aktivdir...</span><span class="ps-prompt">PS C:\\Twenty\\src></span> Hazırdır. Kodunuzu icra edin.</div> </div> </div>11 unmodified lines } }
// --- KİNO GİRİŞİ (YENİLƏNMİŞ) --- // --- KİNO GİRİŞİ (DUMANLI VƏ PARLAYAN) --- window.onload = () => { setTimeout(() => { const splash = document.getElementById('splash');4 unmodified lines document.getElementById('top-bar').classList.add('anim-top'); document.getElementById('sidebar-left').classList.add('anim-left'); document.getElementById('center-panel').classList.add('anim-center'); }, 800); }, 1000); }, 3000); }, 4000); // Animasiya müddətinə tam uyğun };
function togglePanel(side) {33 unmodified lines require.config({ paths: { 'vs': 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.36.1/min/vs' }}); require(['vs/editor/editor.main'], function() { editor = monaco.editor.create(document.getElementById('editor-container'), { value: "# Twenty IDE: Pro Environment\\n# Girish animasiyasi daha keskin ve netdir.\\n\\nprint('Sisteme Xosh Gelmisiniz!')", value: "# Twenty IDE: Premium Edition\\n# Dizayn artiq tam olaraq senin isteyinedir.\\n\\nprint('Sisteme Xosh Gelmisiniz!')", language: 'python', theme: 'vs-dark', automaticLayout: true,app.py+43-36