Skip to content

Commit 02a93b6

Browse files
Fix CSS overflow issue and cleaned up css
1 parent 8136be1 commit 02a93b6

2 files changed

Lines changed: 17 additions & 36 deletions

File tree

src/App.css

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,14 @@
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
}

src/App.js

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import React from "react";
2-
import "./App.css";
32
import Chatbot from "react-simple-chatbot";
3+
import "./App.css";
44
import steps from "./MAIN-steps.js";
5-
import userImg from "./assets/user1.jpg";
65
import chatbotImg from "./assets/chatbot-logo-bg.jpg";
6+
import userImg from "./assets/user1.jpg";
77

88
function 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
}

0 commit comments

Comments
 (0)