-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
140 lines (124 loc) · 4.34 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flag API : reboot13</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
display: flex;
flex-direction: column;
font-family:'Poppins', sans-serif;
background-color: aliceblue;
}
main{
display: flex;
flex-direction: column;
}
.info {
display: flex;
height: 40%;
justify-content: center;
flex-direction: column;
padding: 3rem;
}
.info p{
font-weight: 500;
}
code{
margin-top: 1rem;
background-color: #fff;
font-size: 1.2em;
width: max-content;
text-align: center;
border-radius: .3rem;
padding:.1rem 1rem;
margin-top: 1rem
}
.endpoints{
display: flex;
height: 100%;
width: 100%;
flex-direction: column;
background-color: #222;
color: aliceblue;
}
h4{
margin-bottom: 1rem;
margin-top: 1rem;
}
iframe{
border: 0;
background-color: #fff;
height: 7rem;
}
a {
text-decoration: none;
color: #006fef;
font-weight: bold;
}
a:visited{
color: #006fef;
}
.allflags,.name,.flag, .code{
width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
margin: 1rem 0;
background-color: #ffffff17;
padding: 3rem;
}
footer{
background: #222;
padding: 1rem 3rem;
color: #fff;
}
</style>
</head>
<body>
<main>
<div class="info">
<h2 style="margin-bottom: 1rem;">Flags API <a href="https://github.com/reboot13-git/flagsAPI" target="_blank"><svg height=1.5rem xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M18,10.82a1,1,0,0,0-1,1V19a1,1,0,0,1-1,1H5a1,1,0,0,1-1-1V8A1,1,0,0,1,5,7h7.18a1,1,0,0,0,0-2H5A3,3,0,0,0,2,8V19a3,3,0,0,0,3,3H16a3,3,0,0,0,3-3V11.82A1,1,0,0,0,18,10.82Zm3.92-8.2a1,1,0,0,0-.54-.54A1,1,0,0,0,21,2H15a1,1,0,0,0,0,2h3.59L8.29,14.29a1,1,0,0,0,0,1.42,1,1,0,0,0,1.42,0L20,5.41V9a1,1,0,0,0,2,0V3A1,1,0,0,0,21.92,2.62Z"/>
</svg></a> </h2>
<p>
The Flags API provides Flags information of all Countries <br>
Retrieve a Unicode, Code ,Flag emoji/symbol and Country Name.
</p>
<code> <a href="api/flags" target="_blank">api/flags</a> </code>
</div>
<div class="endpoints">
<h2 style="padding:.6rem 0 0 3rem">End Points</h2>
<div class="allflags">
<h4>All Flags</h4>
<code ><a href="api/flags" target="_blank">api/flags</a></code>
<h4>Result: Example</h4>
<iframe lang="en" src="/api/flags" style="overflow-y: hidden;"></iframe>
</div>
<div class="flag">
<h4>Flag</h4>
<code><a href="api/flag/🇮🇳" target="_blank">/api/flag/{flag}</a></code> <br>
<h4>Results: Example - api/flag/ 🇮🇳</h4>
<iframe lang="en" src="/api/flag/🇮🇳"></iframe>
</div>
<div class="name">
<h4>Flag Name</h4>
<code><a href="api/flagName/United States" target="_blank">/api/flagName/{name}</a></code> <br>
<h4>Results: Example - api/flagName/United States</h4>
<iframe lang="en" src="/api/flagName/United States"></iframe>
</div>
</div>
</main>
<footer>
© <script>document.write(new Date().getFullYear())</script> Reboot13
</footer>
</body>
</html>