mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
一些微调
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 ">
|
||||
|
||||
Reference in New Issue
Block a user