webinterface/client/welcome.html

66 lines
2.4 KiB
HTML
Raw Permalink Normal View History

2024-10-29 21:09:13 +01:00
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Willkommen</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
2024-11-14 17:43:37 +01:00
<!-- The modal for the alert -->
<div id="custom-alert" class="custom-alert">
<div class="alert-content">
<span id="alert-message"></span>
<button id="close-alert" class="close-btn">OK</button>
</div>
</div>
2024-10-29 22:06:53 +01:00
<!-- Header für Benutzer-Info und Buttons -->
2024-10-30 17:33:28 +01:00
<header class="header">
<h1 class="header-welcome">Ein simples Chat-Interface.</h1>
2024-10-29 22:06:53 +01:00
2024-10-30 17:33:28 +01:00
<div class="header-user-info">
<p><strong>Benutzername:</strong> <span id="username"></span></p>
<p><strong>Admin:</strong> <span id="isAdmin"></span></p>
2024-10-30 17:33:28 +01:00
</div>
2024-10-29 22:06:53 +01:00
2024-10-30 17:33:28 +01:00
<div class="header-buttons">
<button id="adminPermissionsBtn" class="header-btn" style="display: none;">Admin-Einstellungen</button>
<button id="logoutBtn" class="header-btn">Abmelden</button>
</div>
</header>
2024-10-29 22:06:53 +01:00
<!-- Freier Platz für zukünftige Features -->
2024-10-30 17:17:02 +01:00
<div class="main-container">
<!-- Linke Seitenleiste für Chat-Sessions -->
<div class="sidebar" id="chatSidebar">
<h3>Gespeicherte Chats</h3>
<button id="newChatButton">Neuer Chat</button>
<div id="chatList"></div>
</div>
<!-- Chatbereich -->
<div class="chat-container">
<div id="progress-main-div">
<div id="progress-container" style="width: 100%; background-color: #f3f3f3; border-radius: 5px; height: 20px;">
<div id="progress-bar" style="width: 0; background-color: #4caf50; height: 100%; border-radius: 5px;"></div>
</div>
<p id="usage-text" style="text-align: center; margin-top: 10px;">0 / 70144 used</p>
</div>
2024-10-30 17:17:02 +01:00
<div class="chat-box" id="chatBox">
<!-- Nachrichten werden hier angezeigt -->
</div>
<div class="chat-input-container">
2024-10-30 17:17:02 +01:00
<textarea id="chatInput" class="chat-input" placeholder="Schreibe eine Nachricht..."></textarea>
<button id="sendButton" class="chat-send-button">Senden</button>
</div>
</div>
2024-10-30 17:17:02 +01:00
</div>
2024-10-31 16:33:05 +01:00
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
2024-11-14 17:43:37 +01:00
<script type="module" src="js/shared_functions.js"></script>
<script type="module" src="js/chat.js"></script>
<script type="module" src="js/main.js"></script>
2024-10-29 21:09:13 +01:00
</body>
</html>