From 88db80859abe0a1aca04dd88107ea53384537ee3 Mon Sep 17 00:00:00 2001 From: DevvSakib Date: Mon, 27 Feb 2023 00:16:37 +0600 Subject: [PATCH] v1.0.1 released --- index.html | 2 +- src/App.jsx | 2 +- src/components/BGShape.jsx | 22 ++++++ src/components/Contributors/contributors.jsx | 71 +++++++++++--------- src/components/Doc/DocItem.jsx | 2 +- src/components/Error/ErrorCard.jsx | 2 +- src/components/Header/Header.jsx | 50 ++++++++++++-- src/main.jsx | 4 +- 8 files changed, 111 insertions(+), 44 deletions(-) create mode 100644 src/components/BGShape.jsx diff --git a/index.html b/index.html index 9c0e01b..2349d65 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ GitHub Error Solve - Opensource Projects - + diff --git a/src/App.jsx b/src/App.jsx index db5ee88..dbfa4ba 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -3,6 +3,7 @@ import "./index.css"; import Error from "./components/Error/Error"; import SearchInput from "./components/Search/SearchInput"; import Layout from "./components/Layout/Layout"; +import BGShape from "./components/BGShape"; function App() { const [search, setSearch] = useState('') @@ -21,7 +22,6 @@ function App() { type={type} /> - ); } diff --git a/src/components/BGShape.jsx b/src/components/BGShape.jsx new file mode 100644 index 0000000..e852cf8 --- /dev/null +++ b/src/components/BGShape.jsx @@ -0,0 +1,22 @@ +import React from 'react' + +const BGShape = () => { + return ( +
+ {/*
*/} +
+ +
+
+ +
+ +
+ +
+
+
+ ) +} + +export default BGShape \ No newline at end of file diff --git a/src/components/Contributors/contributors.jsx b/src/components/Contributors/contributors.jsx index 82c351e..76be958 100644 --- a/src/components/Contributors/contributors.jsx +++ b/src/components/Contributors/contributors.jsx @@ -4,7 +4,6 @@ import Layout from "../../components/Layout/Layout"; import "./css/index.css"; function Contribute() { - const userURL = "https://api.github.com/users/"; const url = "https://api.github.com/repos/devvsakib/github-error-solve/contributors"; @@ -56,41 +55,47 @@ function Contribute() { { // User filtered by CONTRIBUTIONS number, contribute more to jump in first place - loading ? ( - data.map((user) => ( -
- -

- {user.login}{" "} - - {user.contributions} - -

-
- - GitHub - - {user.twitter_username && - Twitter - } - {/* spf-link : abbreviation of (specific-link) for css */} + data && data.length !== 0 ? ( + loading ? ( + data.map((user) => ( +
+ +

+ {user.login}{" "} + + {user.contributions} + +

+
+ + GitHub + + {user.twitter_username && + Twitter + } + {/* spf-link : abbreviation of (specific-link) for css */} +
+ )) + ) : ( +
+ Running.gif +

+ Contributors coming❤️‍🔥... +

- )) + ) ) : ( -
- Running.gif -

- Contributors coming❤️‍🔥... -

-
+

+ GitHub API Limit Exceeded +

) } diff --git a/src/components/Doc/DocItem.jsx b/src/components/Doc/DocItem.jsx index 567788e..35fdcf1 100644 --- a/src/components/Doc/DocItem.jsx +++ b/src/components/Doc/DocItem.jsx @@ -10,7 +10,7 @@ const DocItem = ({ title, content }) => { } return ( -
+
{title}

{content}

diff --git a/src/components/Error/ErrorCard.jsx b/src/components/Error/ErrorCard.jsx index 07ef933..88590b7 100644 --- a/src/components/Error/ErrorCard.jsx +++ b/src/components/Error/ErrorCard.jsx @@ -32,7 +32,7 @@ function ErrorCard({ error }) { return (
+ }, + { + name: 'Contributors', + link: '/Contributors', + icon: + }, + { + name: '', + link: 'https://github.com/devvsakib/github-error-solve', + icon: + } + ] + return (
@@ -12,15 +35,30 @@ function Header({ notice }) { GES -
- +
+ + { + navLink.map((link, index) => { + return ( + link.name == "" ? ({link.icon} + ) : link.name == "Doc" ? ({link.icon}{link.name} + ) : link.name == "Contributors" ? ({link.icon}{link.name} + ) : link.name == "Home" ? ({link.icon}{link.name} + ) : null + ) + }) + + } + + + {/*
Under Construction
- + Doc Contributors - + */}
diff --git a/src/main.jsx b/src/main.jsx index aa8696e..d6723ef 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -7,6 +7,7 @@ import { } from "react-router-dom"; import Doc from "./components/Doc/Doc"; import Contributors from "./components/Contributors/contributors"; +import BGShape from "./components/BGShape"; /* Creating a router object that is used to render the correct component based on the url. */ const router = createBrowserRouter( [ @@ -20,7 +21,7 @@ const router = createBrowserRouter( }, { path: '/Contributors', - element: + element: } ] @@ -28,6 +29,7 @@ const router = createBrowserRouter( ReactDOM.createRoot(document.getElementById("root")).render( + ); \ No newline at end of file