From 7f4f6a461c0e7bd0433cadb9fbf8659d9858a98b Mon Sep 17 00:00:00 2001 From: Immortal Date: Wed, 13 Mar 2024 14:07:26 +0330 Subject: [PATCH] starBtn --- package-lock.json | 17 +++++++++++++++++ package.json | 1 + public/css/style.css | 5 +++++ src/pages/index.tsx | 7 ++++++- 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index fb17a4b..e85ce34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,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" @@ -3292,6 +3293,11 @@ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, + "node_modules/github-buttons": { + "version": "2.27.0", + "resolved": "https://registry.npmjs.org/github-buttons/-/github-buttons-2.27.0.tgz", + "integrity": "sha512-PmfRMI2Rttg/2jDfKBeSl621sEznrsKF019SuoLdoNlO7qRUZaOyEI5Li4uW+79pVqnDtKfIEVuHTIJ5lgy64w==" + }, "node_modules/glob": { "version": "10.3.10", "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", @@ -5122,6 +5128,17 @@ "react": "^18.2.0" } }, + "node_modules/react-github-btn": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/react-github-btn/-/react-github-btn-1.4.0.tgz", + "integrity": "sha512-lV4FYClAfjWnBfv0iNlJUGhamDgIq6TayD0kPZED6VzHWdpcHmPfsYOZ/CFwLfPv4Zp+F4m8QKTj0oy2HjiGXg==", + "dependencies": { + "github-buttons": "^2.22.0" + }, + "peerDependencies": { + "react": ">=16.3.0" + } + }, "node_modules/react-hot-toast": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/react-hot-toast/-/react-hot-toast-2.4.1.tgz", diff --git a/package.json b/package.json index fa18883..f119d6a 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/public/css/style.css b/public/css/style.css index 1f80087..c0e971d 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -234,4 +234,9 @@ footer p { width: 100%; text-align: center; font-size: 13px; +} +footer .starBtn { + float: right; + width: 100%; + margin-top: 6px; } \ No newline at end of file diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 809ae31..f3525d0 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -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 }); @@ -362,10 +363,14 @@ const Home: NextPage = () => { , IRCF, VahidFarid, goldSrc
+ + Star + +
); }; -export default Home; +export default Home; \ No newline at end of file