Skip to content

Commit

Permalink
starBtn
Browse files Browse the repository at this point in the history
  • Loading branch information
ircfspace committed Mar 13, 2024
1 parent ef3ae40 commit 7f4f6a4
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
17 changes: 17 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"next": "^14.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-github-btn": "^1.4.0",
"react-hot-toast": "^2.4.1",
"swr": "^2.2.4",
"zustand": "^4.5.0"
Expand Down
5 changes: 5 additions & 0 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -234,4 +234,9 @@ footer p {
width: 100%;
text-align: center;
font-size: 13px;
}
footer .starBtn {
float: right;
width: 100%;
margin-top: 6px;
}
7 changes: 6 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { allIps } from "~/consts";
import { useUserIPInfo } from "~/hooks/useUserIPInfo";
import { toast } from "react-hot-toast";
import { useEffect, useState } from "react";
import GitHubButton from 'react-github-btn';
//import { useRouter } from 'next/router';
const UserIP = dynamic(() => import("~/components/UserIP"), { ssr: false });

Expand Down Expand Up @@ -362,10 +363,14 @@ const Home: NextPage = () => {
</a>
, IRCF, VahidFarid, goldSrc
<br />
<span dir="ltr" className={"starBtn"}>
<GitHubButton href="https://github.com/kiomarzsss/kscanner" data-color-scheme="no-preference: light; light: light; dark: dark;" data-icon="octicon-star" data-show-count="true" aria-label="Star kiomarzsss/kscanner on GitHub">Star</GitHubButton>
</span>
<br />
</footer>
</div>
</>
);
};

export default Home;
export default Home;

0 comments on commit 7f4f6a4

Please sign in to comment.