Skip to content

Commit 9cf20e3

Browse files
committed
docs: update banner background
1 parent 3fe7542 commit 9cf20e3

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

astro.config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ import { remarkReadingTime } from "./src/plugins/remark-reading-time.mjs";
2828
import mdx from "@astrojs/mdx";
2929
// https://astro.build/config
3030
export default defineConfig({
31+
server: {
32+
port: 5173,
33+
host: true,
34+
},
3135
site: "https://alvinluo-tech.github.io",
3236
trailingSlash: "always",
3337
integrations: [

public/assets/images/desktop.webp

389 KB
Loading

public/assets/images/fat_face.jpg

-65.2 KB
Binary file not shown.

public/assets/images/mobile.webp

1.1 MB
Loading

src/config/siteConfig.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ export const siteConfig: SiteConfig = {
8989
// 背景图片配置
9090
src: {
9191
// 桌面背景图片
92-
desktop: "/assets/images/d1.webp",
92+
desktop: "/assets/images/desktop.webp",
9393
// 移动背景图片
94-
mobile: "/assets/images/m1.webp",
94+
mobile: "/assets/images/mobile.webp",
9595
},
9696

9797
// 图片位置
9898
// 支持所有CSS object-position值,如: 'top', 'center', 'bottom', 'left top', 'right bottom', '25% 75%', '10px 20px'..
9999
// 如果不知道怎么配置百分百之类的配置,推荐直接使用:'center'居中,'top'顶部居中,'bottom' 底部居中,'left'左侧居中,'right'右侧居中
100-
position: "0% 20%",
100+
position: "10% 20%",
101101

102102
// Banner模式特有配置
103103
banner: {

src/styles/layout-styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@
636636
}
637637

638638
.banner-subtitle {
639-
font-size: 1.125rem !important;
639+
font-size: 1.6rem !important;
640640
line-height: 1.4 !important;
641641
}
642642

0 commit comments

Comments
 (0)