chore: add github button
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user