Skip to content

Commit c107b74

Browse files
committed
contributors card design imrpoved and layout added
1 parent d5bd614 commit c107b74

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

src/components/Contributors/contributors.jsx

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
import React from 'react';
22
import Data from '../../data/Contributors.json';
3-
import Header from '../../components/Header/Header';
3+
import Layout from '../../components/Layout/Layout';
44
import './css/index.css';
55

66
function Contribute() {
77
return (
8-
<div>
9-
<Header />
8+
<Layout>
9+
<section className='flex flex-wrap justify-center'>
1010
{
1111
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 */}
12+
<div
13+
id="container"
14+
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-gray 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>
2122
</div>
22-
</div>
2323
)
2424
}
25-
</div>
25+
</section>
26+
</Layout>
2627
)
2728
}
2829

0 commit comments

Comments
 (0)