File tree 2 files changed +22
-18
lines changed
2 files changed +22
-18
lines changed Original file line number Diff line number Diff line change @@ -144,11 +144,9 @@ const Header = props => {
144
144
${ fixedNav ? 'fixed' : 'relative bg-transparent' }
145
145
${ textWhite ? 'text-white ' : 'text-black dark:text-white' }
146
146
${ navBgWhite ? 'bg-white dark:bg-[#18171d] shadow' : 'bg-transparent' } ` } >
147
- < div className = 'flex h-full mx-auto justify-between items-center max-w-[86rem] px-8 ' >
147
+ < div className = 'flex h-full mx-auto justify-between items-center max-w-[86rem] px-6 ' >
148
148
{ /* 左侧logo */ }
149
- < div className = 'flex' >
150
- < Logo { ...props } />
151
- </ div >
149
+ < Logo { ...props } />
152
150
153
151
{ /* 中间菜单 */ }
154
152
< div
Original file line number Diff line number Diff line change 1
1
import { Home } from '@/components/HeroIcons'
2
2
import LazyImage from '@/components/LazyImage'
3
- import Link from 'next/link'
4
3
import { siteConfig } from '@/lib/config'
4
+ import Link from 'next/link'
5
5
6
6
const Logo = props => {
7
7
const { siteInfo } = props
8
8
return (
9
- < Link href = '/' passHref legacyBehavior >
10
- < div className = 'flex flex-nowrap justify-center items-center cursor-pointer font-extrabold' >
11
- < LazyImage src = { siteInfo ?. icon } width = { 24 } height = { 24 } alt = { siteConfig ( 'AUTHOR' ) } className = 'mr-4 hidden md:block' />
12
- < div id = 'logo-text' className = 'group rounded-2xl flex-none relative' >
13
- < div className = 'group-hover:opacity-0 opacity-100 visible group-hover:invisible text-lg my-auto rounded dark:border-white duration-200' >
14
- { siteConfig ( 'TITLE' ) }
15
- </ div >
16
- < 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' >
17
- < Home className = { 'w-6 h-6 stroke-white stroke-2 ' } />
18
- </ div >
19
- </ div >
20
- </ div >
21
- </ Link >
9
+ < Link href = '/' passHref legacyBehavior >
10
+ < div className = 'flex flex-nowrap items-center cursor-pointer font-extrabold' >
11
+ < LazyImage
12
+ src = { siteInfo ?. icon }
13
+ width = { 24 }
14
+ height = { 24 }
15
+ alt = { siteConfig ( 'AUTHOR' ) }
16
+ className = 'mr-4 hidden md:block'
17
+ />
18
+ < div id = 'logo-text' className = 'group rounded-2xl flex-none relative' >
19
+ < div className = 'group-hover:opacity-0 opacity-100 visible group-hover:invisible text-lg my-auto rounded dark:border-white duration-200' >
20
+ { siteConfig ( 'TITLE' ) }
21
+ </ div >
22
+ < 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' >
23
+ < Home className = { 'w-6 h-6 stroke-white stroke-2 ' } />
24
+ </ div >
25
+ </ div >
26
+ </ div >
27
+ </ Link >
22
28
)
23
29
}
24
30
export default Logo
You can’t perform that action at this time.
0 commit comments