样式调整

This commit is contained in:
tangly1024
2022-01-27 10:03:22 +08:00
parent ddd38a6745
commit a9d47d3594
4 changed files with 7 additions and 4 deletions

View File

@@ -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'

View File

@@ -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">

View File

@@ -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'

View File

@@ -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 }