File tree Expand file tree Collapse file tree 4 files changed +53
-7
lines changed Expand file tree Collapse file tree 4 files changed +53
-7
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import Uploadnote from "./components/Uploadnote";
15
15
import Uploadpyq from "./components/Uploadpyq" ;
16
16
import Anythingmore from "./components/Anythingmore" ;
17
17
import Uploadn from "./components/Uploadn" ;
18
+ import Aibot from "./components/Aibot" ;
18
19
19
20
function App ( ) {
20
21
return (
@@ -41,6 +42,7 @@ function App() {
41
42
< Route path = "/anythingmore" element = { < Anythingmore /> } />
42
43
< Route path = "/uploadn" element = { < Uploadn /> } />
43
44
45
+ < Route path = "/aibot" element = { < Aibot /> } />
44
46
45
47
</ Routes >
46
48
</ BrowserRouter >
Original file line number Diff line number Diff line change 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
+ ] ;
2
11
3
- const Aibot = ( ) => {
4
12
return (
5
13
< 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 >
7
45
</ div >
8
- )
9
- }
46
+ ) ;
47
+ } ;
10
48
11
- export default Aibot
49
+ export default Tutor ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const Navbar = () => {
46
46
to = "/team"
47
47
className = "hover:text-gray-900 px-3 py-2 rounded-md text-sm"
48
48
>
49
- Team
49
+ Quiz
50
50
</ Link >
51
51
< Link
52
52
to = "/studyplanner"
You can’t perform that action at this time.
0 commit comments