Skip to content

Commit

Permalink
feat: UI adapted to mobile terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyBear committed Jan 26, 2023
1 parent 75e797b commit f3403a9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
3 changes: 3 additions & 0 deletions src/assets/style/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,7 @@ html {
}
.space-lg {
height: 100px;
}
.nowrap {
white-space: nowrap;
}
8 changes: 7 additions & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ main {
justify-content: center;
#code-box {
width: 450px;
height: 250px;
min-height: 250px;
border-radius: 15px;
background-color: rgba(255, 255, 255, .2);
padding: 10px;
Expand Down Expand Up @@ -208,4 +208,10 @@ footer {
.language-css {
white-space: pre-wrap;
}
@media screen and (max-width: 786px) {
.side-bar {
padding: 20px;
}
}
</style>
4 changes: 2 additions & 2 deletions src/views/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="title">
Glassmorphism Generator
</div>
<span class="slogan">
<span class="desc">
{{ $t('welcome.desc') }}
</span>
<div class="panel">
Expand Down Expand Up @@ -57,7 +57,7 @@ main {
color: transparent;
line-height: 10vw * 1;
}
.slogan {
.desc {
font-size: 1.2rem;
color: @font-color;
}
Expand Down
8 changes: 7 additions & 1 deletion src/views/global/GlFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<div class="copyright">
{{ $t('footer.license.prefix') }}
<a href="https://github.com/ZenkieBear/glassmorphism/blob/main/LICENSE'" class="link">MIT</a>
{{ $t('footer.license.suffix') }} |
{{ $t('footer.license.suffix') }}
|
{{ $t('footer.copyPrefix', {year: 2022}) }} <a href="https://github.com/ZenkieBear" class="link">Zenkie Bear</a> .
</div>
</footer>
Expand Down Expand Up @@ -72,4 +73,9 @@ footer {
margin-top: 1rem;
}
}
@media screen and (max-width: 768px) {
footer {
font-size: 3vw;
}
}
</style>
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const resolve = (relativePath) => {
export default defineConfig({
server: {
port: 5000,
host: 'localhost',
host: '0.0.0.0',
},
plugins: [vue()],
resolve: {
Expand Down

0 comments on commit f3403a9

Please sign in to comment.