chore: add github button

This commit is contained in:
ourongxing
2025-08-11 23:19:04 +08:00
parent 640a4550d6
commit e9804b9ee2
2 changed files with 9 additions and 2 deletions
+7
View File
@@ -17,6 +17,12 @@ function GoTop() {
)
}
function Github() {
return (
<button type="button" title="Github" className="i-ph:github-logo-duotone btn" onClick={() => window.open(Homepage)} />
)
}
function Refresh() {
const currentSources = useAtomValue(currentSourcesAtom)
const { refresh } = useRefetch()
@@ -65,6 +71,7 @@ export function Header() {
<span className="justify-self-end flex gap-2 items-center text-xl text-primary-600 dark:text-primary">
<GoTop />
<Refresh />
<Github />
<Menu />
</span>
</>
+2 -2
View File
@@ -75,7 +75,7 @@ export function Menu() {
>
<img
alt="GitHub stars badge"
src="https://img.shields.io/github/stars/ourongxing/newsnow?logo=github"
src="https://img.shields.io/github/stars/ourongxing/newsnow?logo=github&style=flat&labelColor=%235e3c40&color=%23614447"
/>
</a>
<a
@@ -83,7 +83,7 @@ export function Menu() {
>
<img
alt="GitHub forks badge"
src="https://img.shields.io/github/forks/ourongxing/newsnow?logo=github"
src="https://img.shields.io/github/forks/ourongxing/newsnow?logo=github&style=flat&labelColor=%235e3c40&color=%23614447"
/>
</a>
</li>