-
Notifications
You must be signed in to change notification settings - Fork 0
/
City.svelte
50 lines (44 loc) · 1.15 KB
/
City.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<style>
h2,
h1,
.leads {
margin: 4%;
}
.warning {
font-weight: bold;
color: red;
}
</style>
<script context="module">
import { cities } from "./cities";
import Select from "svelte-select";
import { Button } from "sveltestrap";
import Content from "./Content.svelte";
import Modal from "svelte-simple-modal";
import { Card } from "sveltestrap";
import { getContext } from "svelte";
import Warning from "./Warning.svelte";
var city = "";
function handleSelectCity(event) {
city = event.detail.value;
//console.log(city);
}
export function getCity() {
return city;
}
</script>
<Card>
<div style="margin:4%">
<h1 >Covid Digital Helper</h1>
<div class="leads">
This is a simple tool to help you search for valuable covid-19 resources online.
<br><a href="https://www.instagram.com/reel/COFOFu6J7tY/">Tutorial</a>
<div class='warning'>
Do NOT make advanced payments unless you are 100% sure about their authenticity.
<br>Check for replies under the tweets.
</div>
</div>
<h2>City</h2>
<Select id="cities" placeholder="Enter city name here" items={cities} on:select={handleSelectCity}></Select>
<div>
</Card>