diff --git a/.upm/store.json b/.upm/store.json index 61357924aeae3d24ae38650f704d85e36a454ad3..da71cacb064b0991a910e8d6e3c4bb4bf8406104 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 633a5dfe4e547c48bfa93740a290ba5ba370930a..8752f222f903f38e7ef138657373d08fb57fe435 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 71dc55a3cb5a72589496743a327c738ead3e1c83..13fada32b912fbccafc5ab6b67a9481409388d0b 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 c133f9156b43080992482c4805bb9d6ad813c187..c9e3ba2382dc44739c426112ce0f53b3eda36231 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); + } +} }