File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ body {
2+ background-image : radial-gradient (# 67f0c3 2px , transparent 1px );
3+ background-size : 45px 45px ;
4+ background-color : # a589f3 ;
5+ }
6+
17.app-container {
28 height : 100vh ;
39 width : 100vw ;
410 display : flex;
511 justify-content : center;
612 align-items : center;
713 margin : 0 ;
8- background-image : radial-gradient (# 67f0c3 2px , transparent 1px );
9- background-size : 45px 45px ;
10- background-color : # a589f3 ;
11- }
12-
13- .bot-wrapper {
14- padding-right : 1rem ;
15- padding-left : 1rem ;
16- width : 700px ;
17- }
18-
19- /* between tablet and mobile */
20- @media screen and (max-width : 521px ) {
21- .bot-wrapper {
22- width : 430px ;
23- }
24- }
25-
26- /* laptop */
27- @media screen and (min-width : 1024px ) {
28- .bot-wrapper {
29- width : 520px ;
30- }
3114}
Original file line number Diff line number Diff line change 11import React from "react" ;
2- import "./App.css" ;
32import Chatbot from "react-simple-chatbot" ;
3+ import "./App.css" ;
44import steps from "./MAIN-steps.js" ;
5- import userImg from "./assets/user1.jpg" ;
65import chatbotImg from "./assets/chatbot-logo-bg.jpg" ;
6+ import userImg from "./assets/user1.jpg" ;
77
88function App ( ) {
99 const stepsWithDelay = steps . map ( ( step ) => {
@@ -19,17 +19,15 @@ function App() {
1919
2020 return (
2121 < div className = "app-container" >
22- < div className = "bot-wrapper" >
23- < Chatbot
24- steps = { stepsWithDelay }
25- bubbleOptionStyle = { { backgroundColor : "white" , color : "#b317b9" } }
26- userAvatar = { userImg }
27- botAvatar = { chatbotImg }
28- headerTitle = { `Caroline's chatbot` }
29- width = "100%"
30- height = "100%"
31- />
32- </ div >
22+ < Chatbot
23+ steps = { stepsWithDelay }
24+ bubbleOptionStyle = { { backgroundColor : "white" , color : "#b317b9" } }
25+ userAvatar = { userImg }
26+ botAvatar = { chatbotImg }
27+ headerTitle = { `Caroline's chatbot` }
28+ width = "500px"
29+ height = "700px"
30+ />
3331 </ div >
3432 ) ;
3533}
You can’t perform that action at this time.
0 commit comments