-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Current elevator closure layout (#2315)
* Adjust margins so row width is consistent. * Refactored a bit to prepare for in station closures view. * Added first page of CurrentElevatorClosedView. * Polished up first page of CurrentElevatorClosedView. * Added second page to view. * Fixed some styles. * Use existing Arrow component. * Added map marker. * Update screens-config-lib. * Only show two pages if there is a configured image. * Test improvements. * Refactored out some components and styles. * Address PR feedback. * Use absolute positioning instead of flex. * Try using one widget to help with styling. * Add header and footer instances in closures CG. * Converted elevator components into separate widgets. * Better module/type organization.
- Loading branch information
Showing
34 changed files
with
883 additions
and
209 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ $cool-black-15: #171f26; | |
$cool-black-30: #2e3e4d; | ||
|
||
$normal-service-green: #145a06; | ||
|
||
$accessibility-blue: #165c96; |
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 |
---|---|---|
@@ -0,0 +1,129 @@ | ||
.current-elevator-closed { | ||
position: relative; | ||
height: 100%; | ||
|
||
.notch { | ||
position: absolute; | ||
top: 0; | ||
right: 0; | ||
display: inline-block; | ||
border-right: 345px solid $accessibility-blue; | ||
border-bottom: 300px solid transparent; | ||
} | ||
|
||
.header { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
height: 528px; | ||
padding-left: 48px; | ||
font-weight: 700; | ||
|
||
.icons { | ||
margin-bottom: 21px; | ||
|
||
.no-service-icon { | ||
margin-right: 16px; | ||
} | ||
} | ||
|
||
.closed-text { | ||
margin-bottom: 18px; | ||
font-size: 150px; | ||
line-height: 150px; | ||
} | ||
} | ||
|
||
hr.thin { | ||
margin: 0 20px; | ||
} | ||
|
||
.accessible-path-container { | ||
height: 984px; | ||
padding: 48px; | ||
|
||
.subheading-container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
height: 142px; | ||
|
||
.subheading { | ||
align-self: center; | ||
} | ||
|
||
.arrow { | ||
width: 100px; | ||
height: 100px; | ||
} | ||
} | ||
|
||
.alternate-direction-text { | ||
color: $cool-black-30; | ||
|
||
&.small { | ||
font-size: 48px; | ||
line-height: 64px; | ||
} | ||
|
||
&.medium { | ||
font-size: 62px; | ||
line-height: 80px; | ||
} | ||
|
||
&.large { | ||
font-size: 80px; | ||
line-height: 96px; | ||
} | ||
} | ||
|
||
.map-container { | ||
position: relative; | ||
margin-top: 26px; | ||
margin-left: -48px; | ||
|
||
.map { | ||
width: 1080px; | ||
} | ||
} | ||
} | ||
|
||
.paging-indicators { | ||
position: absolute; | ||
right: 0; | ||
bottom: 0; | ||
height: 120px; | ||
} | ||
} | ||
|
||
.marker-container { | ||
position: absolute; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 116px; | ||
height: 116px; | ||
|
||
.marker-background, | ||
.marker { | ||
position: absolute; | ||
} | ||
|
||
.marker-background { | ||
animation: pulse-ring 1.5s infinite; | ||
} | ||
} | ||
|
||
@keyframes pulse-ring { | ||
0% { | ||
transform: scale(0.5); | ||
} | ||
|
||
60% { | ||
opacity: 0.25; | ||
} | ||
|
||
100% { | ||
opacity: 0; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.footer { | ||
box-sizing: border-box; | ||
height: 100%; | ||
padding: 26px 48px; | ||
font-size: 48px; | ||
|
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
Oops, something went wrong.