forked from tangly1024/NotionNext
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request tangly1024#2903 from tangly1024/feat/theme-movie-b…
…ackground-image Feat/theme movie background image
- Loading branch information
Showing
16 changed files
with
137 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import Link from 'next/link' | ||
import { siteConfig } from '@/lib/config' | ||
import Link from 'next/link' | ||
|
||
const Logo = props => { | ||
return ( | ||
<section className='flex'> | ||
<Link | ||
href='/' | ||
className='hover:bg-black hover:text-white border-black border-2 duration-500 px-4 py-2 cursor-pointer dark:text-gray-300 dark:border-gray-300 font-black'> | ||
{siteConfig('TITLE')} | ||
</Link> | ||
</section> | ||
); | ||
<section className='flex'> | ||
<Link | ||
href='/' | ||
className='logo hover:bg-black hover:text-white border-black border-2 duration-500 px-4 py-2 cursor-pointer dark:text-gray-300 dark:border-gray-300 font-black'> | ||
{siteConfig('TITLE')} | ||
</Link> | ||
</section> | ||
) | ||
} | ||
|
||
export default Logo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import Link from 'next/link' | ||
import { siteConfig } from '@/lib/config' | ||
import Link from 'next/link' | ||
|
||
export default function LogoBar (props) { | ||
export default function LogoBar(props) { | ||
return ( | ||
<div id='top-wrapper' className='w-full flex items-center '> | ||
<Link href='/' className='text-md md:text-xl dark:text-gray-200'> | ||
{siteConfig('TITLE')} | ||
</Link> | ||
<Link href='/' className='logo text-md md:text-xl dark:text-gray-200'> | ||
{siteConfig('TITLE')} | ||
</Link> | ||
</div> | ||
); | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import LazyImage from '@/components/LazyImage' | ||
import { siteConfig } from '@/lib/config' | ||
import { useGlobal } from '@/lib/global' | ||
/** | ||
* 封面图 | ||
* @param {*} props | ||
* @returns | ||
*/ | ||
export const HomeBackgroundImage = props => { | ||
const { siteInfo } = useGlobal() | ||
const background = siteConfig('MOVIE_HOME_BACKGROUND') | ||
if (!background) { | ||
return null | ||
} | ||
return ( | ||
<LazyImage | ||
className='-mt-20 w-screen h-screen pointer-events-none select-none object-cover' | ||
src={siteInfo?.pageCover} | ||
/> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.