-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
399 lines (390 loc) · 19.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
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!-- Google Tag Manager -->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != "dataLayer" ? "&l=" + l : "";
j.async = true;
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, "script", "dataLayer", "GTM-M5SJDZ36");
</script>
<!-- End Google Tag Manager -->
<!-- Bulma -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.4/css/bulma.min.css" rel="stylesheet">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=BIZ+UDPGothic&family=Lato&family=Oswald&family=Train+One&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://cdn.jsdelivr.net/devicons/1.8.0/css/devicons.min.css" rel="stylesheet">
<!-- My Style -->
<link href="css/style.css" rel="stylesheet">
<!-- Vue.js -->
<!-- 開発版 <script src="https://unpkg.com/vue@3.4.27/dist/vue.global.js"></script> -->
<script src="https://unpkg.com/vue@3.4.27/dist/vue.global.prod.js"></script>
<!-- Fuse.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/3.3.0/fuse.min.js"></script>
<!-- Html2canvas -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<!-- Site Info -->
<title>Eye Catch Maker(アイキャッチメーカー)</title>
<link rel="icon" href="favicon.ico">
<link rel="alternate" hreflang="ja" href="https://featured-image-maker.zzzmisa.com">
<link rel="alternate" hreflang="en" href="https://featured-image-maker.zzzmisa.com/en/">
<meta name="description" content="アイキャッチ画像・OGP画像が簡単に作れる無料のジェネレーター">
<meta property="og:title" content="Eye Catch Maker(アイキャッチメーカー)">
<meta property="og:type" content="website">
<meta property="og:url" content="https://featured-image-maker.zzzmisa.com/">
<meta property="og:image" content="https://featured-image-maker.zzzmisa.com/img/logo.png">
<meta property="og:site_name" content="Eye Catch Maker(アイキャッチメーカー)">
<meta property="og:description" content="アイキャッチ画像・OGP画像が簡単に作れる無料のジェネレーター">
<meta property="og:locale" content="ja_JP">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="Eye Catch Maker(アイキャッチメーカー)">
<meta name="twitter:url" content="https://featured-image-maker.zzzmisa.com/">
<meta name="twitter:title" content="Eye Catch Maker(アイキャッチメーカー)">
<meta name="twitter:description" content="アイキャッチ画像・OGP画像が簡単に作れる無料のジェネレーター">
<meta name="twitter:image" content="https://featured-image-maker.zzzmisa.com/img/logo.png">
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M5SJDZ36" height="0" width="0"
style="display: none; visibility: hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<section class="section hero is-bold has-text-centered">
<h1 class="title is-1 is-spaced" style="font-family: 'Oswald', sans-serif;"><a class="has-text-dark"
href="https://featured-image-maker.zzzmisa.com">Eye Catch Maker</a></h1>
<h2 class="subtitle">アイキャッチ画像・OGP画像が簡単に作れる無料のジェネレーター</h2>
</section>
<section class="section has-background-light" id="app">
<div class="columns">
<div class="column is-8">
<div class="box" id="preview">
<div style="overflow: auto;">
<div id="screenshot-area" class="screenshot-area" v-bind:style="[cssForScreenshotArea,cssForPreview]">
<div class="photo_area" v-bind:style="[cssForPhotoArea]"></div>
<div class="message_area"><i v-bind:class="icon"></i><br><span v-text="title"></span></div>
</div>
<div style="position: absolute; opacity: 0.0; left:-2000px;">
<div class="screenshot-area" v-bind:style="[cssForScreenshotArea]">
<div class="photo_area" v-bind:style="[cssForPhotoArea]"></div>
<div class="message_area"><i v-bind:class="icon"></i><br><span v-text="title"></span></div>
</div>
</div>
</div>
</div>
</div>
<div class="column">
<div class="box">
<div class="field">
<div class="buttons">
<a class="button is-light" v-for="item in sampleItems" v-on:click="showSample(item)"
v-text="item.title"></a>
</div>
</div>
<hr>
<div class="field">
<label class="label">アイコン</label>
<p class="control">
<div class="field has-addons">
<p class="control is-expanded">
<input class="input" type="text" v-model="icon">
</p>
<p class="control">
<a class="button is-link" v-on:click="iconsModalFlg=true">選択</a>
</p>
</div>
</p>
</div>
<!-- iconsModal ... -->
<div class="modal" v-bind:class="{'is-active':iconsModalFlg}">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">アイコン選択</p>
<button class="delete" aria-label="close" v-on:click="iconsModalFlg=false"></button>
</header>
<section class="modal-card-body">
<div class="field">
<div class="control">
<input class="input" type="text" placeholder="Search..." v-model="keyword">
</div>
</div>
<div class="columns is-multiline has-text-centered">
<template v-for="searchedIcon in searchedIcons">
<div class="column is-3" v-if="searchedIcon.styles.indexOf('solid') !== -1"><a class="box"
v-on:click="selectIcon('fas fa-' + searchedIcon.name); iconsModalFlg=false"><i class="is-size-2"
v-bind:class="'fas fa-' + searchedIcon.name"></i><br><span
v-text="searchedIcon.name"></span></a></div>
<div class="column is-3" v-if="searchedIcon.styles.indexOf('regular') !== -1"><a class="box"
v-on:click="selectIcon('far fa-' + searchedIcon.name); iconsModalFlg=false"><i class="is-size-2"
v-bind:class="'far fa-' + searchedIcon.name"></i><br><span
v-text="searchedIcon.name"></span></a></div>
<div class="column is-3" v-if="searchedIcon.styles.indexOf('light') !== -1"><a class="box"
v-on:click="selectIcon('fal fa-' + searchedIcon.name); iconsModalFlg=false"><i class="is-size-2"
v-bind:class="'fal fa-' + searchedIcon.name"></i><br><span
v-text="searchedIcon.name"></span></a></div>
<div class="column is-3" v-if="searchedIcon.styles.indexOf('brands') !== -1"><a class="box"
v-on:click="selectIcon('fab fa-' + searchedIcon.name); iconsModalFlg=false"><i class="is-size-2"
v-bind:class="'fab fa-' + searchedIcon.name"></i><br><span
v-text="searchedIcon.name"></span></a></div>
</template>
</div>
</section>
<footer class="modal-card-foot">
</footer>
</div>
</div>
<!-- ...iconsModal -->
<div class="field">
<label class="label">タイトル</label>
<textarea class="input" v-model="title"></textarea>
</div>
<div class="field">
<label class="label">背景グラデーション</label>
<p class="control">
<div class="field has-addons">
<p class="control is-expanded">
<input class="input" type="text" v-model="color">
</p>
<p class="control">
<a class="button is-link" v-on:click="gradientsModalFlg=true">選択</a>
</p>
</div>
</p>
</div>
<!-- gradientsModal ... -->
<div class="modal" v-bind:class="{'is-active':gradientsModalFlg}">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">背景グラデーション選択</p>
<button class="delete" aria-label="close" v-on:click="gradientsModalFlg=false"></button>
</header>
<section class="modal-card-body">
<div class="columns is-multiline has-text-centered">
<template v-for="webgradient in webgradients">
<div class="column is-4"><a class="box"
v-on:click="selectGradient(webgradient); gradientsModalFlg=false"
v-bind:style="{ background: 'linear-gradient(' + webgradient + ')' }"><br><br><br><br><br></a>
</div>
</template>
</div>
</section>
<footer class="modal-card-foot">
</footer>
</div>
</div>
<!-- ...gradientsModal -->
<div class="field">
<label class="label">背景画像</label>
<div class="file mb-2">
<label class="file-label">
<input class="file-input" type="file" @change="selectImage">
<span class="file-cta">
<span class="file-icon">
<i class="fas fa-upload"></i>
</span>
<span class="file-label">
Choose a file…
</span>
</span>
</label>
</div>
<div class="preview-item">
<div v-if="imageData">
<span v-text="imageName"></span>
<button class="delete is-medium" @click="removeImage"></button>
</div>
</div>
</div>
<div class="field mt-5">
<a class="button is-primary is-fullwidth" v-on:click="download"
v-bind:class="{'is-downloading':isDownloading}">ダウンロード</a>
</div>
<hr>
<details>
<summary class="mb-4">詳細設定</summary>
<div class="field">
<label class="label">画像サイズ</label>
<div class="is-flex">
<p class="control">
<input class="input" type="text" v-model="width">
</p>
<div class="mx-3 is-size-5">x</div>
<p class="control">
<input class="input" type="text" v-model="height">
</p>
</div>
</div>
<div class="field">
<label class="label">フォント</label>
<p class="control">
<div class="field has-addons">
<p class="control is-expanded">
<input class="input" type="text" v-bind:value="font.name"
v-bind:style="{ fontFamily: font.fontFamily }" readonly>
</p>
<p class="control">
<a class="button is-link" v-on:click="fontsModalFlg=true">選択</a>
</p>
</div>
</p>
</div>
<!-- fontsModal ... -->
<div class="modal" v-bind:class="{'is-active':fontsModalFlg}">
<div class="modal-background"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">フォント選択</p>
<button class="delete" aria-label="close" v-on:click="fontsModalFlg=false"></button>
</header>
<section class="modal-card-body">
<div class="columns is-multiline has-text-centered">
<template v-for="f in fonts">
<div class="column is-4">
<a class="box" v-text="f.name" v-bind:style="{ fontFamily: f.fontFamily }"
v-on:click="selectFont(f); fontsModalFlg=false"></a>
</div>
</template>
</div>
</section>
<footer class="modal-card-foot">
</footer>
</div>
</div>
<!-- ...fontsModal -->
</details>
</div>
</div>
</div>
</section>
<section class="section">
<div class="content">
<h3>ツール紹介</h3>
<p>
「Eye Catch Maker(アイキャッチメーカー)」は、アイキャッチ画像・OGP画像(og:image)を簡単に作成できるジェネレーターです。<br>
アイコンと背景グラデーションを組み合わせて、簡単にスマートな画像が作れます。<br>
WordPressのようなブログ用のアイキャッチ画像・ブログカードにぴったりです。Instagramのハイライトカバーにもどうぞ。<br>
作成した画像は無料でダウンロードできます。<br>
</p>
<h3>対応アイコン</h3>
<p>
<ul>
<li>
<a rel="license" href="https://fontawesome.com/icons">Font Awesome Free v5.6.3</a>
</li>
<li>
<a rel="license" href="https://fontawesome.com/v4.7.0/icons/">Font Awesome Free v4.7.0</a>
</li>
<li>
<a rel="license" href="http://vorillaz.github.io/devicons/#/dafont">Devicons v1.8.0</a>
</li>
</ul>
ピッカーによるアイコン選択はFont Awesome Free v5.6.3にのみ対応しています。
</p>
<h3>ライセンス</h3>
<ul>
<li>
作成したアイキャッチ画像:各アイコンのライセンスに従ってお使いください。
<ul>
<li><a rel="license" href="https://fontawesome.com/license/free">Font Awesome Free License (CC BY 4.0
License)</a></li>
<li><a rel="license" href="https://github.com/vorillaz/devicons">Devicons License (MIT)</a></li>
</ul>
</li>
<li>
ソースコード:<a rel="license" href="https://github.com/zzzmisa/featured-image-maker/blob/master/LICENSE">MIT</a>
</li>
</ul>
<h3>動作環境</h3>
以下のブラウザの最新バージョンで動作確認しています。<br>
<ul>
<li>
パソコン:Google Chrome、Safari(いずれもOSX環境にて確認)
</li>
<li>
スマートフォン:iOS Safari
</li>
</ul>
</div>
</section>
<footer class="footer has-text-centered">
<div class="content">
<p>気に入ったらシェアしてもらえると嬉しいです。</p>
<p>
<aside class="share">
<a href="http://b.hatena.ne.jp/add?mode=confirm&url=https://featured-image-maker.zzzmisa.com&title=Eye%20Catch%20Maker"
title="はてなブックマーク" class="button" target="_blank" rel="nofollow">B!</a>
<a href="http://twitter.com/intent/tweet?url=https://featured-image-maker.zzzmisa.com&text=Eye%20Catch%20Maker&tw_p=tweetbutton"
title="Twitterでシェア" class="button" target="_blank" rel="nofollow"><i class="fa fa-twitter"
aria-hidden="true"></i></a>
<a href="http://www.facebook.com/sharer.php?u=https://featured-image-maker.zzzmisa.com&t=Eye%20Catch%20Maker"
title="Facebookでシェア" class="button" target="_blank" rel="nofollow"><i class="fa fa-facebook"
aria-hidden="true"></i></a>
<a href="http://getpocket.com/edit?url=https://featured-image-maker.zzzmisa.com&title=Eye%20Catch%20Maker"
title="Pocketに保存" class="button" target="_blank" rel="nofollow"><i class="fa fa-get-pocket"
aria-hidden="true"></i></a>
<a href="http://line.me/R/msg/text/?Eye%20Catch%20Maker https://featured-image-maker.zzzmisa.com"
title="LINEでシェア" class="button" target="_blank" rel="nofollow">LINE</a>
</aside>
</p>
</div>
<div class="content"><strong>Made by <a rel="license" href="https://blog.zzzmisa.com/">zzzmisa</a></strong> | <a
href="https://blog.zzzmisa.com/privacy">プライバシーポリシー</a> | <a
href="https://featured-image-maker.zzzmisa.com/en/">English Page</a></div>
</footer>
<a href="https://github.com/zzzmisa/featured-image-maker" class="github-corner"
aria-label="View source on GitHub"><svg width="80" height="80" viewBox="0 0 250 250"
style="fill:#151513; color:#fff; position: absolute; top: 0; border: 0; right: 0;" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path
d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path
d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
fill="currentColor" class="octo-body"></path>
</svg></a>
<style>
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out
}
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0)
}
20%,
60% {
transform: rotate(-25deg)
}
40%,
80% {
transform: rotate(10deg)
}
}
@media (max-width:500px) {
.github-corner:hover .octo-arm {
animation: none
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out
}
}
</style>
<script src="js/index.js" type="module"></script>
</body>
</html>