mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-14 07:26:52 +00:00
样式调整
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import CONFIG_FUKA from './config_fuka'
|
||||
export { CONFIG_FUKA as THEME_CONFIG }
|
||||
export { LayoutIndex } from './LayoutIndex'
|
||||
export { LayoutSearch } from './LayoutSearch'
|
||||
export { LayoutArchive } from './LayoutArchive'
|
||||
|
||||
@@ -39,12 +39,13 @@ export const LayoutSlug = props => {
|
||||
post.toc = getPageTableOfContents(post, post.blockMap)
|
||||
}
|
||||
|
||||
const headerImage = post?.page_cover ? `url("${post.page_cover}")` : `url("/${CONFIG_NEXT.HOME_BANNER_IMAGE}")`
|
||||
const headerSlot = (
|
||||
<div
|
||||
className="w-full h-96 relative md:flex-shrink-0 overflow-hidden bg-cover bg-center bg-no-repeat"
|
||||
style={{ backgroundImage: `url("/${CONFIG_NEXT.HOME_BANNER_IMAGE}")` }}
|
||||
style={{ backgroundImage: headerImage }}
|
||||
>
|
||||
<header className="animate__slideInDown animate__animated bg-black bg-opacity-50 absolute top-0 w-full h-96 py-10 flex justify-center items-center font-sans">
|
||||
<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 font-sans">
|
||||
<div>
|
||||
{/* 文章Title */}
|
||||
<div className="font-bold text-3xl shadow-text flex justify-center text-white dark:text-white font-sans">
|
||||
|
||||
@@ -25,7 +25,7 @@ export default function SideRight (props) {
|
||||
showTag
|
||||
} = props
|
||||
return (
|
||||
<div className='w-80 space-y-4 hidden lg:block'>
|
||||
<div className='w-72 space-y-4 hidden lg:block'>
|
||||
<Card>
|
||||
<div
|
||||
className='justify-center items-center flex hover:rotate-45 py-6 hover:scale-105 transform duration-200 cursor-pointer'
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import CONFIG_NEXT from './config_next'
|
||||
export { CONFIG_NEXT as THEME_CONFIG }
|
||||
export { LayoutIndex } from './LayoutIndex'
|
||||
export { LayoutSearch } from './LayoutSearch'
|
||||
export { LayoutArchive } from './LayoutArchive'
|
||||
@@ -9,4 +10,3 @@ export { LayoutCategoryIndex } from './LayoutCategoryIndex'
|
||||
export { LayoutPage } from './LayoutPage'
|
||||
export { LayoutTag } from './LayoutTag'
|
||||
export { LayoutTagIndex } from './LayoutTagIndex'
|
||||
export { CONFIG_NEXT as THEME_CONFIG }
|
||||
|
||||
Reference in New Issue
Block a user