mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-06 15:10:29 +00:00
theme-style
This commit is contained in:
@@ -5,5 +5,15 @@
|
||||
* @returns
|
||||
*/
|
||||
export default function CategoryBar(props) {
|
||||
return <div id='category-list' className="h-20 w-full bg-pink-100"></div>
|
||||
const { categoryOptions } = props
|
||||
console.log(categoryOptions)
|
||||
return <div id='category-bar' className="h-14 mb-2 w-full bg-white border flex py-2 px-4 justify-center items-center rounded-xl">
|
||||
{categoryOptions?.map(c => {
|
||||
return (
|
||||
<div key={c.id}>
|
||||
{c.name}
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
}
|
||||
|
||||
@@ -31,6 +31,7 @@ import TagItemMini from './components/TagItemMini'
|
||||
import Link from 'next/link'
|
||||
import CategoryBar from './components/CategoryBar'
|
||||
import { Transition } from '@headlessui/react'
|
||||
import { Style } from './style'
|
||||
|
||||
/**
|
||||
* 基础布局 采用上中下布局,移动端使用顶部侧边导航栏
|
||||
@@ -51,6 +52,7 @@ const LayoutBase = props => {
|
||||
<div id='theme-heo' className='bg-[#f7f9fe]'>
|
||||
{/* 网页SEO */}
|
||||
<CommonHead meta={meta} siteInfo={siteInfo} />
|
||||
<Style/>
|
||||
|
||||
{/* 顶部导航 */}
|
||||
<Header {...props} />
|
||||
@@ -71,7 +73,7 @@ const LayoutBase = props => {
|
||||
</Transition>
|
||||
|
||||
{/* 主区块 */}
|
||||
<main id="wrapper-outer" className={'w-full max-w-[88rem] mx-auto min-h-screen relative px-5'}>
|
||||
<main id="wrapper-outer" className={'w-full max-w-[88rem] mx-auto min-h-screen relative p-5'}>
|
||||
<div id="container-inner" className={(BLOG.LAYOUT_SIDEBAR_REVERSE ? 'flex-row-reverse' : '') + ' w-full mx-auto lg:flex lg:space-x-4 justify-center relative z-10'} >
|
||||
<div className={`${className || ''} w-full h-full`}>
|
||||
|
||||
|
||||
17
themes/heo/style.js
Normal file
17
themes/heo/style.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/* eslint-disable react/no-unknown-property */
|
||||
/**
|
||||
* 此处样式只对当前主题生效
|
||||
* 此处不支持tailwindCSS的 @apply 语法
|
||||
* @returns
|
||||
*/
|
||||
const Style = () => {
|
||||
return <style jsx global>{`
|
||||
|
||||
.test {
|
||||
text-color: red;
|
||||
}
|
||||
|
||||
`}</style>
|
||||
}
|
||||
|
||||
export { Style }
|
||||
Reference in New Issue
Block a user