forked from 22mahmoud/faven
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
178 lines (173 loc) · 5.02 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>faven - generate your favcion in the browser</title>
<meta
name="description"
content="Faven is a web tool help you generate favicons from your image"
/>
<link rel="shortcut icon" href="./assets/favicon.ico" type="image/x-icon" />
<link rel="icon" href="./assets/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="app.css" />
<link
rel="apple-touch-icon"
sizes="57x57"
href="./assets/apple-icon-57x57.png"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="./assets/apple-icon-60x60.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="./assets/apple-icon-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="./assets/apple-icon-76x76.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="./assets/apple-icon-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="./assets/apple-icon-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="./assets/apple-icon-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="./assets/apple-icon-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="./assets/apple-icon-180x180.png"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="./assets/android-icon-192x192.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./assets/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="96x96"
href="./assets/favicon-96x96.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="./assets/favicon-16x16.png"
/>
<link rel="manifest" href="./assets/manifest.json" />
<meta name="msapplication-TileColor" content="#48BB78" />
<meta
name="msapplication-TileImage"
content="./assets/ms-icon-144x144.png"
/>
<meta name="theme-color" content="#e2e8f0" />
<style>
[x-cloak] {
display: none;
}
</style>
<script
data-goatcounter="https://faven.goatcounter.com/count"
async
src="//gc.zgo.at/count.js"
></script>
<script src="app.js" type="module" defer></script>
</head>
<body
class="flex flex-col w-screen h-screen max-w-md px-4 py-8 mx-auto bg-gray-900"
x-data="{...app(), open: false}"
>
<header>
<a class="text-green-200" href="/"><h3 class="text-3xl">Faven</h3></a>
</header>
<main class="flex flex-col justify-center flex-1 max-w-md">
<div
class="flex text-gray-800 bg-green-200 rounded-md"
x-bind:class="{ 'rounded-b-none': filename }"
>
<label class="w-full px-4 py-6 text-center cursor-pointer">
<span class="">Select an image</span>
<input
class="hidden"
@change="handleFileInputChange"
type="file"
accept="image/*"
/></label>
</div>
<div
x-cloak
x-show.transition.in.duration.200ms.origin.top="filename"
class="flex px-4 py-2 text-gray-200 truncate bg-gray-800 rounded-b-md"
>
<p x-text="filename" class="flex-1 truncate"></p>
<a
role="button"
class="ml-6 underline"
x-bind:href="href"
download="faven.zip"
>
Download
</a>
</div>
</main>
<footer class="flex underline">
<ul class="flex ml-auto">
<li class="ml-6 text-green-200">
<a @click="open = true" role="button">How To use</a>
<div
x-cloak
class="absolute top-0 left-0 flex items-center justify-center w-full h-full py-16"
style="background-color: rgba(0, 0, 0, 0.2);"
x-show="open"
>
<div
class="h-full p-4 py-3 mx-2 overflow-x-hidden overflow-y-auto text-left bg-white rounded shadow-xl ma md:max-w-2xl md:p-6 lg:p-8 md:mx-0"
@click.away="open = false"
>
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<h3 class="text-lg font-medium text-gray-900 leading-6">
How to use favicons on your project.
</h3>
<p class="my-4 text-sm text-gray-800">
After generating a favicon with this tool download and save to
the directory of your site. Then include the following code in
the head of your HTML document.
</p>
<div x-html="howToUse" class="mt-2"></div>
</div>
</div>
</div>
</li>
<li class="ml-6 text-green-200">
<a href="https://github.com/22mahmoud/faven">github </a>
</li>
</ul>
</footer>
</body>
</html>