chore: change the bg width for page.

This commit is contained in:
Yufan Sheng 2024-11-28 11:21:45 +08:00
parent 67109ae7fe
commit 7ad873c83c
Signed by: syhily
GPG Key ID: 9D18A22A7DCD5A9B
3 changed files with 16 additions and 16 deletions

26
package-lock.json generated
View File

@ -12,7 +12,7 @@
"@astrojs/mdx": "^3.1.9", "@astrojs/mdx": "^3.1.9",
"@astrojs/rss": "^4.0.9", "@astrojs/rss": "^4.0.9",
"@zeabur/astro-adapter": "^1.0.6", "@zeabur/astro-adapter": "^1.0.6",
"astro": "^4.16.15", "astro": "^4.16.16",
"drizzle-orm": "^0.36.4", "drizzle-orm": "^0.36.4",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
@ -2887,9 +2887,9 @@
} }
}, },
"node_modules/astro": { "node_modules/astro": {
"version": "4.16.15", "version": "4.16.16",
"resolved": "https://registry.npmjs.org/astro/-/astro-4.16.15.tgz", "resolved": "https://registry.npmjs.org/astro/-/astro-4.16.16.tgz",
"integrity": "sha512-usybZ7nEUiwYKT7r47l4VbkqjKfaE+BgWV/ed4PT3mE3vFRTBWFsXLnkzrN7awfN6+/ekZTAcE+MAkdA551Umw==", "integrity": "sha512-H1CttrV6+JFrDBQx0Mcbq5i5AeLhCbztB786+9wEu3svWL/QPNeCGqF0dgNORAYmP+rODGCPu/y9qKSh87iLuA==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@astrojs/compiler": "^2.10.3", "@astrojs/compiler": "^2.10.3",
@ -2907,7 +2907,7 @@
"aria-query": "^5.3.2", "aria-query": "^5.3.2",
"axobject-query": "^4.1.0", "axobject-query": "^4.1.0",
"boxen": "8.0.1", "boxen": "8.0.1",
"ci-info": "^4.0.0", "ci-info": "^4.1.0",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"common-ancestor-path": "^1.0.1", "common-ancestor-path": "^1.0.1",
"cookie": "^0.7.2", "cookie": "^0.7.2",
@ -2929,7 +2929,7 @@
"http-cache-semantics": "^4.1.1", "http-cache-semantics": "^4.1.1",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"kleur": "^4.1.5", "kleur": "^4.1.5",
"magic-string": "^0.30.12", "magic-string": "^0.30.14",
"magicast": "^0.3.5", "magicast": "^0.3.5",
"micromatch": "^4.0.8", "micromatch": "^4.0.8",
"mrmime": "^2.0.0", "mrmime": "^2.0.0",
@ -2941,15 +2941,15 @@
"prompts": "^2.4.2", "prompts": "^2.4.2",
"rehype": "^13.0.2", "rehype": "^13.0.2",
"semver": "^7.6.3", "semver": "^7.6.3",
"shiki": "^1.22.2", "shiki": "^1.23.1",
"tinyexec": "^0.3.1", "tinyexec": "^0.3.1",
"tsconfck": "^3.1.4", "tsconfck": "^3.1.4",
"unist-util-visit": "^5.0.0", "unist-util-visit": "^5.0.0",
"vfile": "^6.0.3", "vfile": "^6.0.3",
"vite": "^5.4.10", "vite": "^5.4.11",
"vitefu": "^1.0.3", "vitefu": "^1.0.4",
"which-pm": "^3.0.0", "which-pm": "^3.0.0",
"xxhash-wasm": "^1.0.2", "xxhash-wasm": "^1.1.0",
"yargs-parser": "^21.1.1", "yargs-parser": "^21.1.1",
"zod": "^3.23.8", "zod": "^3.23.8",
"zod-to-json-schema": "^3.23.5", "zod-to-json-schema": "^3.23.5",
@ -3890,9 +3890,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/electron-to-chromium": { "node_modules/electron-to-chromium": {
"version": "1.5.65", "version": "1.5.66",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.65.tgz", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.66.tgz",
"integrity": "sha512-PWVzBjghx7/wop6n22vS2MLU8tKGd4Q91aCEGhG/TYmW6PP5OcSXcdnxTe1NNt0T66N8D6jxh4kC8UsdzOGaIw==", "integrity": "sha512-pI2QF6+i+zjPbqRzJwkMvtvkdI7MjVbSh2g8dlMguDJIXEPw+kwasS1Jl+YGPEBfGVxsVgGUratAKymPdPo2vQ==",
"license": "ISC" "license": "ISC"
}, },
"node_modules/emmet": { "node_modules/emmet": {

View File

@ -45,7 +45,7 @@
"@astrojs/mdx": "^3.1.9", "@astrojs/mdx": "^3.1.9",
"@astrojs/rss": "^4.0.9", "@astrojs/rss": "^4.0.9",
"@zeabur/astro-adapter": "^1.0.6", "@zeabur/astro-adapter": "^1.0.6",
"astro": "^4.16.15", "astro": "^4.16.16",
"drizzle-orm": "^0.36.4", "drizzle-orm": "^0.36.4",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",

View File

@ -24,7 +24,7 @@ const { Content, headings } = await page.render();
<PageMeta slot="og" title={page.title} description={page.summary} ogImageUrl={`/og/${page.slug}.png`} /> <PageMeta slot="og" title={page.title} description={page.summary} ogImageUrl={`/og/${page.slug}.png`} />
<div class="row gx-0"> <div class="row gx-0">
<div class="col-lg-8 col-xl-7"> <div class="col-lg-8 col-xl-8">
<div class="post p-3 p-md-5"> <div class="post p-3 p-md-5">
<h1 class="post-title mb-3 mb-xl-4">{page.title}</h1> <h1 class="post-title mb-3 mb-xl-4">{page.title}</h1>
<TableOfContents {headings} toc={page.toc} /> <TableOfContents {headings} toc={page.toc} />
@ -39,7 +39,7 @@ const { Content, headings } = await page.render();
</div> </div>
<Footer /> <Footer />
</div> </div>
<div class="col-lg-4 col-xl-5 d-none d-lg-block sticky-top hv"> <div class="col-lg-4 col-xl-4 d-none d-lg-block sticky-top hv">
<div class="bg-img hv" style={{ backgroundImage: `url('${page.cover.src}')` }}></div> <div class="bg-img hv" style={{ backgroundImage: `url('${page.cover.src}')` }}></div>
</div> </div>
</div> </div>