-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathchat.html
More file actions
165 lines (155 loc) · 6.37 KB
/
Copy pathchat.html
File metadata and controls
165 lines (155 loc) · 6.37 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>StudyQuest</title>
<link rel="stylesheet" href="chat.css">
<!-- Font Awesome CDN for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css">
<script src="auth_check.js" defer></script>
</head>
<body>
<header>
<h1 class="center-title">StudyQuest</h1>
</header>
<nav id="navbar" class="navbar horizontal-navbar">
<ul class="navbar-nav">
<li class="nav-item">
<a href="student_dashboard.html" class="nav-link">
<i class="fas fa-tasks"></i>
<span class="link-text">Dashboard</span>
</a>
</li>
<li class="nav-item">
<a href="chat.html" class="nav-link">
<i class="fas fa-robot"></i>
<span class="link-text">AI Buddy</span>
</a>
</li>
<li class="nav-item">
<a href="resources.html" class="nav-link">
<i class="fas fa-book"></i>
<span class="link-text">Resources</span>
</a>
</li>
<li class="nav-item">
<a href="notemaking.html" class="nav-link">
<i class="fas fa-book"></i>
<span class="link-text">Notes</span>
</a>
</li>
<li class="nav-item">
<a href="knowledge_map_page.html" class="nav-link">
<i class="fas fa-map"></i> <!-- Using a map icon, you can choose a different one if preferred -->
<span class="link-text">Knowledge Map</span>
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link logout-link" id="logout-btn">
<i class="fas fa-sign-out-alt"></i>
<span class="link-text">Logout</span>
</a>
</li>
</ul>
</nav>
<div class="container">
<aside>
<!-- Empty aside for layout consistency -->
</aside>
<main class="chat-layout">
<!-- Chat Interface - Left Side -->
<div class="chat-container">
<div class="chat-header">
<h1> C.I.V.A</h1>
<div class="chat-controls">
<button id="new-chat-btn" class="action-btn" style="background-color: #8b5cf6;">
<i class="fas fa-plus"></i> New Chat
</button>
<button id="clear-chat-btn" class="action-btn" style="background-color: #3e4a61;">
<i class="fas fa-trash"></i> Clear Chat
</button>
</div>
<div class="subject-selector">
<label for="chat-subject">Subject Context:</label>
<select id="chat-subject">
<option value="">General</option>
</select>
</div>
</div>
<div id="chat-window" class="chat-window">
<div class="message bot-message">
<p>Hello! I'm Scholarly, your AI Study Buddy! 📚</p>
<p>I'm here to help you with your studies. I know you're studying <span id="student-info-chat"></span>.</p>
<p>What would you like to learn about today?</p>
</div>
</div>
<div class="chat-input-area">
<textarea id="chat-input" placeholder="Ask me anything about your subjects..." rows="2"></textarea>
<button id="send-btn">
<i class="fas fa-paper-plane"></i>
</button>
</div>
<!-- Quick prompts for common questions -->
<div id="quick-prompts" style="margin-top: 10px; display: flex; gap: 5px; flex-wrap: wrap;">
<button class="quick-prompt" data-prompt="Explain this concept in simple terms">Explain Simply</button>
<button class="quick-prompt" data-prompt="Give me an example">Give Example</button>
<button class="quick-prompt" data-prompt="How is this useful in real life?">Real Life Use</button>
<button class="quick-prompt" data-prompt="Create a practice question">Practice Question</button>
<button class="quick-prompt" data-prompt="Summarize this chapter">Summarize</button>
</div>
</div>
<!-- Chat History - Right Side -->
<div class="chat-history-container">
<div class="history-header">
<h2><i class="fas fa-history"></i> Chat History</h2>
</div>
<div class="history-list" id="history-list">
<div class="history-placeholder">
<i class="fas fa-comments"></i>
<p>Your chat history will appear here</p>
</div>
</div>
</div>
</main>
<style>
.quick-prompt {
padding: 5px 10px;
background-color: #0f3460;
color: #e0e0e0;
border: 1px solid #e94560;
border-radius: 5px;
cursor: pointer;
font-size: 0.85rem;
transition: all 0.3s;
}
.quick-prompt:hover {
background-color: #e94560;
color: white;
}
.chat-controls {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
}
.action-btn {
padding: 0.5rem 1rem;
border: none;
border-radius: var(--border-radius-sm);
color: white;
cursor: pointer;
font-size: 0.875rem;
transition: all var(--transition-speed);
display: flex;
align-items: center;
gap: 0.5rem;
}
.action-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
</style>
<script src="script.js"></script>
<script src="chat.js"></script>
</body>
</html>