Skip to content

Commit

Permalink
v1.0.1 released
Browse files Browse the repository at this point in the history
  • Loading branch information
devvsakib committed Feb 26, 2023
1 parent 257cd21 commit 88db808
Show file tree
Hide file tree
Showing 8 changed files with 111 additions and 44 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GitHub Error Solve - Opensource Projects</title>
<link rel="shortcut icon" href="public/assets/logo.png" type="image/x-icon">
<link rel="shortcut icon" href="/assets/logo.png" type="image/x-icon">
<link rel="stylesheet" href="./dist/output.css" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
Expand Down
2 changes: 1 addition & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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('')
Expand All @@ -21,7 +22,6 @@ function App() {
type={type}
/>
</Layout>

</>
);
}
Expand Down
22 changes: 22 additions & 0 deletions src/components/BGShape.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react'

const BGShape = () => {
return (
<div className='-z-[99999] fixed top-0 left-0 w-full h-full'>
{/* <div className='-z-[999] absolute top-0 left-0 w-full h-full bg-[#44ff15]/20 backdrop-blur-[5px] rounded-lg'></div>*/}
<div className='-z-[99999999999999] absolute -top-[70%] md:-top-[90%] -left-[50%] md:left-0 w-[800px] md:w-full h-[500px] rounded-full bg-[#16f8d2f3]/30 blur-[100px]'></div>

<div className=' absolute right-[10%] md:right-[40%] top-[10%] rotate-45 w-[200px] h-[500px] bg-[#1aabff]/20 blur-[150px] rounded-lg'></div>
<div className=' absolute right-[20%] md:right-[40%] top-[30%] md:top-[10%] rotate-45 w-[200px] h-[500px] bg-[#ff22ed]/10 blur-[150px] rounded-lg'></div>

<div className='absolute right-[70%] top-[30%] md:top-[10%] -rotate-90 w-[300px] h-[500px] bg-[#1aabff]/20 blur-[90px] rounded-lg'></div>

<div className='absolute right-[40%] top-[30%] md:top-[10%] rotate-45 w-[200px] h-[500px] bg-[#ff22ed]/20 blur-[100px] rounded-lg'></div>

<div className='absolute right-[0%] top-[70%] md:top-[20%] rotate-45 transform-gpu w-[200px] h-[500px] bg-[#44ff15]/10 blur-[90px] rounded-lg'></div>
<div className='absolute right-[0%] top-[70%] md:top-[20%] rotate-45 transform-gpu w-[400px] h-[500px] bg-[#44ff15]/5 blur-[90px] rounded-lg'></div>
</div>
)
}

export default BGShape
71 changes: 38 additions & 33 deletions src/components/Contributors/contributors.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";


Expand Down Expand Up @@ -56,41 +55,47 @@ function Contribute() {
{
// User filtered by CONTRIBUTIONS number, contribute more to jump in first place

loading ? (
data.map((user) => (
<div key={user.login}
id="container"
className={`py-4 mb-4 col-span-12 md:col-span-6 xl:col-span-4 md:px-6 border-l-4 rounded-lg bg-dark-secondary flex flex-col mt-8 items-center mx-auto gap-2 px-3 border-[#${changeColor()}] hover:border-primary hover:text-primary`}
>
<img className="pfp mb-8 skeleton" src={user.avatar_url} />
<h1 className="text-center -mb-10 font-semibold uppercase">
{user.login}{" "}
<small className="text-violet-400 container:hover:text-white">
{user.contributions}
</small>
</h1>
<div className="links text-sm">
<a className="spf-link" href={user.html_url}>
GitHub
</a>
{user.twitter_username && <a className="spf-link" href={`https://twitter.com/${user.twitter_username}`}>
Twitter
</a>}
{/* spf-link : abbreviation of (specific-link) for css */}
data && data.length !== 0 ? (
loading ? (
data.map((user) => (
<div key={user.login}
id="container"
className={`py-4 mb-4 col-span-12 md:col-span-6 xl:col-span-4 md:px-6 border-l-4 rounded-lg bg-dark-secondary flex flex-col mt-8 items-center mx-auto gap-2 px-3 border-[#${changeColor()}] hover:border-primary hover:text-primary`}
>
<img className="pfp mb-8 skeleton" src={user.avatar_url} />
<h1 className="text-center -mb-10 font-semibold uppercase">
{user.login}{" "}
<small className="text-violet-400 container:hover:text-white">
{user.contributions}
</small>
</h1>
<div className="links text-sm">
<a className="spf-link" href={user.html_url}>
GitHub
</a>
{user.twitter_username && <a className="spf-link" href={`https://twitter.com/${user.twitter_username}`}>
Twitter
</a>}
{/* spf-link : abbreviation of (specific-link) for css */}
</div>
</div>
))
) : (
<div className="translate-y-[4rem]">
<img
src="/assets/run.gif"
className="w-1/2 mx-auto"
alt="Running.gif"
/>
<h1 className="text-center md:text-2xl text-white">
Contributors coming❤️‍🔥...
</h1>
</div>
))
)
) : (
<div className="translate-y-[4rem]">
<img
src="/assets/run.gif"
className="w-1/2 mx-auto"
alt="Running.gif"
/>
<h1 className="text-center md:text-2xl text-white">
Contributors coming❤️‍🔥...
</h1>
</div>
<h1 className="text-center md:text-2xl text-white">
GitHub API Limit Exceeded
</h1>
)
}
</section>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Doc/DocItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const DocItem = ({ title, content }) => {
}

return (
<div className={`p-4 rounded shadow-lg shadow-[#118d7c62] bg-[#${changeColor()}] backdrop-blur-sm`}>
<div className={`p-4 rounded shadow-lg shadow-[#118d7c22] bg-white/5 backdrop-blur-[10px]`}>
<h6 className='font-semibold text-white text-opacity-80 mb-2'>{title}</h6>
<p className='text-sm text-white leading-tight'>{content}</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Error/ErrorCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function ErrorCard({ error }) {
return (
<div
id="main-div"
className={`py-4 mb-4 col-span-12 md:col-span-6 xl:col-span-4 px-2 md:px-6 border-l-4 rounded-lg items-start bg-dark-secondary flex flex-col hover:scale-105 duration-300 ${item === "add"
className={`py-4 mb-4 col-span-12 md:col-span-6 xl:col-span-4 px-2 md:px-6 border-l-4 rounded-lg items-start bg-white/5 backdrop-blur-[10px] flex flex-col hover:scale-105 duration-300 ${item === "add"
? "border-[#4024e0]"
: item === "commit"
? "border-[#1a5ba5]"
Expand Down
50 changes: 44 additions & 6 deletions src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,31 @@
import { MdConstruction, MdInsertDriveFile } from "react-icons/md";
import {AiFillGithub} from "react-icons/ai";
import { MdPeople, MdInsertDriveFile } from "react-icons/md";
import { AiFillGithub } from "react-icons/ai";
import { Link } from "react-router-dom";

function Header({ notice }) {
const navLink = [
{
name: 'Home',
link: '/',
icon: ''
},
{
name: 'Doc',
link: '/doc',
icon: <MdInsertDriveFile size='1rem'/>
},
{
name: 'Contributors',
link: '/Contributors',
icon: <MdPeople size='1.25rem'/>
},
{
name: '',
link: 'https://github.com/devvsakib/github-error-solve',
icon: <AiFillGithub size='1.25rem' />
}
]

return (
<header className="p-4 bg-dark-secondary sticky top-0 z-50">
<div className="w-full md:w-5/6 mx-auto flex flex-col md:flex-row justify-between items-center">
Expand All @@ -12,15 +35,30 @@ function Header({ notice }) {
<Link to={'/'}>
<img src="/assets/logo.png" className="w-36" alt="GES" />
</Link>
<div className="flex mt-2 md:mt-0 items-center gap-3 text-sm">
<MdConstruction className="text-lg" />
<div className="flex mt-2 md:mt-0 items-center gap-7 text-sm">

{
navLink.map((link, index) => {
return (
link.name == "" ? (<a target='_blank' href={link.link}>{link.icon}</a>
) : link.name == "Doc" ? (<Link className="flex items-center gap-1" to={link.link}>{link.icon}{link.name}</Link>
) : link.name == "Contributors" ? (<Link className="flex items-center gap-1" to={link.link}>{link.icon}{link.name}</Link>
) : link.name == "Home" ? (<Link className="flex items-center gap-1" to={link.link}>{link.icon}{link.name}</Link>
) : null
)
})

}


{/* <MdConstruction className="text-lg" />
<h6>Under Construction</h6>
<MdInsertDriveFile className="text-lg" />
<Link to={'/doc'}>Doc</Link>
<Link to={'/Contributors'}>Contributors</Link>
<a target='_blank' href="https://github.com/devvsakib/github-error-solve"><AiFillGithub size='1.25rem'/></a>
<a target='_blank' href="https://github.com/devvsakib/github-error-solve"><AiFillGithub size='1.25rem'/></a> */}


</div>
Expand Down
4 changes: 3 additions & 1 deletion src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand All @@ -20,14 +21,15 @@ const router = createBrowserRouter(
},
{
path: '/Contributors',
element: <Contributors/>
element: <Contributors />
}

]
);

ReactDOM.createRoot(document.getElementById("root")).render(
<React.StrictMode>
<BGShape />
<RouterProvider router={router} />
</React.StrictMode>
);

0 comments on commit 88db808

Please sign in to comment.