Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
22_23-J 12
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
22_23-J 12
22_23-J 12
Commits
9db4b880
Commit
9db4b880
authored
Feb 03, 2023
by
IT19965864
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chat box front
parent
ea889ede
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
107 additions
and
0 deletions
+107
-0
Frontend/src/pages/ChatBox.js
Frontend/src/pages/ChatBox.js
+107
-0
No files found.
Frontend/src/pages/ChatBox.js
0 → 100644
View file @
9db4b880
import
React
from
"
react
"
;
import
{
makeStyles
}
from
"
@material-ui/core/styles
"
;
import
Paper
from
"
@material-ui/core/Paper
"
;
import
Grid
from
"
@material-ui/core/Grid
"
;
import
Box
from
"
@material-ui/core/Box
"
;
import
Divider
from
"
@material-ui/core/Divider
"
;
import
TextField
from
"
@material-ui/core/TextField
"
;
import
Typography
from
"
@material-ui/core/Typography
"
;
import
List
from
"
@material-ui/core/List
"
;
import
ListItem
from
"
@material-ui/core/ListItem
"
;
import
ListItemIcon
from
"
@material-ui/core/ListItemIcon
"
;
import
ListItemText
from
"
@material-ui/core/ListItemText
"
;
import
{
Icon
}
from
"
@iconify/react
"
;
import
Fab
from
"
@material-ui/core/Fab
"
;
import
SendIcon
from
"
@mui/icons-material/Send
"
;
import
{
styled
}
from
"
@mui/material/styles
"
;
const
Item
=
styled
(
Paper
)(({
theme
})
=>
({
backgroundColor
:
theme
.
palette
.
mode
===
"
dark
"
?
"
#1A2027
"
:
"
#B3B6B7
"
,
...
theme
.
typography
.
body2
,
padding
:
theme
.
spacing
(
1
),
textAlign
:
"
center
"
,
color
:
theme
.
palette
.
text
.
secondary
,
}));
const
useStyles
=
makeStyles
({
messageArea
:
{
height
:
"
70vh
"
,
overflowY
:
"
auto
"
,
backgroundColor
:
"
#FBD2FB
"
,
},
});
const
ChatBox
=
()
=>
{
const
classes
=
useStyles
();
return
(
<
Box
>
<
Grid
container
direction
=
"
row
"
justifyContent
=
"
space-around
"
alignItems
=
"
flex-start
"
>
<
Grid
item
xs
=
{
10
}
>
<
Typography
variant
=
"
h5
"
style
=
{{
padding
:
"
10px
"
}}
>
<
Icon
icon
=
"
teenyicons:chatbot-outline
"
inline
=
{
true
}
/> Hope Worl
d
<
/Typography
>
<
Item
>
<
List
className
=
{
classes
.
messageArea
}
>
<
ListItem
>
<
Grid
item
xs
=
{
5
}
>
<
ListItemText
align
=
"
left
"
primary
=
"
Hello, I'm Yeshi...
"
style
=
{{
backgroundColor
:
"
#DE52DE
"
,
padding
:
"
10px
"
,
borderRadius
:
"
50px
"
,
}}
/
>
<
/Grid
>
<
/ListItem
>
<
ListItem
>
<
Grid
container
justifyContent
=
"
flex-end
"
>
<
Grid
item
xs
=
{
5
}
>
<
ListItemText
align
=
"
right
"
primary
=
"
Hola
"
style
=
{{
backgroundColor
:
"
#DE52DE
"
,
padding
:
"
10px
"
,
borderRadius
:
"
50px
"
,
}}
><
/ListItemText
>
<
/Grid
>
<
/Grid
>
<
/ListItem
>
<
/List
>
<
Divider
/>
<
Grid
container
style
=
{{
padding
:
"
20px
"
,
backgroundColor
:
"
#DA72DA
"
}}
>
<
Grid
item
xs
=
{
11
}
>
<
TextField
variant
=
"
filled
"
label
=
"
Type Here.......
"
fullWidth
style
=
{{
backgroundColor
:
"
white
"
,
borderRadius
:
"
5px
"
}}
/
>
<
/Grid
>
<
Grid
xs
=
{
1
}
align
=
"
right
"
>
<
Fab
color
=
"
secondary
"
aria
-
label
=
"
add
"
>
<
SendIcon
/>
<
/Fab
>
<
/Grid
>
<
/Grid
>
<
/Item
>
<
/Grid
>
<
/Grid
>
<
/Box
>
);
};
export
default
ChatBox
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment