Skip to content

Commit a540bcd

Browse files
authored
Merge pull request #11 from oslabs-beta/laura
Updated collab design plus mouse tracking
2 parents f9b0a1a + 26b78d9 commit a540bcd

File tree

3 files changed

+28
-25
lines changed

3 files changed

+28
-25
lines changed

app/src/components/left/RoomsContainer.tsx

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const RoomsContainer = () => {
7373
//run everytime when a client connects to server
7474
socket.on('connect', () => {
7575
socket.emit('joining', userName, roomCode);
76-
console.log(`${userName} Joined room ${roomCode} from RoomsConatiner`);
76+
console.log(`${userName} Joined room ${roomCode} from RoomsContainer`);
7777
});
7878

7979
//If you are the host: send current state to server when a new user joins
@@ -175,27 +175,15 @@ const RoomsContainer = () => {
175175
>
176176
{' '}
177177
{/* live room display */}
178-
<Typography variant="h5" color={'white'}>
178+
<Typography variant="h5" color={'#f2fbf8'}>
179179
Live Room: {roomCode}
180180
</Typography>
181+
<Typography variant="h6" color={'#70d8be'}>
182+
Nickname: {userName}
183+
</Typography>
181184
{/* Set up condition rendering depends on if user joined a room then render leave button if not render join button */}
182185
{userJoined ? (
183186
<>
184-
<Button
185-
variant="contained"
186-
onClick={() => leaveRoom()}
187-
sx={{
188-
backgroundColor: '#ffffff',
189-
color: '#000000',
190-
'&:hover': {
191-
backgroundColor: '#C6C6C6',
192-
borderColor: '#0062cc'
193-
}
194-
}}
195-
>
196-
{' '}
197-
Leave Room{' '}
198-
</Button>
199187
<Typography
200188
variant="body1"
201189
sx={{
@@ -211,7 +199,7 @@ const RoomsContainer = () => {
211199
height: 300,
212200
maxWidth: 200,
213201
bgcolor: '#333333',
214-
border: '3px solid white',
202+
border: '3px solid #f2fbf8',
215203
borderRadius: '5%',
216204
display: 'flex',
217205
flexDirection: 'column',
@@ -233,7 +221,7 @@ const RoomsContainer = () => {
233221
<ListItem
234222
key={index}
235223
sx={{
236-
color: 'white',
224+
color: '#f2fbf8',
237225
textAlign: 'center',
238226
width: '100%'
239227
}}
@@ -247,6 +235,21 @@ const RoomsContainer = () => {
247235
))}
248236
</List>
249237
</Box>
238+
<Button
239+
variant="contained"
240+
onClick={() => leaveRoom()}
241+
sx={{
242+
backgroundColor: '#f2fbf8',
243+
color: '#092a26',
244+
'&:hover': {
245+
backgroundColor: '#a5ead6',
246+
borderColor: '#0062cc'
247+
}
248+
}}
249+
>
250+
{' '}
251+
Leave Room{' '}
252+
</Button>
250253
</>
251254
) : (
252255
//after joinning room
@@ -274,10 +277,10 @@ const RoomsContainer = () => {
274277
disabled={checkInputField(userName, roomCode)}
275278
onClick={() => joinRoom()}
276279
sx={{
277-
backgroundColor: '#ffffff',
278-
color: '#000000',
280+
backgroundColor: '#f2fbf8',
281+
color: '#092a26',
279282
'&:hover': {
280-
backgroundColor: '#C6C6C6',
283+
backgroundColor: '#a5ead6',
281284
borderColor: '#0062cc'
282285
}
283286
}}

app/src/components/main/Canvas.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ function Canvas(props: {}): JSX.Element {
243243
width: '10px',
244244
height: '10px',
245245
borderRadius: '50%',
246-
backgroundColor: 'blue',
247-
color: 'red'
246+
backgroundColor: '#a5ead6',
247+
color: '#46c0a5'
248248
}}
249249
>
250250
{' '}

app/src/components/main/SeparatorChild.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ function DirectChildHTMLNestable({
149149
};
150150

151151
defaultNestableStyle['backgroundColor'] = isOver
152-
? '#cee2f5'
152+
? '#70d8be'
153153
: 'rgba(0, 0, 255, 0.0)';
154154

155155
const combinedStyle = combineStyles(

0 commit comments

Comments
 (0)