Skip to content

Commit

Permalink
fix logo/banner
Browse files Browse the repository at this point in the history
  • Loading branch information
lvxuan149 committed Oct 28, 2024
1 parent a59cbb4 commit 836238b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
],
sidebar: 'auto',
sidebarDepth: 2,
logo: '/assets/img/Profile.jpg', // 确保这个文件存在
logo: '/img/Profile.jpg', // 简化路径
author: {
name: '0xDragon888',
link: 'https://github.com/lvxuan149'
Expand Down Expand Up @@ -46,7 +46,7 @@ module.exports = {
location: 3,
text: '标签'
}
}
},
},
plugins: [
['@vuepress/blog', {
Expand Down
Binary file added docs/.vuepress/public/assets/img/banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.vuepress/public/assets/img/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 28 additions & 6 deletions docs/.vuepress/styles/index.styl
Original file line number Diff line number Diff line change
@@ -1,12 +1,34 @@
// 自定义样式
.navbar
.logo
height 2.2rem
min-width 2.2rem
margin-right 0.8rem
vertical-align top
height 2.8rem
min-width 2.8rem
max-width 3rem
margin-right 1rem
vertical-align middle
border-radius 50%
object-fit cover

.home-wrapper
.banner
padding 2rem 0
background-color #f8f9fa
padding 4rem 2rem
background-image linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/img/banner.jpg')
background-size cover
background-position center
background-repeat no-repeat
min-height 300px
max-height 500px
height 40vh
display flex
align-items center
justify-content center
position relative

@media (max-width: 719px)
padding 3rem 1rem
min-height 250px
height 30vh

@media (min-width: 1200px)
height 50vh
max-height 600px

0 comments on commit 836238b

Please sign in to comment.