-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This improves the header: * Makes all touch targets at least 44px, the accessibility minimum * Moves copy link icon to the header * Removes the "Parking Lot Map" text * adds a teal border underneath It also adds more explanatory text to the header in the scorecard, now saying "Parking lots in City, ST" to better explain what people are seeing. <details><summary>before: mobile</summary> <img width="377" alt="Screenshot 2024-07-07 at 4 27 36 PM" src="https://github.com/ParkingReformNetwork/parking-lot-map/assets/14852634/8f94c488-40c1-4085-9c66-94adc49ebf4a"> </details> <details><summary>before: desktop</summary> <img width="1108" alt="Screenshot 2024-07-07 at 4 26 40 PM" src="https://github.com/ParkingReformNetwork/parking-lot-map/assets/14852634/610c9d85-4fe2-4e12-bf16-0b9a11f81e10"> </details> <details><summary>after: mobile</summary> <img width="374" alt="Screenshot 2024-07-07 at 4 27 00 PM" src="https://github.com/ParkingReformNetwork/parking-lot-map/assets/14852634/3254f3b5-77f9-4512-9e79-cea065ac7c42"> </details> <details><summary>after: desktop</summary> <img width="1114" alt="Screenshot 2024-07-07 at 4 25 55 PM" src="https://github.com/ParkingReformNetwork/parking-lot-map/assets/14852634/3a0cdcee-4f7d-4d94-81ea-837aaa75b5a7"> </details> -- Removing the "Parking Lot Map" text achieves two things: * Allows us to fit the header on a single line, even on mobile. This allows more screen real estate for the map itself and scorecard * Improves information hierarchy. The name of the map is not as important as the map itself and explaining what you're seeing on the map (i.e. the unexpanded accordion) People will still see the name of the map because it's often accessed from the resources folder with all the additional context. -- Finally, this improves the size and positioning of the donate button.
- Loading branch information
1 parent
a2b3a6d
commit 147db96
Showing
8 changed files
with
118 additions
and
126 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
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,25 +1,24 @@ | ||
@use "theme/breakpoints"; | ||
|
||
div.donate-button { | ||
position: absolute; | ||
border-radius: 5px; | ||
left: 9px; | ||
bottom: 19px; | ||
left: 10px; | ||
z-index: 2001; | ||
width: 100px; | ||
} | ||
|
||
div.donate-button a img { | ||
width: 100%; | ||
border-radius: 4px; | ||
} | ||
// `bottom` is set so high to avoid covering the attribution | ||
// on small screens, since it wraps to two lines. | ||
bottom: 35px; | ||
@include breakpoints.gt-xs { | ||
bottom: 10px; | ||
} | ||
|
||
@media only screen and (max-width: 830px) { | ||
div.donate-button { | ||
bottom: 43px; | ||
width: 90px; | ||
@include breakpoints.gt-sm { | ||
width: 105px; | ||
} | ||
} | ||
|
||
@media only screen and (max-width: 480px) { | ||
div.donate-button a img { | ||
width: 70%; | ||
a img { | ||
width: 100%; | ||
border-radius: 4px; | ||
} | ||
} |
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
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.