Skip to content

Commit

Permalink
Run linting
Browse files Browse the repository at this point in the history
  • Loading branch information
vkoves committed Sep 1, 2024
1 parent 3438711 commit 2df5b83
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 27 deletions.
1 change: 1 addition & 0 deletions src/components/DataDisclaimer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default class DataDisclaimer extends Vue {

<style lang="scss">
.data-disclaimer {
margin-top: 1rem;
margin-bottom: 1rem;
font-size: 0.825rem;
Expand Down
28 changes: 14 additions & 14 deletions src/components/layout/AppFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,25 @@ export default class AppFooter extends Vue {
<template>
<footer>
<div class="constrained">
<div>
Created with <span class="heart">&#x2764;</span> by
<a href="https://github.com/vkoves/electrify-chicago/graphs/contributors">volunteers</a>
in Chicago
</div>
<div>
Created with <span class="heart">&#x2764;</span> by
<a href="https://github.com/vkoves/electrify-chicago/graphs/contributors">volunteers</a>
in Chicago
</div>

<div>
<a
href="https://github.com/vkoves/electrify-chicago"
class="github-link"
>
<img
<div>
<a
href="https://github.com/vkoves/electrify-chicago"
class="github-link"
>
<img
alt=""
src="/github-mark.svg"
width="16"
>
Contribute to Electrify Chicago on GitHub
>
Contribute to Electrify Chicago on GitHub
</a>
</div>
</div>
</div>
</footer>
</template>
Expand Down
27 changes: 20 additions & 7 deletions src/components/layout/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default class AppHeader extends Vue {
mobileMenuOpen: boolean = false;
mobileMenuOpen = false;
focusMain(): void {
const mainHeading = document.getElementById('main-content');
Expand Down Expand Up @@ -59,14 +59,24 @@ export default class AppHeader extends Vue {
>
</g-link>

<button class="mobile-menu-toggle -grey mobile-only"
<button
class="mobile-menu-toggle -grey mobile-only"
:aria-expanded="mobileMenuOpen.toString()"
@click="toggleMobileMenu">
<img src="/menu.svg" alt="Menu" width="30" height="30">
@click="toggleMobileMenu"
>
<img
src="/menu.svg"
alt="Menu"
width="30"
height="30"
>
</button>
</div>

<nav class="top-nav" :class="{ '-hidden': !mobileMenuOpen }">
<nav
class="top-nav"
:class="{ '-hidden': !mobileMenuOpen }"
>
<g-link
class="nav-link"
to="/"
Expand Down Expand Up @@ -144,9 +154,12 @@ export default class AppHeader extends Vue {
type="submit"
@click="submitSearch"
>
<img src="/search.svg" alt=""
<img
src="/search.svg"
alt=""
width="18"
height="18">
height="18"
>
Search
</button>
</div>
Expand Down
13 changes: 8 additions & 5 deletions src/pages/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ export default class Search extends Vue {
</h1>

<p>
Search all of Chicago's benchmarked buildings by name or type! Note that results are limited to the first {{ MaxBuildings }}
matches.
Search all of Chicago's benchmarked buildings by name or type! Note that results are limited
to the first {{ MaxBuildings }} matches.
</p>

<DataDisclaimer />
Expand Down Expand Up @@ -226,7 +226,12 @@ export default class Search extends Vue {
class="-grey"
@click="submitSearch"
>
<img src="/search.svg" alt="" width="15" height="15">
<img
src="/search.svg"
alt=""
width="15"
height="15"
>
Search
</button>
</form>
Expand Down Expand Up @@ -303,8 +308,6 @@ export default class Search extends Vue {
}
}
.data-disclaimer { margin-top: 1rem; }
.no-results-msg {
background-color: $grey;
padding: 1rem;
Expand Down
2 changes: 1 addition & 1 deletion src/scss/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ h1, h2, h3, h4, h5, h6 {
* Mobile Font Size Overrides
*/
@media (max-width: $mobile-max-width) {
h1 { font-size: 2rem; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }

p { font-size: 0.75rem; }
Expand Down

0 comments on commit 2df5b83

Please sign in to comment.