Skip to content

Commit c959a7c

Browse files
tutor 1
1 parent 4bb0f12 commit c959a7c

File tree

4 files changed

+53
-7
lines changed

4 files changed

+53
-7
lines changed

client/src/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import Uploadnote from "./components/Uploadnote";
1515
import Uploadpyq from "./components/Uploadpyq";
1616
import Anythingmore from "./components/Anythingmore";
1717
import Uploadn from "./components/Uploadn";
18+
import Aibot from "./components/Aibot";
1819

1920
function App() {
2021
return (
@@ -41,6 +42,7 @@ function App() {
4142
<Route path="/anythingmore" element={<Anythingmore/>} />
4243
<Route path="/uploadn" element={<Uploadn/>} />
4344

45+
<Route path="/aibot" element={<Aibot/>} />
4446

4547
</Routes>
4648
</BrowserRouter>

client/src/components/Aibot.jsx

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,49 @@
1-
import React from 'react'
1+
import React from 'react';
2+
import Navbar from './Navbar';
3+
const Tutor = () => {
4+
const avatarNarration = 'Hello! How can I assist you today?';
5+
const ourReply = 'We would like to learn about artificial intelligence.';
6+
const tutorImages = [
7+
'image1.jpg',
8+
'image2.jpg',
9+
'image3.jpg'
10+
];
211

3-
const Aibot = () => {
412
return (
513
<div>
6-
14+
<Navbar />
15+
<div className="flex flex-col items-center justify-center py-10">
16+
<div className="w-full max-w-xl bg-gray-100 rounded-lg shadow-lg p-6 mb-6">
17+
<div className="flex items-center">
18+
<div className="w-16 h-16 rounded-full bg-blue-500 flex-shrink-0"></div>
19+
<div className="ml-4">
20+
<p className="text-lg font-bold">AI Tutor</p>
21+
<p className="text-gray-500 text-sm">{avatarNarration}</p>
22+
</div>
23+
</div>
24+
</div>
25+
26+
<div className="w-full max-w-xl bg-gray-100 rounded-lg shadow-lg p-6 mb-6">
27+
<div className="flex items-center">
28+
<div className="w-16 h-16 rounded-full bg-green-500 flex-shrink-0"></div>
29+
<div className="ml-4">
30+
<p className="text-lg font-bold">You</p>
31+
<p className="text-gray-500 text-sm">{ourReply}</p>
32+
</div>
33+
</div>
34+
</div>
35+
36+
<div className="w-full max-w-xl bg-gray-100 rounded-lg shadow-lg p-6">
37+
<h3 className="text-lg font-medium mb-4">Related Images:</h3>
38+
<div className="grid grid-cols-3 gap-4">
39+
{tutorImages.map((image, index) => (
40+
<img key={index} src={image} alt={`Image ${index + 1}`} className="rounded-lg" />
41+
))}
42+
</div>
43+
</div>
44+
</div>
745
</div>
8-
)
9-
}
46+
);
47+
};
1048

11-
export default Aibot
49+
export default Tutor;

client/src/components/Navbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const Navbar = () => {
4646
to="/team"
4747
className="hover:text-gray-900 px-3 py-2 rounded-md text-sm"
4848
>
49-
Team
49+
Quiz
5050
</Link>
5151
<Link
5252
to="/studyplanner"

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)