Add install/index.html
This commit is contained in:
715
install/index.html
Normal file
715
install/index.html
Normal file
@@ -0,0 +1,715 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="nl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Terminal Chat - Python TCP Chat Applicatie</title>
|
||||
<meta name="description" content="Een simpele maar krachtige terminal-gebaseerde chat applicatie geschreven in Python met TCP-sockets.">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
:root {
|
||||
--bg: #0a0e17;
|
||||
--bg-card: #111827;
|
||||
--bg-card-hover: #151d2e;
|
||||
--bg-terminal: #0d1117;
|
||||
--green: #22c55e;
|
||||
--green-dim: #16a34a;
|
||||
--green-glow: rgba(34, 197, 94, 0.15);
|
||||
--green-glow-strong: rgba(34, 197, 94, 0.3);
|
||||
--text: #e2e8f0;
|
||||
--text-dim: #94a3b8;
|
||||
--text-muted: #64748b;
|
||||
--border: #1e293b;
|
||||
--border-hover: #334155;
|
||||
--cyan: #06b6d4;
|
||||
--yellow: #eab308;
|
||||
--red: #ef4444;
|
||||
--orange: #f97316;
|
||||
}
|
||||
|
||||
html { scroll-behavior: smooth; }
|
||||
|
||||
body {
|
||||
font-family: 'Inter', system-ui, sans-serif;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
line-height: 1.6;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
code, .mono { font-family: 'JetBrains Mono', monospace; }
|
||||
|
||||
/* Scrollbar */
|
||||
::-webkit-scrollbar { width: 6px; }
|
||||
::-webkit-scrollbar-track { background: var(--bg); }
|
||||
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
|
||||
|
||||
/* Selection */
|
||||
::selection { background: var(--green-glow-strong); color: var(--green); }
|
||||
|
||||
/* ===== NAV ===== */
|
||||
nav {
|
||||
position: fixed; top: 0; left: 0; right: 0; z-index: 100;
|
||||
background: rgba(10, 14, 23, 0.8);
|
||||
backdrop-filter: blur(20px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
transition: box-shadow 0.3s;
|
||||
}
|
||||
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
|
||||
.nav-inner {
|
||||
max-width: 1100px; margin: 0 auto;
|
||||
padding: 0 24px;
|
||||
height: 64px;
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
}
|
||||
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
|
||||
.nav-logo-text { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px; color: var(--green); }
|
||||
|
||||
/* ===== HERO ===== */
|
||||
.hero {
|
||||
padding: 160px 24px 100px;
|
||||
text-align: center;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hero::before {
|
||||
content: '';
|
||||
position: absolute; inset: 0;
|
||||
background: radial-gradient(ellipse 600px 400px at 50% 0%, var(--green-glow) 0%, transparent 70%);
|
||||
pointer-events: none;
|
||||
}
|
||||
.hero-badge {
|
||||
display: inline-flex; align-items: center; gap: 8px;
|
||||
padding: 6px 14px; border-radius: 999px;
|
||||
background: var(--green-glow);
|
||||
border: 1px solid rgba(34,197,94,0.2);
|
||||
font-size: 13px; color: var(--green);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.hero-badge .dot {
|
||||
width: 6px; height: 6px; border-radius: 50%;
|
||||
background: var(--green);
|
||||
animation: pulse-dot 2s ease-in-out infinite;
|
||||
}
|
||||
@keyframes pulse-dot {
|
||||
0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--green-glow-strong); }
|
||||
50% { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
|
||||
}
|
||||
.hero h1 {
|
||||
font-size: clamp(36px, 6vw, 64px);
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
letter-spacing: -0.03em;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.hero h1 .highlight {
|
||||
background: linear-gradient(135deg, var(--green), var(--cyan));
|
||||
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
||||
background-clip: text;
|
||||
}
|
||||
.hero p {
|
||||
color: var(--text-dim); font-size: 18px;
|
||||
max-width: 560px; margin: 0 auto 40px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; gap: 8px;
|
||||
padding: 12px 24px; border-radius: 10px;
|
||||
font-size: 14px; font-weight: 600;
|
||||
text-decoration: none; cursor: pointer;
|
||||
transition: all 0.2s; border: none;
|
||||
}
|
||||
.btn-primary {
|
||||
background: var(--green); color: #000;
|
||||
box-shadow: 0 0 20px var(--green-glow-strong);
|
||||
}
|
||||
.btn-primary:hover { background: var(--green-dim); transform: translateY(-1px); box-shadow: 0 0 30px var(--green-glow-strong); }
|
||||
.btn-secondary {
|
||||
background: var(--bg-card); color: var(--text);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
|
||||
|
||||
/* ===== INSTALL BOX ===== */
|
||||
.install-box {
|
||||
max-width: 540px; margin: 48px auto 0;
|
||||
background: var(--bg-terminal);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.install-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 10px 16px;
|
||||
background: rgba(30, 41, 59, 0.5);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.install-dots { display: flex; gap: 6px; }
|
||||
.install-dots span { width: 10px; height: 10px; border-radius: 50%; }
|
||||
.install-dots span:nth-child(1) { background: var(--red); }
|
||||
.install-dots span:nth-child(2) { background: var(--yellow); }
|
||||
.install-dots span:nth-child(3) { background: var(--green); }
|
||||
.install-label { font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
|
||||
.install-copy {
|
||||
background: none; border: none; color: var(--text-muted);
|
||||
cursor: pointer; padding: 4px; border-radius: 4px;
|
||||
transition: all 0.2s; display: flex; align-items: center;
|
||||
}
|
||||
.install-copy:hover { color: var(--green); background: var(--green-glow); }
|
||||
.install-copy.copied { color: var(--green); }
|
||||
.install-body {
|
||||
padding: 20px;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 14px;
|
||||
color: var(--green);
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
}
|
||||
.install-body .prompt { color: var(--text-muted); user-select: none; }
|
||||
|
||||
/* ===== TERMINAL PREVIEW ===== */
|
||||
.terminal-section { padding: 0 24px 100px; }
|
||||
.terminal-window {
|
||||
max-width: 800px; margin: 0 auto;
|
||||
background: var(--bg-terminal);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 25px 60px -12px rgba(0,0,0,0.5);
|
||||
}
|
||||
.terminal-bar {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
padding: 12px 16px;
|
||||
background: rgba(30, 41, 59, 0.5);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.terminal-bar-dots { display: flex; gap: 6px; }
|
||||
.terminal-bar-dots span { width: 10px; height: 10px; border-radius: 50%; }
|
||||
.terminal-bar-dots span:nth-child(1) { background: #ef4444; }
|
||||
.terminal-bar-dots span:nth-child(2) { background: #eab308; }
|
||||
.terminal-bar-dots span:nth-child(3) { background: #22c55e; }
|
||||
.terminal-bar-title { flex: 1; text-align: center; font-size: 12px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
|
||||
.terminal-body {
|
||||
padding: 20px;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.8;
|
||||
min-height: 320px;
|
||||
}
|
||||
.terminal-line { opacity: 0; transform: translateY(6px); transition: all 0.4s ease; }
|
||||
.terminal-line.visible { opacity: 1; transform: translateY(0); }
|
||||
.t-green { color: var(--green); }
|
||||
.t-cyan { color: var(--cyan); }
|
||||
.t-yellow { color: var(--yellow); }
|
||||
.t-red { color: var(--red); }
|
||||
.t-dim { color: var(--text-muted); }
|
||||
.t-orange { color: var(--orange); }
|
||||
.t-bold { font-weight: 700; }
|
||||
.cursor-blink {
|
||||
display: inline-block; width: 8px; height: 16px;
|
||||
background: var(--green); vertical-align: text-bottom;
|
||||
animation: blink 1s step-end infinite;
|
||||
}
|
||||
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
|
||||
|
||||
/* ===== SECTIONS ===== */
|
||||
section { padding: 80px 24px; }
|
||||
.container { max-width: 1100px; margin: 0 auto; }
|
||||
.section-label {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 13px; color: var(--green);
|
||||
text-transform: uppercase; letter-spacing: 0.1em;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.section-title {
|
||||
font-size: clamp(28px, 4vw, 40px);
|
||||
font-weight: 700; letter-spacing: -0.02em;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.section-desc {
|
||||
color: var(--text-dim); font-size: 16px;
|
||||
max-width: 600px; margin-bottom: 48px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* ===== FEATURES GRID ===== */
|
||||
.features-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
.feature-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 28px;
|
||||
transition: all 0.3s;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.feature-card::before {
|
||||
content: '';
|
||||
position: absolute; top: 0; left: 0; right: 0;
|
||||
height: 2px;
|
||||
background: linear-gradient(90deg, transparent, var(--green), transparent);
|
||||
opacity: 0; transition: opacity 0.3s;
|
||||
}
|
||||
.feature-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
|
||||
.feature-card:hover::before { opacity: 1; }
|
||||
.feature-icon {
|
||||
width: 40px; height: 40px; border-radius: 10px;
|
||||
background: var(--green-glow);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
margin-bottom: 16px; font-size: 18px;
|
||||
}
|
||||
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
|
||||
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
|
||||
|
||||
/* ===== DOCS / COMMANDS ===== */
|
||||
.docs-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
.doc-card {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.doc-card:hover { border-color: var(--border-hover); }
|
||||
.doc-card-header {
|
||||
padding: 20px 24px 0;
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
}
|
||||
.doc-card-header h3 { font-size: 15px; font-weight: 600; }
|
||||
.doc-card-body { padding: 16px 24px 24px; }
|
||||
.doc-card-body p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; line-height: 1.6; }
|
||||
|
||||
.command-table { width: 100%; border-collapse: collapse; }
|
||||
.command-table th, .command-table td {
|
||||
padding: 10px 12px; text-align: left;
|
||||
font-size: 13px; border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.command-table th { color: var(--text-muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
|
||||
.command-table td:first-child {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
color: var(--cyan); font-size: 13px;
|
||||
}
|
||||
.command-table td:last-child { color: var(--text-dim); }
|
||||
.command-table tr:last-child td { border-bottom: none; }
|
||||
|
||||
/* ===== ARCHITECTURE ===== */
|
||||
.arch-block {
|
||||
background: var(--bg-card);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 12px;
|
||||
padding: 32px;
|
||||
max-width: 700px;
|
||||
}
|
||||
.arch-row {
|
||||
display: flex; align-items: center; gap: 16px;
|
||||
padding: 14px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.arch-row:last-child { border-bottom: none; }
|
||||
.arch-label {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 13px; color: var(--cyan);
|
||||
min-width: 120px;
|
||||
}
|
||||
.arch-value { font-size: 14px; color: var(--text-dim); }
|
||||
.arch-arrow {
|
||||
display: flex; justify-content: center; padding: 8px 0;
|
||||
color: var(--text-muted); font-size: 18px;
|
||||
}
|
||||
|
||||
/* ===== CODE BLOCK ===== */
|
||||
.code-block {
|
||||
background: var(--bg-terminal);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 13px;
|
||||
overflow-x: auto;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
/* ===== FOOTER ===== */
|
||||
footer {
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 40px 24px;
|
||||
text-align: center;
|
||||
}
|
||||
footer p { color: var(--text-muted); font-size: 13px; }
|
||||
footer a { color: var(--green); text-decoration: none; }
|
||||
footer a:hover { text-decoration: underline; }
|
||||
|
||||
/* ===== SCROLL ANIMATIONS ===== */
|
||||
.fade-in {
|
||||
opacity: 0; transform: translateY(24px);
|
||||
transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
.fade-in.visible { opacity: 1; transform: translateY(0); }
|
||||
|
||||
/* ===== RESPONSIVE ===== */
|
||||
@media (max-width: 768px) {
|
||||
.features-grid, .docs-grid { grid-template-columns: 1fr; }
|
||||
.hero { padding: 130px 24px 60px; }
|
||||
.hero p { font-size: 16px; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- NAV -->
|
||||
<nav id="navbar">
|
||||
<div class="nav-inner">
|
||||
<a href="#" class="nav-logo">
|
||||
<svg width="28" height="28" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect x="1" y="1" width="30" height="30" rx="7" fill="#0d1117" stroke="#22c55e" stroke-width="1.5"/>
|
||||
<text x="6" y="21" font-family="JetBrains Mono, monospace" font-size="14" font-weight="700" fill="#22c55e">>_</text>
|
||||
</svg>
|
||||
<span class="nav-logo-text">terminal-chat</span>
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- HERO -->
|
||||
<section class="hero">
|
||||
<div class="hero-badge"><span class="dot"></span> v1.0 — Open Source</div>
|
||||
<h1>Chat vanuit je <span class="highlight">Terminal</span></h1>
|
||||
<p>Een simpele maar krachtige terminal-gebaseerde chat applicatie geschreven in Python. Realtime messaging via TCP-sockets, direct vanuit je command line.</p>
|
||||
<div class="hero-actions">
|
||||
<a href="#installatie" class="btn btn-primary">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><path d="M8 2v8m0 0l-3-3m3 3l3-3M3 13h10"/></svg>
|
||||
Installeren
|
||||
</a>
|
||||
<a href="#docs" class="btn btn-secondary">
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 2h7l3 3v9H3V2z"/><path d="M10 2v3h3"/></svg>
|
||||
Documentatie
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Install Command -->
|
||||
<div class="install-box" id="installatie">
|
||||
<div class="install-header">
|
||||
<div class="install-dots"><span></span><span></span><span></span></div>
|
||||
<span class="install-label">bash</span>
|
||||
<button class="install-copy" id="copyBtn" onclick="copyInstall()" aria-label="Kopieer commando">
|
||||
<svg id="copyIcon" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="5" y="5" width="9" height="9" rx="1.5"/><path d="M5 11H3.5A1.5 1.5 0 012 9.5v-7A1.5 1.5 0 013.5 1h7A1.5 1.5 0 0112 2.5V5"/></svg>
|
||||
<svg id="checkIcon" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="2" style="display:none"><path d="M3 8.5l3.5 3.5L13 4.5"/></svg>
|
||||
</button>
|
||||
</div>
|
||||
<div class="install-body">
|
||||
<span class="prompt">$</span>
|
||||
<span id="installCmd">curl -s https://ben.de-roo.org/install/script.sh | bash</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- LIVE TERMINAL DEMO -->
|
||||
<section class="terminal-section" id="demo">
|
||||
<div class="terminal-window">
|
||||
<div class="terminal-bar">
|
||||
<div class="terminal-bar-dots"><span></span><span></span><span></span></div>
|
||||
<div class="terminal-bar-title">terminal-chat — python3</div>
|
||||
<div></div>
|
||||
</div>
|
||||
<div class="terminal-body" id="terminalBody">
|
||||
<div class="terminal-line" data-delay="0">
|
||||
<span class="t-dim">$</span> <span class="t-green">python3</span> client.py
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="600">
|
||||
<br>
|
||||
<span class="t-green t-bold">========================================</span><br>
|
||||
<span class="t-green t-bold"> Welkom bij De Terminal Chat</span><br>
|
||||
<span class="t-green t-bold">========================================</span>
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="1200">
|
||||
<br><span class="t-cyan">Gebruikersnaam:</span> <span class="t-yellow">ben</span>
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="1700">
|
||||
<span class="t-cyan">Wachtwoord:</span> <span class="t-dim">********</span>
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="2300">
|
||||
<br><span class="t-green">Succesvol ingelogd! Welkom, ben.</span>
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="3000">
|
||||
<br><span class="t-dim">--- Beschikbare chats ---</span><br>
|
||||
<span class="t-cyan">[1]</span> <span>Algemeen</span><br>
|
||||
<span class="t-cyan">[2]</span> <span>Project Alpha</span><br>
|
||||
<span class="t-cyan">[3]</span> <span>+ Nieuwe chat aanmaken</span>
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="3800">
|
||||
<br><span class="t-dim">Selecteer een chat:</span> <span class="t-yellow">1</span>
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="4500">
|
||||
<br><span class="t-green">[Algemeen]</span> <span class="t-dim">Verbonden. Typ je bericht...</span>
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="5200">
|
||||
<span class="t-cyan">alice:</span> Hey, ben je er?
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="5800">
|
||||
<span class="t-yellow">ben:</span> Ja! Alles werkt perfect.
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="6400">
|
||||
<span class="t-cyan">alice:</span> Mooi, ik add dave even.
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="7000">
|
||||
<span class="t-cyan">alice:</span> <span class="t-orange">/add dave</span>
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="7500">
|
||||
<span class="t-green">dave is toegevoegd aan de chat.</span>
|
||||
</div>
|
||||
<div class="terminal-line" data-delay="8000">
|
||||
<span class="t-yellow">ben:</span> Welkom dave! <span class="cursor-blink"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- FEATURES -->
|
||||
<section id="features">
|
||||
<div class="container fade-in">
|
||||
<div class="section-label">// features</div>
|
||||
<h2 class="section-title">Alles wat je nodig hebt</h2>
|
||||
<p class="section-desc">Terminal Chat is gebouwd met focus op eenvoud en functionaliteit. Geen overbodige complexiteit, gewoon chatten vanuit je terminal.</p>
|
||||
<div class="features-grid">
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="#22c55e" stroke-width="1.5"><rect x="2" y="3" width="16" height="14" rx="2"/><path d="M6 9l2 2 4-4"/></svg>
|
||||
</div>
|
||||
<h3>Login & Signup</h3>
|
||||
<p>Volledig authenticatiesysteem met gebruikersnaam en wachtwoord. Standaard testaccount inbegrepen.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="#22c55e" stroke-width="1.5"><path d="M4 16V4l6 4-6 4"/><path d="M14 8h4"/></svg>
|
||||
</div>
|
||||
<h3>Terminal Interface</h3>
|
||||
<p>Kleurrijke terminal interface met intuïtieve navigatie. Werkt op elke terminal die ANSI kleuren ondersteunt.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="#22c55e" stroke-width="1.5"><circle cx="10" cy="10" r="7"/><path d="M10 6v4l2.5 2.5"/></svg>
|
||||
</div>
|
||||
<h3>Realtime Messaging</h3>
|
||||
<p>Berichten worden direct afgeleverd via TCP-sockets. Geen vertraging, geen polling. Echte realtime communicatie.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="#22c55e" stroke-width="1.5"><path d="M3 5h14M3 10h14M3 15h14"/><circle cx="7" cy="5" r="1.5" fill="#22c55e"/><circle cx="13" cy="10" r="1.5" fill="#22c55e"/><circle cx="9" cy="15" r="1.5" fill="#22c55e"/></svg>
|
||||
</div>
|
||||
<h3>Meerdere Chats</h3>
|
||||
<p>Maak meerdere chatkanalen aan en wissel er eenvoudig tussen. Elk kanaal heeft zijn eigen berichtgeschiedenis.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="#22c55e" stroke-width="1.5"><circle cx="7" cy="8" r="3"/><circle cx="14" cy="8" r="3"/><path d="M2 16c0-2.2 2.2-4 5-4s5 1.8 5 4"/><path d="M12 12c2.8 0 5 1.8 5 4"/></svg>
|
||||
</div>
|
||||
<h3>Gebruikers Beheer</h3>
|
||||
<p>Voeg gebruikers toe aan chats met een simpel commando. Beheer wie er in welk kanaal zit.</p>
|
||||
</div>
|
||||
<div class="feature-card">
|
||||
<div class="feature-icon">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="#22c55e" stroke-width="1.5"><path d="M10 2a8 8 0 100 16 8 8 0 000-16z"/><path d="M10 6v8M6 10h8"/></svg>
|
||||
</div>
|
||||
<h3>Open Source</h3>
|
||||
<p>Volledig open source en vrij te gebruiken. Bekijk de code, draag bij, of fork het project voor eigen gebruik.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- DOCUMENTATIE -->
|
||||
<section id="docs">
|
||||
<div class="container fade-in">
|
||||
<div class="section-label">// documentatie</div>
|
||||
<h2 class="section-title">Snel aan de slag</h2>
|
||||
<p class="section-desc">Alles wat je nodig hebt om Terminal Chat te installeren, configureren en gebruiken.</p>
|
||||
<div class="docs-grid">
|
||||
|
||||
<!-- Installatie -->
|
||||
<div class="doc-card">
|
||||
<div class="doc-card-header">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="#22c55e" stroke-width="1.5"><path d="M10 2v12m0 0l-4-4m4 4l4-4M3 17h14"/></svg>
|
||||
<h3>Installatie</h3>
|
||||
</div>
|
||||
<div class="doc-card-body">
|
||||
<p>Installeer Terminal Chat met een enkel commando. Het script downloadt en configureert alles automatisch.</p>
|
||||
<div class="code-block">
|
||||
<span class="t-dim"># Automatische installatie</span><br>
|
||||
<span class="t-green">$</span> curl -s https://ben.de-roo.org/install/script.sh | bash<br><br>
|
||||
<span class="t-dim"># Of handmatig</span><br>
|
||||
<span class="t-green">$</span> git clone <repo-url><br>
|
||||
<span class="t-green">$</span> cd terminal-chat<br>
|
||||
<span class="t-green">$</span> pip install -r requirements.txt
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Eerste Start -->
|
||||
<div class="doc-card">
|
||||
<div class="doc-card-header">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="#06b6d4" stroke-width="1.5"><path d="M7 4l8 6-8 6V4z"/></svg>
|
||||
<h3>Eerste Start</h3>
|
||||
</div>
|
||||
<div class="doc-card-body">
|
||||
<p>Start eerst de server, daarna de client. Log in met het standaard testaccount of maak een nieuw account aan.</p>
|
||||
<div class="code-block">
|
||||
<span class="t-dim"># Start de server</span><br>
|
||||
<span class="t-green">$</span> python3 server.py<br><br>
|
||||
<span class="t-dim"># Start de client (ander terminal venster)</span><br>
|
||||
<span class="t-green">$</span> python3 client.py<br><br>
|
||||
<span class="t-dim"># Standaard testaccount</span><br>
|
||||
<span class="t-yellow">user:</span> test <span class="t-yellow">pass:</span> test
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Commando's -->
|
||||
<div class="doc-card" style="grid-column: 1 / -1;">
|
||||
<div class="doc-card-header">
|
||||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="#eab308" stroke-width="1.5"><path d="M4 16V4l6 4-6 4"/><path d="M14 8h4"/></svg>
|
||||
<h3>Beschikbare Commando's</h3>
|
||||
</div>
|
||||
<div class="doc-card-body">
|
||||
<p>Gebruik deze commando's tijdens het chatten om extra acties uit te voeren.</p>
|
||||
<table class="command-table">
|
||||
<thead>
|
||||
<tr><th>Commando</th><th>Beschrijving</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>/add <username></td>
|
||||
<td>Voeg een gebruiker toe aan de huidige chat</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>/break</td>
|
||||
<td>Verlaat de huidige chat en ga terug naar chat selectie</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>/quit</td>
|
||||
<td>Sluit het programma volledig af en verbreek de verbinding</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ARCHITECTUUR -->
|
||||
<section id="architectuur">
|
||||
<div class="container fade-in">
|
||||
<div class="section-label">// architectuur</div>
|
||||
<h2 class="section-title">Hoe het werkt</h2>
|
||||
<p class="section-desc">Terminal Chat gebruikt een klassiek client-server model met TCP-sockets voor betrouwbare, bidirectionele communicatie.</p>
|
||||
<div class="arch-block">
|
||||
<div class="arch-row">
|
||||
<span class="arch-label">Client</span>
|
||||
<span class="arch-value">Python script dat verbinding maakt met de server. Verwerkt input/output en toont berichten met ANSI kleuren.</span>
|
||||
</div>
|
||||
<div class="arch-arrow">↓ TCP Socket ↓</div>
|
||||
<div class="arch-row">
|
||||
<span class="arch-label">Server</span>
|
||||
<span class="arch-value">Draait centraal en beheert alle verbindingen, authenticatie, chatkanalen en bericht routing.</span>
|
||||
</div>
|
||||
<div class="arch-arrow">↓ Threading ↓</div>
|
||||
<div class="arch-row">
|
||||
<span class="arch-label">Opslag</span>
|
||||
<span class="arch-value">Gebruikers en chatgegevens worden server-side opgeslagen. Elke client krijgt een eigen thread voor non-blocking I/O.</span>
|
||||
</div>
|
||||
</div>
|
||||
<br><br>
|
||||
<div class="code-block" style="max-width:700px;">
|
||||
<span class="t-dim"># Vereenvoudigd overzicht</span><br><br>
|
||||
<span class="t-cyan">client.py</span> <span class="t-dim">→</span> Verbindt met server via socket<br>
|
||||
<span class="t-dim">→</span> Login / Signup prompt<br>
|
||||
<span class="t-dim">→</span> Chat selectie menu<br>
|
||||
<span class="t-dim">→</span> Berichten versturen & ontvangen<br><br>
|
||||
<span class="t-cyan">server.py</span> <span class="t-dim">→</span> Luistert op TCP poort<br>
|
||||
<span class="t-dim">→</span> Nieuwe thread per client<br>
|
||||
<span class="t-dim">→</span> Authenticatie afhandeling<br>
|
||||
<span class="t-dim">→</span> Bericht broadcast naar kanaal
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- FOOTER -->
|
||||
<footer>
|
||||
<p>Terminal Chat — Gemaakt met Python & TCP Sockets</p>
|
||||
<p style="margin-top: 8px;">
|
||||
<a href="#installatie">Installeren</a> ·
|
||||
<a href="#docs">Documentatie</a> ·
|
||||
<a href="#features">Features</a>
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
// === NAV SCROLL ===
|
||||
const navbar = document.getElementById('navbar');
|
||||
window.addEventListener('scroll', () => {
|
||||
navbar.classList.toggle('scrolled', window.scrollY > 20);
|
||||
});
|
||||
|
||||
// === COPY INSTALL COMMAND ===
|
||||
function copyInstall() {
|
||||
const cmd = document.getElementById('installCmd').textContent;
|
||||
navigator.clipboard.writeText(cmd).then(() => {
|
||||
const copyIcon = document.getElementById('copyIcon');
|
||||
const checkIcon = document.getElementById('checkIcon');
|
||||
const btn = document.getElementById('copyBtn');
|
||||
copyIcon.style.display = 'none';
|
||||
checkIcon.style.display = 'block';
|
||||
btn.classList.add('copied');
|
||||
setTimeout(() => {
|
||||
copyIcon.style.display = 'block';
|
||||
checkIcon.style.display = 'none';
|
||||
btn.classList.remove('copied');
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
|
||||
// === TERMINAL ANIMATION ===
|
||||
function animateTerminal() {
|
||||
const lines = document.querySelectorAll('.terminal-line');
|
||||
const observer = new IntersectionObserver((entries) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
lines.forEach(line => {
|
||||
const delay = parseInt(line.getAttribute('data-delay')) || 0;
|
||||
setTimeout(() => line.classList.add('visible'), delay);
|
||||
});
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
}, { threshold: 0.3 });
|
||||
observer.observe(document.getElementById('terminalBody'));
|
||||
}
|
||||
animateTerminal();
|
||||
|
||||
// === FADE-IN SECTIONS ===
|
||||
const fadeObserver = new IntersectionObserver((entries) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add('visible');
|
||||
fadeObserver.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
}, { threshold: 0.15 });
|
||||
|
||||
document.querySelectorAll('.fade-in').forEach(el => fadeObserver.observe(el));
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user