feat: optimize the navigation bar UI and add about content.

This commit is contained in:
misitebao 2021-09-09 20:42:50 +08:00
parent 93847e9739
commit 575c511c51
3 changed files with 70 additions and 37 deletions

View File

@ -178,7 +178,7 @@ body {
min-width: 150px; min-width: 150px;
.bar-btn { .bar-btn {
display: inline-block; display: inline-block;
min-width: 50px; min-width: 80px;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
padding: 0 5px; padding: 0 5px;

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

View File

@ -4,61 +4,94 @@
<div class="title">{{ $t('aboutpage.title') }}</div> <div class="title">{{ $t('aboutpage.title') }}</div>
<!-- Information --> <!-- Information -->
<!-- 信息 --> <!-- 信息 -->
<div class="content">
<div class="comeon">
<img :src="comeonGif" alt />
</div>
<ul class="info"> <ul class="info">
<li class="info-item"> <li class="info-item">
<span class="name">{{ $t('aboutpage.project-repository') + ': ' }}</span> <div class="name">{{ $t('aboutpage.project-repository') }}</div>
<OpenLink <OpenLink
class="link" class="link"
href="https://github.com/misitebao/wails-template-vue" href="https://github.com/misitebao/wails-template-vue"
>https://github.com/misitebao/wails-template-vue</OpenLink> >https://github.com/misitebao/wails-template-vue</OpenLink>
</li> </li>
<li class="info-item"> <li class="info-item">
<span class="name">{{ $t('aboutpage.author') + ': ' }}</span> <div class="name">{{ $t('aboutpage.wails-repository') }}</div>
<OpenLink class="link" href="https://github.com/misitebao">{{ $t('aboutpage.misitebao') }}</OpenLink>
</li>
<li class="info-item">
<span class="name">{{ $t('aboutpage.wails-repository') + ': ' }}</span>
<OpenLink <OpenLink
class="link" class="link"
href="https://github.com/wailsapp/wails" href="https://github.com/wailsapp/wails"
>https://github.com/wailsapp/wails</OpenLink> >https://github.com/wailsapp/wails</OpenLink>
</li> </li>
<li class="info-item">
<div class="name">{{ $t('aboutpage.author') }}</div>
<OpenLink class="link" href="https://github.com/misitebao">{{ $t('aboutpage.misitebao') }}</OpenLink>
</li>
</ul> </ul>
</div>
<!-- Thanks --> <!-- Thanks -->
<!-- 谢语 --> <!-- 谢语 -->
<div class="thank">{{ $t('aboutpage.thanks') }}</div> <div class="thank">{{ $t('aboutpage.thanks') }}</div>
</div> </div>
</template> </template>
<script>
import comeonGif from '@/assets/images/comeon.gif'
export default {
setup() {
return {
comeonGif
}
},
}
</script>
<style lang="scss"> <style lang="scss">
.about { .about {
.title { .title {
margin: 30px auto; margin: 20px auto 10px;
font-size: 36px; font-size: 38px;
color: #a150b5; color: #a150b5;
text-align: center; text-align: center;
} }
.content {
position: relative;
margin: 14px 20px;
.comeon {
position: absolute;
left: 60px;
top: 26px;
max-width: 66%;
img {
width: 180px;
height: 180px;
}
}
.info { .info {
margin: 14px 60px; margin: 0 0 0 33%;
// background-color red
font-size: 24px; font-size: 24px;
text-align: left;
.info-item { .info-item {
height: 60px; margin-bottom: 10px;
line-height: 60px;
white-space: nowrap;
.name { .name {
line-height: 40px;
font-size: 28px;
color: #6d6363; color: #6d6363;
} }
.link { .link {
line-height: 30px;
font-size: 20px;
color: #5f6c86; color: #5f6c86;
} }
} }
} }
}
.thank { .thank {
height: 68px; height: 68px;
line-height: 68px; line-height: 68px;
margin: 47px auto; margin: 36px auto;
text-align: center; text-align: center;
font-size: 50px; font-size: 40px;
} }
} }
</style> </style>