-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (49 loc) · 1.64 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Flags</title>
<link href="./style.css" rel="stylesheet">
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="container my-4 mx-auto">
<div id="application">
<table class="w-full">
<thead>
<tr class="text-left">
<th class="">Flag</th>
<th>Selectors</th>
</tr>
</thead>
<tbody>
<tr v-for="country in countries">
<td class="">
<i class="giant flat flag icon" :class="country.classes[0]"></i>
</td>
<td>
<span class="font-mono text-sm p-2 block" v-for="c in country.classes">
{{ c }} <span class="text-gray-500">flat flag icon</span>
</span>
</td>
</tr>
</tbody>
</table>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
new Vue({
el: "#application",
data() {
return {
countries: []
}
},
mounted() {
fetch("./resources.json").then(response => response.json()).then(data => {
this.countries = data.countries
})
}
})
</script>
</html>