Redesign WebClient with Catppuccin Mocha terminal theme, zero emojis, and performance optimizations
This commit is contained in:
parent
25696db42c
commit
b60b5a0774
3 changed files with 699 additions and 528 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<meta name="theme-color" content="#090d16">
|
||||
<meta name="theme-color" content="#11111b">
|
||||
<meta name="color-scheme" content="dark">
|
||||
<title>GsDChat - Web Client</title>
|
||||
<!-- Preload stylesheet to prevent flash of unstyled content and forced layout reflow -->
|
||||
|
|
@ -12,14 +12,15 @@
|
|||
<!-- Critical baseline styles before external stylesheet parse -->
|
||||
<style>
|
||||
html, body {
|
||||
background-color: #090d16;
|
||||
color: #f8fafc;
|
||||
background-color: #11111b;
|
||||
color: #cdd6f4;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: 100dvh;
|
||||
overflow: hidden;
|
||||
font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Monaco, Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
|
||||
}
|
||||
</style>
|
||||
<script defer src="/app.js"></script>
|
||||
|
|
@ -28,8 +29,8 @@
|
|||
<!-- Drag & Drop Overlay -->
|
||||
<div id="dropOverlay" class="drop-overlay">
|
||||
<div class="drop-message">
|
||||
<span class="drop-icon">📎</span>
|
||||
<span class="drop-text">Drop file here to upload to channel</span>
|
||||
<span class="drop-icon">[^]</span>
|
||||
<span class="drop-text">+ DROP FILE TO UPLOAD +</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -40,14 +41,14 @@
|
|||
<header class="app-header">
|
||||
<div class="header-left">
|
||||
<span class="status-indicator" id="connIndicator" title="Connection Status"></span>
|
||||
<h1 class="server-title" id="serverTitle">GsDChat</h1>
|
||||
<h1 class="server-title" id="serverTitle">GsDChat // client</h1>
|
||||
</div>
|
||||
|
||||
<nav class="nav-tabs" id="navTabs">
|
||||
<button class="nav-tab active" data-tab="chat">💬 Chat</button>
|
||||
<button class="nav-tab" data-tab="channels">📁 Channels</button>
|
||||
<button class="nav-tab" data-tab="users">👥 Users</button>
|
||||
<button class="nav-tab" data-tab="files">📎 Files</button>
|
||||
<button class="nav-tab active" data-tab="chat">[1:chat]</button>
|
||||
<button class="nav-tab" data-tab="channels">[2:channels]</button>
|
||||
<button class="nav-tab" data-tab="users">[3:users]</button>
|
||||
<button class="nav-tab" data-tab="files">[4:files]</button>
|
||||
</nav>
|
||||
|
||||
<div class="header-right">
|
||||
|
|
@ -55,7 +56,7 @@
|
|||
<span class="user-name" id="currentUsername"></span>
|
||||
<span class="user-role" id="currentUserRole"></span>
|
||||
</div>
|
||||
<button class="btn btn-outline-danger btn-sm" id="logoutBtn" title="Logout">Disconnect</button>
|
||||
<button class="btn btn-outline-danger btn-sm" id="logoutBtn" title="Logout">[Disconnect]</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
|
@ -74,7 +75,7 @@
|
|||
</div>
|
||||
<div class="chat-header-actions">
|
||||
<button type="button" class="btn btn-sm btn-outline-members" id="toggleMembersBtn" title="Toggle Online Members">
|
||||
👥 <span class="members-btn-label">Online</span> (<span id="chatHeaderOnlineCount">0</span>)
|
||||
[●] <span class="members-btn-label">Online</span> (<span id="chatHeaderOnlineCount">0</span>)
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -83,24 +84,25 @@
|
|||
<div class="chat-main-area">
|
||||
<div class="chat-messages" id="chatMessages">
|
||||
<div class="welcome-message">
|
||||
<h3 id="welcomeMotd">Welcome to GsDChat!</h3>
|
||||
<p>Select a channel or start chatting below.</p>
|
||||
<div class="welcome-motd" id="welcomeMotd">== Connected to GsDChat ==</div>
|
||||
<div class="welcome-hint">> Select a channel or enter a message below. Type /help for commands.</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="chat-input-bar">
|
||||
<label class="btn-icon upload-btn" title="Upload File">
|
||||
📎
|
||||
[^]
|
||||
<input type="file" id="fileInput" style="display:none;">
|
||||
</label>
|
||||
<span class="input-prompt">></span>
|
||||
<input type="text" id="messageInput" placeholder="Message #general... (or /help)" autocomplete="off">
|
||||
<button class="btn btn-primary send-btn" id="sendBtn">Send</button>
|
||||
<button class="btn btn-primary send-btn" id="sendBtn">[Send]</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<aside class="chat-members-sidebar" id="chatMembersSidebar">
|
||||
<div class="members-sidebar-header">
|
||||
<span>Online Members</span>
|
||||
<span>ONLINE MEMBERS</span>
|
||||
<span class="member-count-badge" id="chatOnlineCountBadge">0</span>
|
||||
</div>
|
||||
<div class="chat-online-users-list" id="chatOnlineUsersList">
|
||||
|
|
@ -113,8 +115,8 @@
|
|||
<!-- View 2: Channels View -->
|
||||
<section id="view-channels" class="tab-view">
|
||||
<div class="view-header">
|
||||
<h2>Server Channels</h2>
|
||||
<button class="btn btn-primary" id="openCreateChannelBtn" style="display:none;">+ Create Channel</button>
|
||||
<h2>== SERVER CHANNELS ==</h2>
|
||||
<button class="btn btn-primary" id="openCreateChannelBtn" style="display:none;">[+] Create Channel</button>
|
||||
</div>
|
||||
<div class="channel-list" id="channelList">
|
||||
<!-- Populated by JS -->
|
||||
|
|
@ -122,18 +124,18 @@
|
|||
|
||||
<!-- Channel Creation Form -->
|
||||
<div class="card channel-create-card" id="createChannelCard" style="display:none;">
|
||||
<h3>Create New Channel</h3>
|
||||
<h3>[+] Create New Channel</h3>
|
||||
<div class="form-group">
|
||||
<label for="newChannelName">Channel Name</label>
|
||||
<input type="text" id="newChannelName" placeholder="e.g. gaming, music">
|
||||
<input type="text" id="newChannelName" placeholder="e.g. gaming, dev, music">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="newChannelTopic">Topic (Optional)</label>
|
||||
<input type="text" id="newChannelTopic" placeholder="Channel description...">
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<button class="btn btn-primary" id="submitCreateChannelBtn">Create</button>
|
||||
<button class="btn btn-secondary" id="cancelCreateChannelBtn">Cancel</button>
|
||||
<button class="btn btn-primary" id="submitCreateChannelBtn">[Create]</button>
|
||||
<button class="btn btn-secondary" id="cancelCreateChannelBtn">[Cancel]</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
|
@ -141,8 +143,8 @@
|
|||
<!-- View 3: Users View -->
|
||||
<section id="view-users" class="tab-view">
|
||||
<div class="view-header">
|
||||
<h2>Community Members</h2>
|
||||
<span class="user-count-badge" id="userCountBadge">0 Online / 0 Total</span>
|
||||
<h2>== COMMUNITY MEMBERS ==</h2>
|
||||
<span class="user-count-badge" id="userCountBadge">[ 0 Online / 0 Total ]</span>
|
||||
</div>
|
||||
<div class="user-list" id="userList">
|
||||
<!-- Populated by JS -->
|
||||
|
|
@ -152,9 +154,9 @@
|
|||
<!-- View 4: Files View -->
|
||||
<section id="view-files" class="tab-view">
|
||||
<div class="view-header">
|
||||
<h2>Shared Files</h2>
|
||||
<h2>== SHARED FILES ==</h2>
|
||||
<label class="btn btn-primary">
|
||||
+ Upload File
|
||||
[+] Upload File
|
||||
<input type="file" id="filesViewUploadInput" style="display:none;">
|
||||
</label>
|
||||
</div>
|
||||
|
|
@ -172,13 +174,14 @@
|
|||
<div id="authModal" class="modal-backdrop">
|
||||
<div class="modal-card">
|
||||
<div class="modal-header">
|
||||
<div class="modal-badge">[ AUTHENTICATION REQUIRED ]</div>
|
||||
<h2 id="modalServerName">GsDChat Community</h2>
|
||||
<p class="modal-motd" id="modalMotd">Secure & Private Messaging</p>
|
||||
<p class="modal-motd" id="modalMotd">Secure & Private Messaging</p>
|
||||
</div>
|
||||
|
||||
<div class="auth-tabs">
|
||||
<button class="auth-tab active" id="tabLogin">Login</button>
|
||||
<button class="auth-tab" id="tabRegister">Register</button>
|
||||
<button class="auth-tab active" id="tabLogin">[Login]</button>
|
||||
<button class="auth-tab" id="tabRegister">[Register]</button>
|
||||
</div>
|
||||
|
||||
<form id="authForm" class="auth-form" onsubmit="return false;">
|
||||
|
|
@ -204,7 +207,7 @@
|
|||
|
||||
<div class="auth-error" id="authError"></div>
|
||||
|
||||
<button type="submit" class="btn btn-primary btn-block" id="authSubmitBtn">Login</button>
|
||||
<button type="submit" class="btn btn-primary btn-block" id="authSubmitBtn">[ Login ]</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue