深色模式调整配色

This commit is contained in:
tangly1024
2022-04-02 10:15:37 +08:00
parent 56be56d002
commit 475e5f6f60
14 changed files with 21 additions and 22 deletions

View File

@@ -10,6 +10,7 @@ const Progress = ({ targetRef, showPercent = true }) => {
const [percent, changePercent] = useState(0)
const scrollListener = () => {
const target = currentRef || document.getElementById('container')
console.log(target)
if (target) {
const clientHeight = target.clientHeight
const scrollY = window.pageYOffset
@@ -27,7 +28,7 @@ const Progress = ({ targetRef, showPercent = true }) => {
}, [percent])
return (
<div className="h-4 w-full shadow-2xl bg-gray-400 font-sans">
<div className="h-4 w-full shadow-2xl bg-hexo-light-gray dark:bg-hexo-black-gray font-sans">
<div
className="h-4 bg-gray-600 duration-200"
style={{ width: `${percent}%` }}