File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919.leaflet-top {
2020 top : 93px !important ;
2121}
22+ @media all and (max-width : 1430px ) {
2223
24+ .leaflet-top {
25+ top : 128px !important ;
26+ }
27+ }
2328@media all and (max-width : 1200px ) {
2429
2530 .leaflet-top {
2631 top : 170px !important ;
2732 }
2833}
34+ @media all and (max-width : 940px ) {
35+
36+ .leaflet-top {
37+ top : 220px !important ;
38+ }
39+ }
2940
3041@media all and (max-width : 770px ) {
3142
3243 .leaflet-top {
3344 top : 255px !important ;
3445 }
3546}
47+ @media all and (max-width : 440px ) {
48+
49+ .leaflet-top {
50+ top : 210px !important ;
51+ }
52+ }
3653
3754.leaflet-control-attribution {
3855 bottom : 100px !important ;
Original file line number Diff line number Diff line change 55 let notificationsEnabled: boolean = false ;
66 let notificationDenied = false ;
77 let notificationsSupported = ' Notification' in window ;
8+ let errorText = ' ' ;
9+
810
911 setInterval (updatePermissionStatus , 1000 );
1012 updatePermissionStatus ();
1719 }
1820 });
1921
20- let errorText = ' ' ;
2122
2223
2324 function updatePermissionStatus() {
Original file line number Diff line number Diff line change 1010 <div class =" notificationRequesterWrapper" >
1111 <NotificationRequester />
1212 </div >
13- <img class =" results-info__icon" src =" /icons/icon.svg" alt =" Toi" width =" 128" height =" 128" />
13+ <a href =" /" ><img class =" results-info__icon" src =" /icons/icon.svg" alt =" Toi" width =" 128" height =" 128" /></a >
14+
1415 <h3 class =" results-info__title" >Showing Results</h3 >
1516 <div class =" results-info__body" >
1617 <span class =" results-info__body__marker"
Original file line number Diff line number Diff line change 2727 </script >
2828
2929<div class =' wrapper' >
30- <label >Address/Location</label >
30+ <label >Filter by Address/Location</label >
3131 <input type ='text' bind:value ={searchTerm } placeholder =' Enter Address/Location' >
3232</div >
3333
Original file line number Diff line number Diff line change 5151 <header class =" header" id =" header" >
5252 <ResultHeading dates ={dateValues } />
5353 <SearchBox geoData ={$geoData } probablePlaces ={(p ) => (places = p ?.map ((e ) => e .index ))} />
54+ <div class =" copyright-notice" >
55+ <a class =" copyright-notice__text" href =" https://github.com/minhealthnz/nz-covid-data" >
56+ Locations of Interest from New Zealand Government
57+ </a >
58+
59+ </div >
5460 <div class =" update-block" >
5561 {#if typeof $lastUpdate !== ' undefined' }
5662 <p class ="update-block__text" >Last Updated {$lastUpdate .toLocaleString ()}</p >
6066 <p class ="update-block__text" >Number of locations of interest: {$loiCount }</p >
6167 {/if }
6268 </div >
69+
6370 </header >
6471 {#if $geoData != null }
6572 <LeafletMap geoData ={$geoData } dateRange ={dateValues } filteredPlaces ={places } />
6673 {/if }
74+
6775 <footer >
6876 <DateSlider bind:dateRange ={dateValues } />
77+
6978 </footer >
7079</main >
7180
103112
104113 .update-block {
105114 position : absolute ;
106- top : calc (100% + 1 em );
115+ top : calc (100% + 3 em );
107116 right : 1em ;
108117 display : flex ;
109118 flex-flow : column ;
110119 background : #333 ;
111120 border-radius : 0.5em ;
112121 }
113122
123+
114124 .update-block__text {
115125 font-size : 0.75em ;
116126 display : block ;
117127 color : white ;
118128 padding : 0.5em ;
119129 margin : 0 ;
120130 }
131+
132+ .copyright-notice {
133+ position : absolute ;
134+ top : calc (100% + 1em );
135+ // bottom: calc(100% + 2em);
136+ z-index : 4 ;
137+ right : 1em ;
138+ display : flex ;
139+ flex-flow : column ;
140+ background : #333 ;
141+ border-radius : 0.5em ;
142+ }
143+ .copyright-notice__text {
144+ font-size : 0.75em ;
145+ display : block ;
146+ color : white ;
147+ padding : 0.5em ;
148+ margin : 0 ;
149+
150+ }
121151 </style >
You can’t perform that action at this time.
0 commit comments