botserver/web/desktop/index.html
Rodrigo Rodriguez (Pragmatismo) 017d4aecd0 feat: add Chat navigation link and section mapping
- Added a new "Chat" link in the desktop navigation bar with appropriate click handling and active state styling.
- Updated the layout configuration to include the Chat section, mapping it to `chat/chat.html`.
- Enables users to switch to the Chat interface directly from the main navigation.
2025-11-16 22:53:51 -03:00

42 lines
1.6 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>General Bots Desktop</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="stylesheet" href="css/app.css" />
<script defer src="js/alpine.js"></script>
</head>
<body>
<nav x-data="{ current: 'drive' }">
<div class="logo">⚡ General Bots</div>
<a href="#chat" @click.prevent="current = 'chat'; window.switchSection('chat')"
:class="{ active: current === 'chat' }">💬 Chat</a>
<a href="#drive" @click.prevent="current = 'drive'; window.switchSection('drive')"
:class="{ active: current === 'drive' }">📁 Drive</a>
<a href="#tasks" @click.prevent="current = 'tasks'; window.switchSection('tasks')"
:class="{ active: current === 'tasks' }">✓ Tasks</a>
<a href="#mail" @click.prevent="current = 'mail'; window.switchSection('mail')"
:class="{ active: current === 'mail' }">✉ Mail</a>
</nav>
<div id="main-content">
<!-- Sections will be loaded dynamically -->
</div>
<!-- Load Module Scripts -->
<script src="js/layout.js"></script>
<script src="drive/drive.js"></script>
<script src="tasks/tasks.js"></script>
<script src="mail/mail.js"></script>
<script src="dashboard/dashboard.js"></script>
<script src="editor/editor.js"></script>
<script src="player/player.js"></script>
<script src="paper/paper.js"></script>
<script src="settings/settings.js"></script>
<script src="tables/tables.js"></script>
<script src="news/news.js"></script>
</body>
</html>