Skip to content

Commit 863a7b7

Browse files
authored
Merge pull request #84 from MohamedAlDeep/main
Add Contribution Page & Contribution Section in (README)
2 parents 44a912b + 45245a0 commit 863a7b7

9 files changed

Lines changed: 136 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,21 @@ Facing problem starting the server or any other problem? Please let us know by r
9999
### **<p align="center">Please STAR the repository⭐</p>**
100100

101101
### Discord
102+
103+
Join Us ![Sure](https://discord.gg/xwRbDwnbMr)
104+
### Contributors
105+
Thanks to all contributors ❤️
106+
107+
Make Sure to add your info in ./src/data/Contibutors.json
108+
109+
<a href="https://github.com/devvsakib/github-error-solve/graphs/contributors">
110+
<img src=" https://contrib.rocks/image?repo=devvsakib/github-error-solve">
111+
</a>
112+
113+
**Live Link <a href="https://github-error-solve.vercel.app" target="_blank">GES</a>**
114+
115+
102116
Join Us <a href="https://discord.gg/xwRbDwnbMr"><img src="https://cdn.worldvectorlogo.com/logos/discord-6.svg" title="Discord" alt="Discord Community" width="20"/></a>
103117

104118
**Live Link <a href="https://github-error-solve.vercel.app" target="_blank">GES</a>**
119+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import React from 'react';
2+
import Data from '../../data/Contributors.json';
3+
import Header from '../../components/Header/Header';
4+
import './css/index.css';
5+
6+
function Contribute() {
7+
return (
8+
<div>
9+
<Header />
10+
{
11+
Data.map(data =>
12+
<div
13+
id="container"
14+
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 flex mt-8 items-center gap-2 px-3 py-2 border border-gray rounded-lg hover:border-primary hover:text-primary">
15+
<h1>{data.name}</h1>
16+
<img className='pfp' src={data.image} />
17+
<div className="links">
18+
<a className='spf-link' href={data.github}>Github</a>
19+
<a className='spf-link' href={data.twiter}>Twiter</a>
20+
{/* spf-link : abbreviation of (specific-link) for css */}
21+
</div>
22+
</div>
23+
)
24+
}
25+
</div>
26+
)
27+
}
28+
29+
export default Contribute
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#container {
2+
display: inline-block;
3+
width: 17rem;
4+
height: 18rem;
5+
margin: 2rem;
6+
}
7+
8+
.links {
9+
position: relative;
10+
display: inline;
11+
top: 20%;
12+
}
13+
14+
.spf-link {
15+
padding: 1.4rem;
16+
}
17+
18+
.spf-link:hover {
19+
text-decoration: underline;
20+
}
21+
22+
.pfp {
23+
position: relative;
24+
top: 5%;
25+
left: 11%;
26+
width: 10rem;
27+
border-radius: 50%;
28+
}/*# sourceMappingURL=index.css.map */

src/components/Contributors/css/index.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#container{
2+
3+
display:inline-block;
4+
width: 17rem;
5+
height: 18rem;
6+
margin: 2rem;
7+
8+
}
9+
.links{
10+
position: relative;
11+
display: inline;
12+
top:20%;
13+
}
14+
.spf-link{
15+
padding: 1.4rem;
16+
}
17+
.spf-link:hover{
18+
text-decoration:underline;
19+
}
20+
.pfp{
21+
position: relative;
22+
top: 5%;
23+
left: 11%;
24+
width:10rem;
25+
border-radius: 50%;
26+
}

src/components/Header/Header.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ function Header({ notice }) {
1717
<h6>Under Construction</h6>
1818
<MdInsertDriveFile className="text-lg" />
1919
<Link to={'/doc'}>Doc</Link>
20+
21+
<Link to={'/Contributors'}>Contributors</Link>
22+
2023
<a target='_blank' href="https://github.com/devvsakib/github-error-solve"><AiFillGithub size='1.25rem'/></a>
2124

25+
2226
</div>
2327
</div>
2428
</header>

src/data/Contributors.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
[
3+
4+
{ "comment": "// To add image go to your profile right click on the image and copy image address",
5+
6+
"name": "devvsakib",
7+
"github": "https://github.com/devvsakib",
8+
"twiter": "",
9+
"image": "https://avatars.githubusercontent.com/u/88339569?s=120&v=4"
10+
},
11+
{
12+
"name": "MohamedAlDeep",
13+
"github": "https://github.com/MohamedAlDeep",
14+
"twiter":"",
15+
"image": "https://avatars.githubusercontent.com/u/95958815?s=400&v=4"
16+
}
17+
]
18+

src/main.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
RouterProvider,
77
} from "react-router-dom";
88
import Doc from "./components/Doc/Doc";
9-
9+
import Contributors from "./components/Contributors/contributors";
1010
/* Creating a router object that is used to render the correct component based on the url. */
1111
const router = createBrowserRouter(
1212
[
@@ -17,7 +17,12 @@ const router = createBrowserRouter(
1717
{
1818
path: '/doc',
1919
element: <Doc />
20+
},
21+
{
22+
path: '/Contributors',
23+
element: <Contributors/>
2024
}
25+
2126
]
2227
);
2328

src/pages/Contributors.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react'
2+
import Contributors from '../components/Contributors/contributors.jsx'
3+
function Contribute() {
4+
return (
5+
<Contributors />
6+
)
7+
}
8+
9+
export default Contribute

0 commit comments

Comments
 (0)