@@ -3,31 +3,60 @@ import { siteConfig } from '@/lib/config'
3
3
const Footer = ( { title } ) => {
4
4
const d = new Date ( )
5
5
const currentYear = d . getFullYear ( )
6
- const copyrightDate = ( function ( ) {
7
- if ( Number . isInteger ( siteConfig ( 'SINCE' ) ) && siteConfig ( 'SINCE' ) < currentYear ) {
6
+ const copyrightDate = ( function ( ) {
7
+ if (
8
+ Number . isInteger ( siteConfig ( 'SINCE' ) ) &&
9
+ siteConfig ( 'SINCE' ) < currentYear
10
+ ) {
8
11
return siteConfig ( 'SINCE' ) + '-' + currentYear
9
12
}
10
13
return currentYear
11
14
} ) ( )
12
15
13
16
return (
14
- < footer
15
- className = 'relative z-10 dark:bg-black flex-shrink-0 bg-indigo-700 text-gray-300 justify-center text-center m-auto w-full leading-6 dark:text-gray-100 text-sm p-6'
16
- >
17
+ < footer className = 'relative z-10 dark:bg-black flex-shrink-0 bg-indigo-700 text-gray-300 justify-center text-center m-auto w-full leading-6 dark:text-gray-100 text-sm p-6' >
17
18
{ /* <DarkModeButton/> */ }
18
-
19
- < i className = 'fas fa-copyright' /> { `${ copyrightDate } ` } < span > < i className = 'mx-1 animate-pulse fas fa-heart' /> < a href = { siteConfig ( 'LINK' ) } className = 'underline font-bold dark:text-gray-300 ' > { siteConfig ( 'AUTHOR' ) } </ a > .< br />
20
-
21
- { siteConfig ( 'BEI_AN' ) && < > < i className = 'fas fa-shield-alt' /> < a href = 'https://beian.miit.gov.cn/' className = 'mr-2' > { siteConfig ( 'BEI_AN' ) } </ a > < br /> </ > }
22
-
23
- < span className = 'hidden busuanzi_container_site_pv' >
24
- < i className = 'fas fa-eye' /> < span className = 'px-1 busuanzi_value_site_pv' > </ span > </ span >
25
- < span className = 'pl-2 hidden busuanzi_container_site_uv' >
26
- < i className = 'fas fa-users' /> < span className = 'px-1 busuanzi_value_site_uv' > </ span > </ span >
27
- < br />
19
+ < i className = 'fas fa-copyright' /> { `${ copyrightDate } ` } { ' ' }
20
+ < span >
21
+ < span className = 'w-5 mx-1 text-center' >
22
+ < i className = ' animate-pulse fas fa-heart' />
23
+ </ span > { ' ' }
24
+ < a
25
+ href = { siteConfig ( 'LINK' ) }
26
+ className = 'underline font-bold dark:text-gray-300 ' >
27
+ { siteConfig ( 'AUTHOR' ) }
28
+ </ a >
29
+ .< br />
30
+ { siteConfig ( 'BEI_AN' ) && (
31
+ < >
32
+ < i className = 'fas fa-shield-alt' /> { ' ' }
33
+ < a href = 'https://beian.miit.gov.cn/' className = 'mr-2' >
34
+ { siteConfig ( 'BEI_AN' ) }
35
+ </ a >
36
+ < br />
37
+ </ >
38
+ ) }
39
+ < span className = 'hidden busuanzi_container_site_pv' >
40
+ < i className = 'fas fa-eye' />
41
+ < span className = 'px-1 busuanzi_value_site_pv' > </ span > { ' ' }
42
+ </ span >
43
+ < span className = 'pl-2 hidden busuanzi_container_site_uv' >
44
+ < i className = 'fas fa-users' /> { ' ' }
45
+ < span className = 'px-1 busuanzi_value_site_uv' > </ span > { ' ' }
46
+ </ span >
47
+ < br />
28
48
< h1 > { title } </ h1 >
29
- < span className = 'text-xs ' > Powered by < a href = 'https://github.com/tangly1024/NotionNext' className = 'underline dark:text-gray-300' > NotionNext { siteConfig ( 'VERSION' ) } </ a > .</ span > </ span > < br />
30
-
49
+ < span className = 'text-xs ' >
50
+ Powered by{ ' ' }
51
+ < a
52
+ href = 'https://github.com/tangly1024/NotionNext'
53
+ className = 'underline dark:text-gray-300' >
54
+ NotionNext { siteConfig ( 'VERSION' ) }
55
+ </ a >
56
+ .
57
+ </ span >
58
+ </ span >
59
+ < br />
31
60
</ footer >
32
61
)
33
62
}
0 commit comments