Skip to content

Commit

Permalink
fix(base): use colorfu as base
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Nov 25, 2022
1 parent e4ef14e commit 0e47d93
Show file tree
Hide file tree
Showing 25 changed files with 36 additions and 30 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"prepare": "husky install"
"prepare": "husky install",
"deploy:gh-pages": "gh-pages -d dist"
},
"dependencies": {
"colorthief": "^2.3.2",
Expand All @@ -27,6 +28,7 @@
"babel-plugin-component": "^1.1.1",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"gh-pages": "^4.0.0",
"husky": "^7.0.0",
"vue-template-compiler": "^2.6.11"
},
Expand Down
2 changes: 1 addition & 1 deletion src/data/gallery/all/angry/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"content": "w(๑•̀ㅂ•́)و✧",
"fontSize": 200,
"fontFamily": "Luckiest Guy",
"fontURL": "/fonts/luckiest_guy.ea045d18.woff2",
"fontURL": "./fonts/luckiest_guy.ea045d18.woff2",
"type": "line",
"rotation": 45,
"width": 25,
Expand Down
2 changes: 1 addition & 1 deletion src/data/gallery/all/beer/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"🍺 + 🍺 = 🍻","fontSize":197,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#000","mode":"none","padding":0,"dy":0},"background":{"type":"none","color":"#1977F3","mode":"pattern"}}
{"text":{"content":"🍺 + 🍺 = 🍻","fontSize":197,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#000","mode":"none","padding":0,"dy":0},"background":{"type":"none","color":"#1977F3","mode":"pattern"}}
2 changes: 1 addition & 1 deletion src/data/gallery/all/big-world/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"content": "Big world",
"fontSize": 200,
"fontFamily": "Luckiest Guy",
"fontURL": "/fonts/luckiest_guy.ea045d18.woff2",
"fontURL": "./fonts/luckiest_guy.ea045d18.woff2",
"type": "none",
"color": "#fff",
"mode": "autoFit",
Expand Down
2 changes: 1 addition & 1 deletion src/data/gallery/all/cassidy/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"content": "It's high noon",
"fontSize": 200,
"fontFamily": "Luckiest Guy",
"fontURL": "/fonts/luckiest_guy.ea045d18.woff2",
"fontURL": "./fonts/luckiest_guy.ea045d18.woff2",
"type": "none",
"color": "#583d33",
"mode": "autoFit",
Expand Down
2 changes: 1 addition & 1 deletion src/data/gallery/all/challenge/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"content": "Face challenge",
"fontSize": 200,
"fontFamily": "Luckiest Guy",
"fontURL": "/fonts/luckiest_guy.ea045d18.woff2",
"fontURL": "./fonts/luckiest_guy.ea045d18.woff2",
"type": "none",
"color": "#fff",
"mode": "autoFit",
Expand Down
2 changes: 1 addition & 1 deletion src/data/gallery/all/dva/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"Dva Love you ❤️","fontSize":200,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#645a8d","mode":"autoFit","padding":0,"dy":30},"background":{"type":"none","color":"#ed9ec3","mode":"pattern","foregroundColor":"#6566b9","lineWidth":9,"width":85,"rotation":0}}
{"text":{"content":"Dva Love you ❤️","fontSize":200,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#645a8d","mode":"autoFit","padding":0,"dy":30},"background":{"type":"none","color":"#ed9ec3","mode":"pattern","foregroundColor":"#6566b9","lineWidth":9,"width":85,"rotation":0}}
2 changes: 1 addition & 1 deletion src/data/gallery/all/edg-nb/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"content": "EDG NB!",
"fontSize": 200,
"fontFamily": "Luckiest Guy",
"fontURL": "/fonts/luckiest_guy.ea045d18.woff2",
"fontURL": "./fonts/luckiest_guy.ea045d18.woff2",
"type": "none",
"color": "#000000",
"mode": "autoFit",
Expand Down
2 changes: 1 addition & 1 deletion src/data/gallery/all/eye/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"👁️","fontSize":100,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#000","mode":"none","padding":0,"dy":0},"background":{"type":"none","color":"#4DD599","mode":"pattern"}}
{"text":{"content":"👁️","fontSize":100,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#000","mode":"none","padding":0,"dy":0},"background":{"type":"none","color":"#4DD599","mode":"pattern"}}
2 changes: 1 addition & 1 deletion src/data/gallery/all/falling/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"content": "falling down",
"fontSize": 200,
"fontFamily": "Luckiest Guy",
"fontURL": "/fonts/luckiest_guy.ea045d18.woff2",
"fontURL": "./fonts/luckiest_guy.ea045d18.woff2",
"type": "none",
"color": "#fff",
"mode": "autoFit",
Expand Down
2 changes: 1 addition & 1 deletion src/data/gallery/all/good-night/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"content": "Good Night",
"fontSize": 200,
"fontFamily": "Luckiest Guy",
"fontURL": "/fonts/luckiest_guy.ea045d18.woff2",
"fontURL": "./fonts/luckiest_guy.ea045d18.woff2",
"type": "none",
"color": "#fff",
"mode": "autoFit",
Expand Down
2 changes: 1 addition & 1 deletion src/data/gallery/all/hulk/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"Always Angry","fontSize":200,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#836cc1","mode":"autoFit","padding":0,"dy":30},"background":{"type":"none","color":"#7bbc5c","mode":"pattern"}}
{"text":{"content":"Always Angry","fontSize":200,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#836cc1","mode":"autoFit","padding":0,"dy":30},"background":{"type":"none","color":"#7bbc5c","mode":"pattern"}}
2 changes: 1 addition & 1 deletion src/data/gallery/all/iron-man/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"A warm heart","fontSize":200,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#eabe4f","mode":"autoFit","padding":0,"dy":30},"background":{"type":"none","color":"#b93233","mode":"pattern"}}
{"text":{"content":"A warm heart","fontSize":200,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#eabe4f","mode":"autoFit","padding":0,"dy":30},"background":{"type":"none","color":"#b93233","mode":"pattern"}}
2 changes: 1 addition & 1 deletion src/data/gallery/all/jordan/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"Air Jordan","fontSize":687,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#10090a","mode":"constrain","padding":76,"dy":74},"background":{"type":"none","color":"#c40827","mode":"pattern"}}
{"text":{"content":"Air Jordan","fontSize":687,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#10090a","mode":"constrain","padding":76,"dy":74},"background":{"type":"none","color":"#c40827","mode":"pattern"}}
2 changes: 1 addition & 1 deletion src/data/gallery/all/kobe/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"Mamba forever","fontSize":200,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"line","rotation":45,"width":25,"height":25,"foregroundColor":"#EEEEEE","color":"#FFD369","mode":"autoFit","lineWidth":1.5,"padding":0,"dy":30},"background":{"mode":"pattern","color":"#222831","foregroundColor":"#393E46","type":"line","width":50,"lineWidth":1.5,"rotation":0}}
{"text":{"content":"Mamba forever","fontSize":200,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"line","rotation":45,"width":25,"height":25,"foregroundColor":"#EEEEEE","color":"#FFD369","mode":"autoFit","lineWidth":1.5,"padding":0,"dy":30},"background":{"mode":"pattern","color":"#222831","foregroundColor":"#393E46","type":"line","width":50,"lineWidth":1.5,"rotation":0}}
2 changes: 1 addition & 1 deletion src/data/gallery/all/mountain/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"content": "o( ̄▽ ̄)d",
"fontSize": 200,
"fontFamily": "Luckiest Guy",
"fontURL": "/fonts/luckiest_guy.ea045d18.woff2",
"fontURL": "./fonts/luckiest_guy.ea045d18.woff2",
"type": "none",
"color": "#fff",
"mode": "autoFit",
Expand Down
2 changes: 1 addition & 1 deletion src/data/gallery/all/show-off/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"content": "\n\n",
"fontSize": 200,
"fontFamily": "Luckiest Guy",
"fontURL": "/fonts/luckiest_guy.ea045d18.woff2",
"fontURL": "./fonts/luckiest_guy.ea045d18.woff2",
"type": "none",
"color": "#ffffff",
"mode": "none",
Expand Down
2 changes: 1 addition & 1 deletion src/data/gallery/all/spring/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"Spring","fontSize":279,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#FFDC34","mode":"autoFit","padding":0,"dy":60},"background":{"type":"line","color":"#4DD599","mode":"pattern","foregroundColor":"#00918E","lineWidth":189,"width":204,"rotation":-22}}
{"text":{"content":"Spring","fontSize":279,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#FFDC34","mode":"autoFit","padding":0,"dy":60},"background":{"type":"line","color":"#4DD599","mode":"pattern","foregroundColor":"#00918E","lineWidth":189,"width":204,"rotation":-22}}
2 changes: 1 addition & 1 deletion src/data/gallery/all/thor/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"Not from hammer","fontSize":200,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#ecdc75","mode":"autoFit","padding":0,"dy":30},"background":{"type":"none","color":"#8c9ed9","mode":"pattern"}}
{"text":{"content":"Not from hammer","fontSize":200,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#ecdc75","mode":"autoFit","padding":0,"dy":30},"background":{"type":"none","color":"#8c9ed9","mode":"pattern"}}
2 changes: 1 addition & 1 deletion src/data/gallery/all/tracer/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"Déjà Vu","fontSize":629,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#372923","mode":"constrain","padding":139,"dy":123},"background":{"type":"wave","color":"#e97e18","mode":"pattern","foregroundColor":"#efd496","lineWidth":30,"width":130,"height":130,"arcRadius":30,"rotation":29}}
{"text":{"content":"Déjà Vu","fontSize":629,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#372923","mode":"constrain","padding":139,"dy":123},"background":{"type":"wave","color":"#e97e18","mode":"pattern","foregroundColor":"#efd496","lineWidth":30,"width":130,"height":130,"arcRadius":30,"rotation":29}}
2 changes: 1 addition & 1 deletion src/data/gallery/all/tree/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"🍋🌳👇🐷🙋‍♀️","fontSize":121,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#000","mode":"none","padding":0,"dy":0},"background":{"type":"none","color":"#ed6828","mode":"pattern"}}
{"text":{"content":"🍋🌳👇🐷🙋‍♀️","fontSize":121,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#000","mode":"none","padding":0,"dy":0},"background":{"type":"none","color":"#ed6828","mode":"pattern"}}
2 changes: 1 addition & 1 deletion src/data/gallery/all/weak/index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"text":{"content":"🌶️🐔","fontSize":197,"fontFamily":"Luckiest Guy","fontURL":"/fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#000","mode":"none","padding":0,"dy":0},"background":{"type":"none","color":"#F8BA03","mode":"pattern"}}
{"text":{"content":"🌶️🐔","fontSize":197,"fontFamily":"Luckiest Guy","fontURL":"./fonts/luckiest_guy.ea045d18.woff2","type":"none","color":"#000","mode":"none","padding":0,"dy":0},"background":{"type":"none","color":"#F8BA03","mode":"pattern"}}
14 changes: 7 additions & 7 deletions src/pages/Story.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export default {
content: emoticon,
fontSize: 200,
fontFamily: "Luckiest Guy",
fontURL: "/fonts/luckiest_guy.ea045d18.woff2",
fontURL: "./fonts/luckiest_guy.ea045d18.woff2",
type: "none",
color: "#000000",
mode: "autoFit",
Expand All @@ -202,7 +202,7 @@ export default {
content: emoji,
fontSize: 100,
fontFamily: "Luckiest Guy",
fontURL: "/fonts/luckiest_guy.ea045d18.woff2",
fontURL: "./fonts/luckiest_guy.ea045d18.woff2",
type: "none",
color: "#000",
mode: "none",
Expand All @@ -221,7 +221,7 @@ export default {
content: name,
fontSize: 200,
fontFamily: "Luckiest Guy",
fontURL: "/fonts/luckiest_guy.ea045d18.woff2",
fontURL: "./fonts/luckiest_guy.ea045d18.woff2",
type: "none",
color: "#ffffff",
mode: "autoFit",
Expand All @@ -236,7 +236,7 @@ export default {
content: name,
fontSize: 200,
fontFamily: "Luckiest Guy",
fontURL: "/fonts/luckiest_guy.ea045d18.woff2",
fontURL: "./fonts/luckiest_guy.ea045d18.woff2",
type: "none",
color: values[1],
mode: "autoFit",
Expand All @@ -252,7 +252,7 @@ export default {
content: name,
fontSize: 200,
fontFamily: "Luckiest Guy",
fontURL: "/fonts/luckiest_guy.ea045d18.woff2",
fontURL: "./fonts/luckiest_guy.ea045d18.woff2",
type: "none",
color: c1,
mode: "autoFit",
Expand All @@ -279,7 +279,7 @@ export default {
content: name,
fontSize: 200,
fontFamily: "Luckiest Guy",
fontURL: "/fonts/luckiest_guy.ea045d18.woff2",
fontURL: "./fonts/luckiest_guy.ea045d18.woff2",
type: "line",
rotation: 45,
width: 25,
Expand Down Expand Up @@ -310,7 +310,7 @@ export default {
content: name,
fontSize: 200,
fontFamily: "Luckiest Guy",
fontURL: "/fonts/luckiest_guy.ea045d18.woff2",
fontURL: "./fonts/luckiest_guy.ea045d18.woff2",
type: "none",
color,
mode: "autoFit",
Expand Down
3 changes: 2 additions & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const routes = [

const router = new VueRouter({
routes,
mode: "history",
mode: "hash",
base: "/colorfu",
});

export default router;
3 changes: 3 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
publicPath: "/colorfu",
};

0 comments on commit 0e47d93

Please sign in to comment.