Skip to content

Commit 630a2ae

Browse files
committed
Attribution to NZ Gov lol
1 parent 82f2b53 commit 630a2ae

1 file changed

Lines changed: 31 additions & 1 deletion

File tree

src/routes/map.svelte

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@
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>
@@ -60,12 +66,15 @@
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

@@ -103,19 +112,40 @@
103112
104113
.update-block {
105114
position: absolute;
106-
top: calc(100% + 1em);
115+
top: calc(100% + 3em);
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>

0 commit comments

Comments
 (0)