-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
102 lines (86 loc) · 3.2 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title><world flag - web component></title>
<!-- Importing Web Component's Polyfill -->
<script src="bower_components/platform/platform.js"></script>
<!-- Importing Custom Elements -->
<link rel="import" href="src/world-flag.html">
<!-- Custom Styles -->
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Titillium+Web:400,300);
body{
font-family: 'Titillium Web', sans-serif;
font-size: 15px;
}
h1{
font-size: 50px;
color: #1A323D;
text-align: center;
padding: 30px;
}
h3{
text-align: center;
font-weight: 300;
font-size: 30px;
color: #1A323D;
padding-bottom: 50px;
}
span{
text-transform: lowercase;
font-weight: 400;
font-size: 1em;
float: left;
color: #999;
}
code{ background-color: #333; color: #EC2898; padding: 5px; border-radius: 5px; float:right; }
.demo{ margin: auto; text-align: center; border-bottom: 3px dotted #f2f2f2; padding-bottom: 50px; margin-bottom: 50px; }
.demo world-flag{ width: 50px; display: block; margin:auto; padding: 20px; }
</style>
</head>
<body>
<h1 style="text-align: center;">World Flag Component</h1>
<h3><world-flag></h3>
<div class="demo">
<!-- Using Custom Elements -->
<span>Default:</span>
<world-flag></world-flag>
</div>
<div class="demo">
<!-- Using Custom Elements -->
<span>Custom language:</span><code>language="es"</code>
<world-flag language="es" languageLong="España"></world-flag>
</div>
<div class="demo">
<!-- Using Custom Elements -->
<span>Modes:</span><code>language="es_ar" <br> icon="false"</code>
<world-flag language="es_ar" languageLong="Argentina" icon="false"></world-flag>
</div>
<div class="demo">
<!-- Using Custom Elements -->
<span>Sizes:</span>
<code>size="small"</code>
<world-flag language="pt_br" languageLong="República Federativa do Brasil" size="small"></world-flag>
<code>size="medium"</code>
<world-flag language="pt_br" languageLong="República Federativa do Brasil" size="medium"></world-flag>
<code>default</code>
<world-flag language="pt_br" languageLong="República Federativa do Brasil"></world-flag>
<code>size="large"</code>
<world-flag language="pt_br" languageLong="República Federativa do Brasil" size="large"></world-flag>
</div>
<div class="demo">
<!-- Using Custom Elements -->
<span>Style:</span>
<code>type="normal"</code>
<world-flag language="en_gb" languageLong="English" type="normal"></world-flag>
<code>default</code>
<world-flag language="en_gb" languageLong="English"></world-flag>
<!--
<code>list</code>
<world-flag language="en_gb" type="list"></world-flag>
-->
</div>
<!-- credits for icons: http://www.deviantart.com/art/World-Flag-Icons-PNG-108083900 -->
</body>
</html>