File size: 3,076 Bytes
c024705
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <title>AIMHSA Chat</title>
    <link rel="stylesheet" href="style.css?hnb" />
    
    <!-- Configuration Management -->
    <script src="config.js"></script>
    <script src="config-ui.js"></script>
</head>
<body>
    <div class="app">
        <aside class="sidebar">
            <div class="sidebar-header">
                <div class="user-info">
                    <div class="avatar">👤</div>
                    <div class="user-details">
                        <div class="username" id="username">Guest</div>
                        <div class="status">Online</div>
                    </div>
                </div>
                <button id="newChatBtn" class="new-chat-btn">
                    <span>+</span> New Chat
                </button>
            </div>
            
            <div class="history-section">
                <h3>Recent Conversations</h3>
                <div class="history-list" id="historyList">
                    <!-- Chat history items will be dynamically added here -->
                </div>
                <h3 style="margin-top:16px">Archived</h3>
                <div class="history-list" id="archivedList">
                    <!-- Archived items -->
                </div>
            </div>
            
            <div class="sidebar-footer">
                <button id="logoutBtn" class="logout-btn">Sign Out</button>
            </div>
        </aside>

        <main class="chat-area">
            <header class="chat-header">
                <div class="chat-title">
                    <h2>AIMHSA</h2>
                    <span class="chat-subtitle">Mental Health Companion</span>
                </div>
                <div class="chat-actions">
                    <button id="clearChatBtn" class="action-btn clear">Clear Messages</button>
                    <button id="clearHistoryBtn" class="action-btn danger">Clear History</button>
                </div>
            </header>

            <div class="messages-container">
                <div id="messages" class="messages"></div>
            </div>

            <form id="form" class="message-composer">
                <div class="composer-input">
                    <textarea id="query" autocomplete="off" placeholder="Type your message..." rows="1"></textarea>
                    <label class="file-upload-btn" title="Upload PDF">
                        <input id="file" type="file" accept="application/pdf" />
                        📎
                    </label>
                    <button type="submit" id="send" class="send-btn">
                        <span></span>
                    </button>
                </div>
            </form>
        </main>
    </div>

    <!-- Configuration Scripts (load first) -->
    <script src="js/config.js"></script>
    <script src="js/api.js"></script>
    
    <!-- Main Application Script -->
    <script src="app.js"></script>
</body>
</html>