Skip to content

Commit

Permalink
Refactor RoomOne
Browse files Browse the repository at this point in the history
  • Loading branch information
judy0ye committed Dec 1, 2023
1 parent d9aa342 commit f29acf0
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 178 deletions.
77 changes: 24 additions & 53 deletions src/components/RoomOne/RoomOne.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
.door-btn,
.bike-btn,
.board-btn,
.desk-comp-btn,
.deskComp-btn,
.radio-btn,
.lamp-btn {
border: none;
Expand All @@ -41,15 +41,15 @@
.door-btn:hover,
.bike-btn:hover,
.board-btn:hover,
.desk-comp-btn:hover,
.deskComp-btn:hover,
.radio-btn:hover,
.lamp-btn:hover {
transform: scale(0.95);
cursor: pointer;
}

.clock-btn.disabled,
.desk-comp-btn.disabled,
.deskComp-btn.disabled,
.plant-btn.disabled,
.door-btn.disabled,
.bike-btn.disabled,
Expand Down Expand Up @@ -101,7 +101,7 @@
max-width: 40em;
}

.desk-comp-btn {
.deskComp-btn {
grid-area: desk;
display: flex;
align-items: center;
Expand All @@ -124,7 +124,7 @@

.clock,
.radio,
.desk-comp,
.deskComp,
.plant,
.bike,
.door {
Expand Down Expand Up @@ -160,73 +160,36 @@
.door {
width: 70%;
}
.desk-comp {
.deskComp {
width: 55%;
}
.radio {
width: 80%
}
}

@media screen and (max-height: 585px) {
.board {
width: 80%;
}
.lamp {
width: 110%;
}
.radio {
width: 70%
}
.door {
width: 60%;
}
}

@media screen and (max-height: 480px) {
.room {
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(3, 1fr);
grid-template-areas:
'clock board board board lamp'
'bike door door desk radio'
'plant door door desk radio ';
}
.board {
width: 70%;
}

.radio {
margin-bottom: 0rem;
}
.door {
width: 50%;
}
}


@media screen and (max-width: 768px) {

.room {
padding: 0rem;
}

.alpha-centauri {
padding-left: 1rem;
}

.board,
.clock,
.radio,
.plant,
.bike {
width: 90%;
}

.desk-comp {
.deskComp {
width: 50%;
}

}

@media screen and (max-height: 300px) {
.board {
width: 70%;
.lamp {
width: 140%;
}
}

Expand All @@ -241,7 +204,7 @@
.door {
width: 75%;
}
.desk-comp {
.deskComp {
width: 60%;
}
.lamp {
Expand Down Expand Up @@ -273,7 +236,7 @@
.door {
width: 110%;
}
.desk-comp {
.deskComp {
width: 90%;
}
.lamp {
Expand All @@ -291,4 +254,12 @@
'plant lamp'
'desk radio';
}
.radio {
margin-bottom: 3rem;
width: 60%;
}
.door,
.lamp {
width: 100%;
}
}
Loading

0 comments on commit f29acf0

Please sign in to comment.