一些微调

This commit is contained in:
tangly1024.com
2023-03-23 08:34:28 +08:00
parent 992d9d1f07
commit 32d0a5b7a5
2 changed files with 2 additions and 14 deletions

View File

@@ -15,11 +15,9 @@ class MyDocument extends Document {
<Head>
<link rel='icon' href='/favicon.ico' />
<CommonScript />
{console.log(this.renderCSS())}
{this.renderCSS()}
</Head>
<body
className={'tracking-wider subpixel-antialiased bg-day dark:bg-night'}
className={'bg-day dark:bg-night'}
>
<Main />
<NextScript />
@@ -27,16 +25,6 @@ class MyDocument extends Document {
</Html>
)
}
renderCSS() {
if (BLOG.CSS_LIST && BLOG.CSS_LIST.length > 0) {
return BLOG.CSS_LIST.map((item, index) => {
return (
<link rel="stylesheet" key={index + 'stylesheet'} href={item}></link>
)
})
}
}
}
export default MyDocument

View File

@@ -19,7 +19,7 @@ export default function HeaderArticle({ post, siteInfo }) {
return (
<div
id="header"
className="w-full h-96 relative md:flex-shrink-0 overflow-hidden bg-cover bg-center bg-no-repeat animate__animated animate__fadeIn relative z-10"
className="w-full h-96 relative md:flex-shrink-0 overflow-hidden bg-cover bg-center bg-no-repeat animate__animated animate__fadeIn z-10"
style={{ backgroundImage: headerImage }}
>
<header className="animate__slideInDown animate__animated bg-black bg-opacity-70 absolute top-0 w-full h-96 py-10 flex justify-center items-center ">