diff --git a/css/style.css b/css/style.css
index 1b5eee6..1409af0 100755
--- a/css/style.css
+++ b/css/style.css
@@ -10,8 +10,6 @@
justify-content: center;
text-align: center;
- /* コンテンツのフォント */
- font-family: "Lato", sans-serif;
font-size: 60px;
color: white;
diff --git a/en/index.html b/en/index.html
index a94a2e0..d41cabc 100644
--- a/en/index.html
+++ b/en/index.html
@@ -8,8 +8,9 @@
-
-
+
+
+
Generator of simple featured images
+ v-bind:style="{ background: 'linear-gradient(' + webgradient + ')' }">
@@ -207,20 +208,50 @@
Generator of simple featured images
+
diff --git a/index.html b/index.html
index 68cb4a4..4119e56 100644
--- a/index.html
+++ b/index.html
@@ -8,8 +8,9 @@
-
-
+
+
+
アイキャッチ画像が簡単に作れるジェネレ
+ v-bind:style="{ background: 'linear-gradient(' + webgradient + ')' }">
@@ -208,20 +209,50 @@ アイキャッチ画像が簡単に作れるジェネレ
+
diff --git a/js/fonts.js b/js/fonts.js
new file mode 100644
index 0000000..2e40d14
--- /dev/null
+++ b/js/fonts.js
@@ -0,0 +1,6 @@
+export default [
+ { name: "BIZ UDPGothic", fontFamily: '"BIZ UDPGothic", sans-serif' },
+ { name: "Lato", fontFamily: '"Lato", sans-serif' },
+ { name: "Oswald", fontFamily: '"Oswald", sans-serif' },
+ { name: "Train One", fontFamily: '"Train One", cursive' },
+];
diff --git a/js/index.js b/js/index.js
index 591a740..90dd8c5 100644
--- a/js/index.js
+++ b/js/index.js
@@ -1,17 +1,20 @@
import icons from "./icons.js";
import webgradients from "./webgradients.js";
+import fonts from "./fonts.js";
const app = new Vue({
el: "#app",
data: {
iconsModalFlg: false,
gradientsModalFlg: false,
+ fontsModalFlg: false,
title: "Eye Catch Maker",
title_en: "Featured image maker",
icon: "fa fa-eye",
color: "to left top, #05FBFF, #1E00FF",
width: 780,
height: 520,
+ font: fonts[1],
keyword: "",
isDownloading: false,
zoomPercentage: 100,
@@ -25,6 +28,12 @@ const app = new Vue({
}
},
computed: {
+ fonts: function () {
+ return fonts;
+ },
+ webgradients: function () {
+ return webgradients;
+ },
sampleItems: function () {
return [
{
@@ -47,8 +56,16 @@ const app = new Vue({
},
];
},
- webgradients: function () {
- return webgradients;
+ searchedIcons: function () {
+ const options = {
+ threshold: 0.3,
+ keys: ["name", "term"],
+ };
+ const fuse = new Fuse(icons, options);
+ let result;
+ if (!this.keyword) result = icons;
+ else result = fuse.search(this.keyword);
+ return result;
},
cssForPreview: function () {
return {
@@ -62,6 +79,7 @@ const app = new Vue({
width: this.width + "px",
height: this.height + "px",
background: "linear-gradient(" + this.color + ")",
+ fontFamily: this.font.fontFamily,
};
},
cssForPhotoArea: function () {
@@ -71,17 +89,6 @@ const app = new Vue({
backgroundImage: "url(" + this.imageData + ")",
};
},
- searchedIcons: function () {
- const options = {
- threshold: 0.3,
- keys: ["name", "term"],
- };
- const fuse = new Fuse(icons, options);
- let result;
- if (!this.keyword) result = icons;
- else result = fuse.search(this.keyword);
- return result;
- },
},
methods: {
selectImage: function (e) {
@@ -129,5 +136,8 @@ const app = new Vue({
selectGradient: function (selectedGradient) {
this.color = selectedGradient;
},
+ selectFont: function (selectedFont) {
+ this.font = selectedFont;
+ },
},
});