Skip to content

Commit

Permalink
feat: count up
Browse files Browse the repository at this point in the history
  • Loading branch information
wkylin committed Dec 9, 2024
1 parent 1a18687 commit 958a799
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/pages/home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { version, useState, useRef } from 'react'
import { Input, Flex, Button } from 'antd'
import { SendOutlined } from '@ant-design/icons'
import { Atom, Merge, GitMerge, GitPullRequestArrow } from 'lucide-react'
// import CountUp from 'react-countup'
import CountUp from 'react-countup'
// import { PinInput } from 'react-input-pin-code'
import SpotlightCard from '@stateless/Spotlight'
import Typewriter from 'typewriter-effect'
Expand Down Expand Up @@ -311,12 +311,9 @@ const Home = () => {
</div>
</div>
</section>
{/* <section style={{ margin: 20, fontSize: 40 }}>
<CountUp start={20} end={10000} duration={10} enableScrollSpy scrollSpyDelay={1000} />
</section> */}
{/* <section style={{ margin: 20 }}>
<Masonry />
</section> */}
<section style={{ margin: '20px 0', fontSize: 40 }}>
<CountUp start={20} end={10000} duration={10} enableScrollSpy />
</section>

<section style={{ width: 600, margin: '30px 0' }}>
<Input defaultValue={apiKey} placeholder="api key" onChange={changeApiKey} style={{ marginBottom: 20 }} />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/layout/proTabs/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ProTabs = (props) => {
} = theme.useToken()

const renderTabBar = (props, DefaultTabBar) => (
<StickyBox offsetTop={0} style={{ zIndex: 9999}}>
<StickyBox offsetTop={0} style={{ zIndex: 10}}>
<DefaultTabBar
key={nanoid()}
{...props}
Expand Down

0 comments on commit 958a799

Please sign in to comment.