Skip to content

Commit ce8628a

Browse files
committed
[REFACTOR] the design of the webpage
1 parent ae00a29 commit ce8628a

File tree

15 files changed

+156
-78
lines changed

15 files changed

+156
-78
lines changed
-41 Bytes
Binary file not shown.

html/assets/css/bubbles.css

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@
33
** File description:
44
** bubbles.css */
55

6+
:root {
7+
--message-receiver-background: cadetblue;
8+
--message-receiver-color: white;
9+
--message-sender-background: steelblue;
10+
--message-sender-color: black;
11+
}
12+
613
/* Taken from: https://codepen.io/Founts/details/AJyVOr */
714

815
/* container */
@@ -265,13 +272,6 @@
265272
-webkit-margin-after: 0em;
266273
}
267274

268-
:root {
269-
--message-receiver-background: #44c2eb;
270-
--message-receiver-color: white;
271-
--message-sender-background: lightgreen;
272-
--message-sender-color: black;
273-
}
274-
275275
.receiver {
276276
background-color: var(--message-receiver-background);
277277
color: var(--message-receiver-color);
@@ -320,3 +320,8 @@
320320
justify-content: left;
321321
}
322322

323+
.message_button {
324+
border: 1px transparent;
325+
border-radius: 30px;
326+
}
327+

html/assets/css/chatbot.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
** chatbot.css */
55

66
:root {
7-
--bot-background-color: #44c2eb;
7+
--bot-background-color: cadetblue;
88
--bot-color: black;
99
--bot-link-clicked: purple;
10-
--user-background-color: lightgreen;
10+
--user-background-color: steelblue;
1111
--user-color: black;
1212
}
1313

@@ -21,7 +21,7 @@
2121

2222
.chatbotButton button {
2323
border: none;
24-
background-color: #4CAF50;
24+
background-color: steelblue;
2525
color: inherit;
2626
padding: 0;
2727
border-radius: 50%;

html/assets/css/dashboard.css

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
flex-direction: row;
44
justify-content: space-between;
55
flex-wrap: nowrap;
6+
background-color: silver;
7+
color: black;
68
}
79

810
.widget_button {
@@ -13,25 +15,34 @@
1315

1416
.button_desing {
1517
padding: 1px 2px;
16-
background-color: #007bff;
18+
background-color: steelblue;
1719
color: white;
1820
border: none;
1921
cursor: pointer;
22+
font-size: 15px;
2023
}
2124

2225
.button_desing:hover {
23-
background-color: #0056b3;
26+
background-color: steelblue;
2427
}
2528

2629
#widgets_body {
2730
display: flex;
2831
}
2932

3033
.search_container {
34+
padding-top: 10px;
35+
padding-bottom: 10px;
3136
display: flex;
3237
flex-direction: row;
33-
justify-content: stretch;
38+
justify-content: flex-start;
3439
flex-wrap: nowrap;
3540
gap: 5px;
3641
}
3742

43+
/* For the sun */
44+
45+
svg.bi.bi-sun-fill.mb-1 {
46+
color: black;
47+
}
48+

html/assets/css/forum_frame.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
.aside-left {
1515
flex-basis: 33.33%;
1616
border-right: 1px solid black;
17+
background-color: #d3d3d3ab;
1718
}
1819

1920
.aside-right {
@@ -32,3 +33,13 @@
3233
overflow-y: auto !important;
3334
}
3435

36+
section.userInput {
37+
gap: 10px;
38+
display: flex;
39+
}
40+
41+
.message_button {
42+
border: 1px transparent;
43+
border-radius: 30px;
44+
}
45+

html/assets/css/forum_subjects.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/* Style the button when it is active */
3131

3232
.buttonList button.active, .buttonList li.active {
33-
background-color: #007bff;
33+
background-color: steelblue;
3434
color: white;
3535
border-radius: 0px;
3636
}

html/assets/css/header_button.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
}
77

88
.my-btn-group-toggle .my-btn.active {
9-
background-color: #4CAF50;
10-
color: white;
9+
/*background-color: #4CAF50;*/
10+
border-bottom: 3px steelblue solid;
11+
/*color: white;*/
1112
}
1213

html/assets/css/question_box.css

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
border-radius: 10px;
1111
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
1212
display: block;
13+
background-color: gainsboro;
14+
color: black;
1315
}
1416

1517
.quizz_container button {
1618
display: block;
17-
width: 100%;
1819
margin: 10px 0;
1920
padding: 10px;
2021
font-size: 16px;
@@ -23,6 +24,18 @@
2324
border-radius: 5px;
2425
}
2526

27+
@media (max-width: 699px) {
28+
.quizz_container button {
29+
width: 80%;
30+
}
31+
}
32+
33+
@media (min-width: 700px) {
34+
.quizz_container button {
35+
width: 164px;
36+
}
37+
}
38+
2639
.quizz_container button:hover {
2740
background-color: #ddd;
2841
}
@@ -46,11 +59,25 @@
4659
.quizz_container div div {
4760
display: flex;
4861
flex-direction: column;
49-
padding-left: 5px;
62+
padding-left: 0px;
5063
padding-right: 5px;
64+
gap: 5px;
65+
width: 446px;
5166
}
5267

5368
.quizz_container div div input {
5469
gap: 5px;
5570
}
5671

72+
input.answer {
73+
background-color: cadetblue;
74+
color: black;
75+
border-color: transparent;
76+
}
77+
78+
.question_quizz {
79+
background-color: #adb5bd;
80+
color: black;
81+
border-color: transparent;
82+
}
83+

html/assets/js/chatbot/chatbot.js

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

html/assets/js/user/inject_test_widget_emotions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ function getIframeOfTheGame() {
2929
// URL for the iframe (can be dynamically set as needed)
3030
var iframeUrl = `${window.location.origin}${checkHtmlPath()}/games`;
3131
const button = document.createElement("button");
32+
button.classList.add("message_button");
3233
button.onclick = function () {
3334
window.open(iframeUrl, '_blank', 'width=600,height=400');
3435
}

0 commit comments

Comments
 (0)