@@ -2,6 +2,7 @@ import Footer from "@/components/Footer";
22import Navbar from "@/components/Navbar" ;
33import axios from "axios" ;
44import { useEffect , useState } from "react" ;
5+ import { BsGithub } from "react-icons/bs" ;
56
67const Contributors = ( ) => {
78 const [ contributors , setContributors ] = useState ( [ ] ) ;
@@ -28,42 +29,27 @@ const Contributors = () => {
2829 < h1 className = "text-5xl font-bold text-white text-center" >
2930 Our Contributors
3031 </ h1 >
31- < div className = "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-8 mt-8 justify-center " >
32+ < div className = "contributor-container relative z-[1] flex justify-center items-center flex-wrap p-[1em] " >
3233 { contributors . map ( ( i ) => (
33- < div
34- className = "flex justify-center items-center flex-col border border-white p-8 h-110 w-110 rounded-[0.7cm] transition duration-300 shadow-md hover:scale-105 hover:cursor-pointer hover:shadow-xl hover:border-white hover:border-opacity-60 hover:shadow-lg"
35- key = { i . id }
36- >
37- < div className = "w-36 h-36 rounded-full overflow-hidden transition duration-300 border-2 border-white" >
38- < img
39- className = "w-full h-full object-cover transition duration-300 hover:scale-110 hover:cursor-pointer hover:border-pink-200"
40- src = { i . avatar_url }
41- alt = ""
42- />
43- </ div >
44- < div className = "mt-5" >
45- < h1 className = "text-white text-2xl sm:text-3xl text-center" >
46- { i . login }
47- </ h1 >
48- </ div >
49- < div className = "mt-2" >
50- < h3 className = "text-white text-xl sm:text-2xl text-center" >
51- Commits: { i . contributions }
52- </ h3 >
53- </ div >
34+ < div className = "contributor-card relative w-[300px] h-[400px] shadow-[0_15px_35px_rgba(0,0,0,0.9)] flex justify-center items-center flex-col backdrop-blur-2xl bg-clip-padding shadow-[0px_10px_10px_rgba(46,54,68,0.03)] m-[1em] rounded-[15px] border-[solid] border-transparent bg-gray-900 cursor-auto" key = { i . login } >
35+ < div className = "contributor-content relative flex justify-center items-center flex-col opacity-50 transition duration-[0.5s]" >
36+ < div class = "relative w-[150px] h-[150px] overflow-hidden rounded-[50%] border-[10px] border-solid border-[rgba(0,0,0,0.25)]" >
37+ < img className = "absolute w-full h-full object-cover left-0 top-0" src = { i . avatar_url } alt = { i . login } />
38+ </ div >
5439
55- < div className = "mt-4" >
56- < button className = "border-2 border-white w-40 md:w-56 py-2 rounded transition duration-300 hover:scale-105 hover:border-pink-100 relative overflow-hidden mx-auto my-2 sm:my-0 sm:mx-2" >
57- < a
58- className = "text-white text-2xl sm:text-3xl"
59- href = { i . html_url }
60- target = "_blank"
61- rel = "noopener noreferrer"
62- >
63- View
64- </ a >
65- </ button >
40+ < div class = "contributor-details" >
41+ < h3 className = "text-white uppercase tracking-[2px] font-medium text-lg text-center leading-[1.1em] mt-5 mb-2.5 mx-0" >
42+ { i . login } < br />
43+ < span className = "text-xs font-light" > Commits: { i . contributions } </ span >
44+ </ h3 >
45+ </ div >
6646 </ div >
47+
48+ < ul className = "contributor-social-icons absolute flex justify-center items-center bottom-[50px]" >
49+ < li className = "translate-y-10 opacity-0 transition duration-[0.5s] mx-2.5 my-0" >
50+ < a href = { i . html_url } target = "_blank" rel = "noopener noreferrer" className = "text-2xl text-white" > < BsGithub /> </ a >
51+ </ li >
52+ </ ul >
6753 </ div >
6854 ) ) }
6955 </ div >
0 commit comments