mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-06 15:10:29 +00:00
Merge branch 'main' into pr/emengweb/1007
This commit is contained in:
@@ -4,6 +4,7 @@ import Typed from 'typed.js'
|
||||
import CONFIG_HEXO from '../config_hexo'
|
||||
import NavButtonGroup from './NavButtonGroup'
|
||||
import throttle from 'lodash.throttle'
|
||||
import { useGlobal } from '@/lib/global'
|
||||
|
||||
let wrapperTop = 0
|
||||
let windowTop = 0
|
||||
@@ -17,6 +18,7 @@ const enableAutoScroll = false // 是否开启自动吸附滚动
|
||||
const Header = props => {
|
||||
const [typed, changeType] = useState()
|
||||
const { siteInfo } = props
|
||||
const { locale } = useGlobal()
|
||||
useEffect(() => {
|
||||
updateHeaderHeight()
|
||||
|
||||
@@ -103,7 +105,7 @@ const Header = props => {
|
||||
onClick={() => { window.scrollTo({ top: wrapperTop, behavior: 'smooth' }) }}
|
||||
className="cursor-pointer w-full text-center py-4 text-3xl absolute bottom-10 text-white"
|
||||
>
|
||||
<div class="opacity-70 animate-bounce text-xs">点此继续</div>
|
||||
<div className="opacity-70 animate-bounce text-xs">{locale.COMMON.START_READING}</div>
|
||||
<i className='opacity-70 animate-bounce fas fa-angle-down' />
|
||||
</div>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user