2025-05-31 18:01:02 +02:00

62 lines
2.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>Waku Dogfooding - Refactored</title>
<link rel="apple-touch-icon" href="./favicon.png" />
<link rel="manifest" href="./manifest.json" />
<link rel="icon" href="./favicon.ico" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div class="app-container">
<header>
<h1>Waku Message Center</h1>
<div class="connection-status">
<span>Your Peer ID: <span id="peerIdDisplay">Connecting...</span></span>
</div>
</header>
<main>
<section class="message-stats">
<h2>Message Statistics</h2>
<div class="stats-counters">
<div>
<span class="counter-value" id="sentByMeCount">0</span>
<span class="counter-label">Sent by Me</span>
</div>
<div>
<span class="counter-value" id="receivedMineCount">0</span>
<span class="counter-label">Received (Mine)</span>
</div>
<div>
<span class="counter-value" id="receivedOthersCount">0</span>
<span class="counter-label">Received (Others)</span>
</div>
</div>
</section>
<section class="message-controls">
<h2>Controls</h2>
<button id="sendMessageButton" class="btn btn-primary">Send New Message Batch</button>
<div class="search-container">
<input type="text" id="searchInput" placeholder="Search messages by content..." />
<button id="searchButton" class="btn">Search</button>
</div>
</section>
<section class="message-display">
<h2>Message Log</h2>
<div id="messageList" class="message-list">
</div>
</section>
</main>
<footer>
<p>Waku Dogfooding App - Modern UI</p>
</footer>
</div>
<script src="./index.js"></script>
</body>
</html>