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.
- Loading branch information
1 parent
4b65ca6
commit 3e6cee1
Showing
2 changed files
with
22 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
import { Home } from '@/components/HeroIcons' | ||
import LazyImage from '@/components/LazyImage' | ||
import Link from 'next/link' | ||
import { siteConfig } from '@/lib/config' | ||
import Link from 'next/link' | ||
|
||
const Logo = props => { | ||
const { siteInfo } = props | ||
return ( | ||
<Link href='/' passHref legacyBehavior> | ||
<div className='flex flex-nowrap justify-center items-center cursor-pointer font-extrabold'> | ||
<LazyImage src={siteInfo?.icon} width={24} height={24} alt={siteConfig('AUTHOR')} className='mr-4 hidden md:block' /> | ||
<div id='logo-text' className='group rounded-2xl flex-none relative'> | ||
<div className='group-hover:opacity-0 opacity-100 visible group-hover:invisible text-lg my-auto rounded dark:border-white duration-200'> | ||
{siteConfig('TITLE') } | ||
</div> | ||
<div className='flex justify-center rounded-2xl group-hover:bg-indigo-600 w-full group-hover:opacity-100 opacity-0 invisible group-hover:visible absolute top-0 py-1 duration-200'> | ||
<Home className={'w-6 h-6 stroke-white stroke-2 '}/> | ||
</div> | ||
</div> | ||
</div> | ||
</Link> | ||
<Link href='/' passHref legacyBehavior> | ||
<div className='flex flex-nowrap items-center cursor-pointer font-extrabold'> | ||
<LazyImage | ||
src={siteInfo?.icon} | ||
width={24} | ||
height={24} | ||
alt={siteConfig('AUTHOR')} | ||
className='mr-4 hidden md:block' | ||
/> | ||
<div id='logo-text' className='group rounded-2xl flex-none relative'> | ||
<div className='group-hover:opacity-0 opacity-100 visible group-hover:invisible text-lg my-auto rounded dark:border-white duration-200'> | ||
{siteConfig('TITLE')} | ||
</div> | ||
<div className='flex justify-center rounded-2xl group-hover:bg-indigo-600 w-full group-hover:opacity-100 opacity-0 invisible group-hover:visible absolute top-0 py-1 duration-200'> | ||
<Home className={'w-6 h-6 stroke-white stroke-2 '} /> | ||
</div> | ||
</div> | ||
</div> | ||
</Link> | ||
) | ||
} | ||
export default Logo |