Skip to content

Commit 261a1b1

Browse files
committed
UI: Let's switch to dark mode
1 parent 88a782b commit 261a1b1

File tree

1 file changed

+34
-10
lines changed

1 file changed

+34
-10
lines changed

src/App.css

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/* CSS for chat container */
22
.chat-container {
3-
height: calc(100vh - 60px); /* Set height to viewport height - 60px for chat input and submit button */
4-
overflow-y: scroll; /* Enable vertical scrolling */
3+
height: calc(100vh - 60px);
4+
overflow-y: scroll;
55
padding: 20px;
6-
background-color: #f3f3f3;
7-
box-sizing: border-box; /* Fix box-sizing to prevent layout issues */
6+
background-color: #333; /* Update background color to dark */
7+
box-sizing: border-box;
88
}
99

1010
/* CSS for chat messages */
1111
.chat-messages {
1212
display: flex;
1313
flex-direction: column;
1414
gap: 10px;
15-
overflow-y: auto; /* Enable auto-scroll for messages */
15+
overflow-y: auto;
1616
}
1717

1818
/* CSS for chat message */
@@ -23,11 +23,14 @@
2323
.message-role {
2424
font-weight: bold;
2525
margin-right: 5px;
26+
color: #fff; /* Update text color to white */
2627
}
2728

2829
.message-content {
2930
padding: 10px;
3031
border-radius: 5px;
32+
background-color: #444; /* Update background color to darker shade */
33+
color: #fff; /* Update text color to white */
3134
}
3235

3336
/* CSS for user message */
@@ -58,19 +61,21 @@
5861
align-items: center;
5962
gap: 10px;
6063
padding: 20px;
61-
background-color: #f3f3f3;
62-
border-top: 1px solid #ddd;
63-
box-sizing: border-box; /* Fix box-sizing to prevent layout issues */
64-
position: fixed; /* Fix position to bottom of viewport */
64+
background-color: #222; /* Update background color to darker shade */
65+
border-top: 1px solid #444; /* Update border color to darker shade */
66+
box-sizing: border-box;
67+
position: fixed;
6568
bottom: 0;
66-
width: 100%; /* Set width to 100% to cover the entire viewport */
69+
width: 100%;
6770
}
6871

6972
.input-field {
7073
flex-grow: 1;
7174
padding: 10px;
7275
border: none;
7376
border-radius: 3px;
77+
background-color: #444; /* Update background color to darker shade */
78+
color: #fff; /* Update text color to white */
7479
}
7580

7681
.submit-button {
@@ -93,3 +98,22 @@
9398
background-color: #ff6b6b;
9499
color: #fff;
95100
}
101+
102+
/* App.css */
103+
.model-dropdown {
104+
/* Add styles for dark mode */
105+
background-color: #222;
106+
color: #fff;
107+
border: none;
108+
padding: 10px;
109+
}
110+
111+
.model-dropdown select {
112+
/* Add styles for dark mode */
113+
background-color: #444;
114+
color: #fff;
115+
border: none;
116+
outline: none;
117+
cursor: pointer;
118+
width: 100%;
119+
}

0 commit comments

Comments
 (0)