-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/Vacansee/app into dev
- Loading branch information
Showing
2 changed files
with
34 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ import Floor from './Floor.vue' | |
<link rel="stylesheet" | ||
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" /> | ||
|
||
<div id='currFloor'> | ||
<div id='floorBox'> | ||
<Floor @room-hover="onRoomHover" :floor="floor" /> | ||
</div> | ||
|
||
|
@@ -39,7 +39,7 @@ export default { | |
unselected(newVar) { | ||
if (newVar) { | ||
this.floor = "" | ||
currFloor.style.opacity = 0; | ||
floorBox.style.opacity = 0; | ||
up.style.opacity = 0; | ||
down.style.opacity = 0; | ||
} else { | ||
|
@@ -48,7 +48,7 @@ export default { | |
this.floor = this.global.bldg + this.getBldg().meta.floors[2] | ||
this.global.floor = this.getBldg().meta.floors[2] | ||
} | ||
currFloor.style.opacity = 1; | ||
floorBox.style.opacity = 1; | ||
up.style.opacity = 1; | ||
down.style.opacity = 1; | ||
down.style.transform = "rotate(180deg)"; | ||
|
@@ -86,8 +86,8 @@ export default { | |
} | ||
}, | ||
mounted() { | ||
// On load, set currFloor transition | ||
setTimeout(() => currFloor.style.transition = "transform .2s, width .4s", 500) | ||
// On load, set floorBox transition | ||
setTimeout(() => floorBox.style.transition = "transform .2s, width .4s", 500) | ||
// constantly check for resize of window | ||
window.addEventListener("resize", this.windowResizeTimeout) | ||
// call the event handler | ||
|
@@ -117,9 +117,9 @@ export default { | |
let ratio = x / y; | ||
if (ratio < this.threshold) // portrait mode | ||
currFloor.style.transform = `translate(calc(-50% - 30px), calc(-50%)) scale(${(y - 150) / 50})` + `rotate(90deg)`; | ||
floorBox.style.transform = `translate(calc(-50% - 30px), calc(-50%)) scale(${(y - 150) / 50})` + `rotate(90deg)`; | ||
else // landscape mode | ||
currFloor.style.transform = `translate(-50%, calc(-50% + 100px)) scale(${x / 65})`; | ||
floorBox.style.transform = `translate(-50%, calc(-50% + 100px)) scale(${x / 65})`; | ||
}, | ||
// Increases the floor | ||
increaseFloor() { | ||
|
@@ -144,7 +144,7 @@ export default { | |
</script> | ||
|
||
<style > | ||
#currFloor { | ||
#floorBox { | ||
position: absolute; | ||
left: 50%; | ||
top: calc(50% - 125px); | ||
|
@@ -195,8 +195,6 @@ export default { | |
color: #4d6d6b; | ||
} | ||
.material-symbols-outlined { | ||
font-variation-settings: | ||
'FILL' 0, | ||
|