From cd99acf72674335aa0d6998311ae3ff67ed29d43 Mon Sep 17 00:00:00 2001 From: Vyacheslav Nagel Date: Mon, 10 Jul 2023 00:49:04 +0700 Subject: [PATCH] refactoring --- src/App.vue | 95 ++---------------------------------- src/components/Container.vue | 16 ++++++ src/components/Switch.vue | 77 +++++++++++++++++++++++++++++ src/style.css | 7 +++ 4 files changed, 105 insertions(+), 90 deletions(-) create mode 100644 src/components/Container.vue create mode 100644 src/components/Switch.vue diff --git a/src/App.vue b/src/App.vue index f78cc5f..e2612aa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,6 +6,8 @@ import Button from "./components/Button.vue"; import Page from "./components/Page.vue"; import Input from "./components/Input.vue"; import Canvas from "./components/Canvas.vue"; +import Switch from './components/Switch.vue'; +import Container from './components/Container.vue'; import { ButtonSize, InputType } from "./types"; import { useStore } from "./store"; import { storeToRefs } from "pinia"; @@ -40,7 +42,7 @@ const savePng = async () => { diff --git a/src/components/Container.vue b/src/components/Container.vue new file mode 100644 index 0000000..05ac561 --- /dev/null +++ b/src/components/Container.vue @@ -0,0 +1,16 @@ + + + diff --git a/src/components/Switch.vue b/src/components/Switch.vue new file mode 100644 index 0000000..ef0a92c --- /dev/null +++ b/src/components/Switch.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/src/style.css b/src/style.css index fd095ce..ba35280 100644 --- a/src/style.css +++ b/src/style.css @@ -1,3 +1,10 @@ +#app, +body, +html { + height: 100vh; + width: 100vw; +} + @font-face { font-family: "MPLUS1p"; font-style: normal;