From 7fcb75feb2eab5ee554bf20d8ef6033cb92ca676 Mon Sep 17 00:00:00 2001 From: 641c55cabd0a9b5151c42173 <641c55cabd0a9b5151c42173@devide> Date: Fri, 7 Apr 2023 11:43:55 +0000 Subject: [PATCH] UPDATE --- .upm/store.json | 2 +- src/App.vue | 8 +++--- src/assets/base.css | 60 +++++++++++++++++++++++++++++++++++++++++++++ src/assets/main.css | 60 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 126 insertions(+), 4 deletions(-) diff --git a/.upm/store.json b/.upm/store.json index 6135792..da71cac 100644 --- a/.upm/store.json +++ b/.upm/store.json @@ -1 +1 @@ -{"version":2,"languages":{"nodejs-npm":{"specfileHash":"58c9ae4e8687db16ea7925086afedf3b","lockfileHash":"2157a76123c004596bbf191d5ad4beb8"}}} +{"version":2,"languages":{"nodejs-npm":{"specfileHash":"58c9ae4e8687db16ea7925086afedf3b","lockfileHash":"15b44c81a6a4931207c0b38e5ba918c2"}}} diff --git a/src/App.vue b/src/App.vue index 633a5df..8752f22 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,16 +4,18 @@ import TheWelcome from './components/TheWelcome.vue' diff --git a/src/assets/base.css b/src/assets/base.css index 71dc55a..13fada3 100644 --- a/src/assets/base.css +++ b/src/assets/base.css @@ -72,3 +72,63 @@ body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } + +body{ + margin: 0; + padding: 0; + background: #34495e; + height: 100vh; + display: flex; + /* 设为Flex布局以后,子元素的float、clear和vertical-align属性将失效。 */ + align-items:center; + justify-content: center; + /* font-family: "montserrat" ,sans-serif; */ + /* 在最后加一个sans-serif,这样如果所列出的字体都不能用,则默认的sans-serif字体能保证调用 */ +} +.loading{ + width:200px; + height:200px; + box-sizing: border-box; + border-radius: 50%; + border-top: 10px solid #e74c3c; + position:relative; + animation: a1 2s linear infinite; +} +.loading::before,.loading::after{ + content: ' '; + width: 200px; + height: 200px; + position: absolute; + left:0; + top: -10px; + box-sizing:border-box; + border-radius: 50%; +} +.loading::before{ + border-top: 10px solid #e67e22; + transform: rotate(120deg); +} +.loading::after{ + border-top: 10px solid #3498db; + transform: rotate(240deg); +} + +.loading span{ + position: absolute; + width: 200px; + height: 200px; + color: #fff; + text-align: center; + line-height: 200px; + animation: a2 2s linear infinite; +} +@keyframes a1{ + to{ + transform: rotate(360deg); + } +} +@keyframes a2{ + to{ + transform: rotate(-360deg); + } +} \ No newline at end of file diff --git a/src/assets/main.css b/src/assets/main.css index c133f91..c9e3ba2 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -32,4 +32,64 @@ a, grid-template-columns: 1fr 1fr; padding: 0 2rem; } + + body{ + margin: 0; + padding: 0; + background: #34495e; + height: 100vh; + display: flex; + /* 设为Flex布局以后,子元素的float、clear和vertical-align属性将失效。 */ + align-items:center; + justify-content: center; + /* font-family: "montserrat" ,sans-serif; */ + /* 在最后加一个sans-serif,这样如果所列出的字体都不能用,则默认的sans-serif字体能保证调用 */ +} +.loading{ + width:200px; + height:200px; + box-sizing: border-box; + border-radius: 50%; + border-top: 10px solid #e74c3c; + position:relative; + animation: a1 2s linear infinite; +} +.loading::before,.loading::after{ + content: ' '; + width: 200px; + height: 200px; + position: absolute; + left:0; + top: -10px; + box-sizing:border-box; + border-radius: 50%; +} +.loading::before{ + border-top: 10px solid #e67e22; + transform: rotate(120deg); +} +.loading::after{ + border-top: 10px solid #3498db; + transform: rotate(240deg); +} + +.loading span{ + position: absolute; + width: 200px; + height: 200px; + color: #fff; + text-align: center; + line-height: 200px; + animation: a2 2s linear infinite; +} +@keyframes a1{ + to{ + transform: rotate(360deg); + } +} +@keyframes a2{ + to{ + transform: rotate(-360deg); + } +} } -- GitLab