feat: increase JetBrainsMono font and optimize UI

This commit is contained in:
misitebao 2021-09-09 19:46:57 +08:00
parent 4e377815d1
commit 1b5066a229
20 changed files with 12 additions and 5 deletions

View File

@ -86,6 +86,7 @@ export default {
<style lang="scss"> <style lang="scss">
@import url("./assets/css/reset.css"); @import url("./assets/css/reset.css");
@import url("./assets/css/font.css");
html, html,
body { body {
@ -93,6 +94,7 @@ body {
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: "JetBrainsMono";
} }
#app { #app {

View File

@ -0,0 +1,4 @@
@font-face {
font-family: "JetBrainsMono";
src: url("../fonts/JetBrainsMono-Medium.woff2");
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -14,9 +14,9 @@ export default {
<!-- Add "scoped" attribute to limit CSS to this component only --> <!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped> <style scoped>
.hello-world { .hello-world {
height: 30px; height: 76px;
line-height: 30px; line-height: 38px;
margin: 16px auto; margin: 16px 150px;
text-align: center; text-align: center;
font-size: 26px; font-size: 26px;
} }

View File

@ -38,7 +38,7 @@ export default {
display: block; display: block;
width: 620px; width: 620px;
height: 280px; height: 280px;
margin: 30px auto 10px; margin: 10px auto 10px;
} }
.link { .link {
display: flex; display: flex;
@ -46,12 +46,13 @@ export default {
flex-wrap: nowrap; flex-wrap: nowrap;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin: 24px auto; margin: 16px auto;
.btn { .btn {
display: block; display: block;
width: 150px; width: 150px;
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
padding: 0 5px;
margin: 12px 30px; margin: 12px 30px;
border-radius: 8px; border-radius: 8px;
text-align: center; text-align: center;