mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-28 07:26:57 +00:00
theme movie style
This commit is contained in:
@@ -75,7 +75,7 @@ const LayoutBase = props => {
|
|||||||
'relative mx-auto justify-center md:flex items-start py-8 px-2'
|
'relative mx-auto justify-center md:flex items-start py-8 px-2'
|
||||||
}>
|
}>
|
||||||
{/* 内容 */}
|
{/* 内容 */}
|
||||||
<div className={`w-full ${fullWidth ? '' : ''} xl:px-32 lg:px-4`}>
|
<div className={`w-full ${fullWidth ? '' : ''} px-4 max-w-[90rem] mx-auto`}>
|
||||||
<Transition
|
<Transition
|
||||||
show={!onLoading}
|
show={!onLoading}
|
||||||
appear={true}
|
appear={true}
|
||||||
@@ -157,7 +157,7 @@ const LayoutSlug = props => {
|
|||||||
|
|
||||||
// 创建一个新的容器元素
|
// 创建一个新的容器元素
|
||||||
const videoWrapper = document.createElement('div')
|
const videoWrapper = document.createElement('div')
|
||||||
videoWrapper.className = 'video-wrapper p-2 bg-gray-100 dark:bg-hexo-black-gray max-w-4xl mx-auto'
|
videoWrapper.className = 'video-wrapper py-1 px-3 bg-gray-100 dark:bg-white dark:text-black mx-auto'
|
||||||
|
|
||||||
// 创建一个新的容器元素
|
// 创建一个新的容器元素
|
||||||
const carouselWrapper = document.createElement('div')
|
const carouselWrapper = document.createElement('div')
|
||||||
@@ -234,7 +234,7 @@ const LayoutSlug = props => {
|
|||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
combineVideo()
|
combineVideo()
|
||||||
}, 100)
|
}, 2000)
|
||||||
|
|
||||||
// 404
|
// 404
|
||||||
if (!post) {
|
if (!post) {
|
||||||
@@ -266,7 +266,7 @@ const LayoutSlug = props => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{!lock ? (
|
{!lock ? (
|
||||||
<div id='article-wrapper' className='px-2 max-w-5xl mx-auto'>
|
<div id='article-wrapper' className='px-2 max-w-6xl mx-auto'>
|
||||||
{/* 标题 */}
|
{/* 标题 */}
|
||||||
<ArticleInfo post={post} />
|
<ArticleInfo post={post} />
|
||||||
{/* 页面元素 */}
|
{/* 页面元素 */}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export default function NavBar(props) {
|
|||||||
|
|
||||||
const onKeyUp = e => {
|
const onKeyUp = e => {
|
||||||
if (e.keyCode === 13) {
|
if (e.keyCode === 13) {
|
||||||
const search = document.getElementById('theme-simple-search').value
|
const search = document.getElementById('simple-search').value
|
||||||
if (search) {
|
if (search) {
|
||||||
router.push({ pathname: '/search/' + search })
|
router.push({ pathname: '/search/' + search })
|
||||||
}
|
}
|
||||||
@@ -43,7 +43,7 @@ export default function NavBar(props) {
|
|||||||
{showSearchInput && (
|
{showSearchInput && (
|
||||||
<input
|
<input
|
||||||
autoFocus
|
autoFocus
|
||||||
id="theme-simple-search"
|
id="simple-search"
|
||||||
onKeyUp={onKeyUp}
|
onKeyUp={onKeyUp}
|
||||||
className="float-left w-full outline-none h-full px-4"
|
className="float-left w-full outline-none h-full px-4"
|
||||||
aria-label="Submit search"
|
aria-label="Submit search"
|
||||||
|
|||||||
Reference in New Issue
Block a user