From 6b72a937eae0f4083342c212dc2a6767cebbbc99 Mon Sep 17 00:00:00 2001 From: lana-k Date: Sun, 20 Dec 2020 12:36:09 +0100 Subject: [PATCH] Move illustration to DbUpload component --- src/components/DbUpload.vue | 125 ++++++++++++++++++++++++++++++++++-- src/views/Home.vue | 107 +----------------------------- 2 files changed, 122 insertions(+), 110 deletions(-) diff --git a/src/components/DbUpload.vue b/src/components/DbUpload.vue index f9fbb0a..c9eadc4 100644 --- a/src/components/DbUpload.vue +++ b/src/components/DbUpload.vue @@ -3,8 +3,8 @@ +
+ + + + + + +
@@ -26,6 +50,18 @@ @@ -67,53 +39,6 @@ export default { margin-top: 83px; } -#img-container { - position: absolute; - top: calc(50% - 120px); - transform: translate(0, -50%); - width: 450px; - height: 338px; - pointer-events: none; -} -#drop-file-top-img { - width: 450px; - height: 171px; - position: absolute; - top: 0; - left: 0; -} -#drop-file-bottom-img { - width: 450px; - height: 167px; - position: absolute; - bottom: 0; - left: 0; -} -#body-img { - width: 74px; - position: absolute; - top: 94.05px; - left: 46px; -} -#right-arm-img { - width: 106px; - position: absolute; - top: 110.05px; - left: 78px; -} -#left-arm-img { - width: 114px; - position: absolute; - top: 69.05px; - left: 69px; -} -#file-img { - width: 125px; - position: absolute; - top: 15.66px; - left: 152px; -} - >>>.drop-area { width: 706px; height: 482px; @@ -126,32 +51,4 @@ export default { bottom: 42px; max-width: 300px; } - -.swing { - animation: swing ease-in-out 0.6s infinite alternate; -} -#left-arm-img.swing { - transform-origin: 9px 83px; -} -#right-arm-img.swing { - transform-origin: 0 56px; -} -#file-img.swing { - transform-origin: -74px 139px; -} -@keyframes swing { - 0% { transform: rotate(0deg); } - 100% { transform: rotate(-7deg); } -} - -#file-img.fly { - animation: fly ease-in-out 1s 1 normal; - transform-origin: center center; - top: 183px; - left: 225px; - transition: top 1s ease-in-out, left 1s ease-in-out; -} -@keyframes fly { - 100% { transform: rotate(360deg) scale(0.5); } -}