diff --git a/html/document.js b/html/document.js index ad4872f..674cf22 100644 --- a/html/document.js +++ b/html/document.js @@ -211,12 +211,12 @@ const app = new Vue({ } }); }, - setImageAndDraw(e){ + async setImageAndDraw(e){ let img = e.target; console.log(img); this.img = img; - this.louvre(); + await this.louvre(); }, output(){ const a = document.createElement('a'); diff --git a/html/document.less b/html/document.less index 382365b..3ad5a5c 100644 --- a/html/document.less +++ b/html/document.less @@ -3,12 +3,27 @@ } html{ background:var(--background-color); + text-align: center; +} +body{ + margin: 0; + padding-bottom:100px; +} +button{ + cursor: pointer; } canvas{ background:#FFF; } +.app{ + max-width:800px; + margin:0 auto; +} +.config-box{ + padding:20px 0; +} img,canvas{ - max-width:800px; + max-width:100%; } /* .app[data-cover="true"] canvas{ width:480px; diff --git a/html/index.html b/html/index.html index 82372b6..0396f45 100644 --- a/html/index.html +++ b/html/index.html @@ -13,11 +13,14 @@
+
-
+
+