11import Head from "next/head" ;
22
33export const getStaticProps = async ( ) => {
4- const res = await fetch (
5- "https://api.github.com/repos/WebXDAO/webXDAO.github.io/contributors"
6- ) ;
4+ const res = await fetch ( "https://api.github.com/repos/WebXDAO/webXDAO.github.io/contributors" ) ;
75 const data = await res . json ( ) ;
86
97 return {
@@ -19,43 +17,36 @@ const contributors = ({ data }) => {
1917 < Head >
2018 < title > Contributors | WebXDAO</ title >
2119 </ Head >
22- < section >
23- < div className = "absolute top-40 -left-16 w-96 h-96 bg-gradient-to-t from-[#1BFFFF] to-[#2E3192] rounded-full" > </ div >
24- < div className = "absolute top-96 -right-80 w-[50rem] h-[50rem] bg-gradient-to-t from-[#FBB03B] to-[#D4145A] rounded-full" > </ div >
25- < div className = "absolute top-[70rem] -left-72 w-[40rem] h-[40rem] bg-gradient-to-t from-[#ED1E79] to-[#662D8C] rounded-full" > </ div >
26- < div className = "absolute top-[100rem] -right-16 w-96 h-96 bg-gradient-to-t from-[#FCEE21] to-[#009245] rounded-full" > </ div >
20+ < section className = "py-8" >
21+ < div className = "container max-w-5xl mx-auto" >
22+ < h1 className = "w-full my-2 text-4xl font-bold leading-tight text-center text-white" >
23+ Contributors
24+ </ h1 >
25+ </ div >
2726 < div className = "relative z-1 my-[40px] mx-0 flex justify-center items-center flex-wrap" >
2827 { data . map ( ( curElem ) => {
2928 return (
3029 < div
31- className = "group relative w-48 h-64 m-5 flex justify-center items-center bg-white bg-opacity-5 m-10 shadow-2xl rounded-2xl backdrop-filter backdrop-blur-md"
30+ className = "relative flex items-center justify-center w-48 h-64 m-5 m-10 bg-white shadow-2xl group bg-opacity-5 rounded-2xl backdrop-filter backdrop-blur-md"
3231 key = { curElem . login }
3332 >
34- < div className = "relative flex justify-center items-center flex-col opacity-70 hover:opacity-100" >
35- < div className = "relative w-40 h-40 overflow-hidden rounded-full truncate border-8 border-solid border-black/25 group-hover:-translate-y-6 duration-500" >
36- < a
37- href = { curElem . html_url }
38- target = "_blank"
39- rel = "noopener noreferrer"
40- >
33+ < div className = "relative flex flex-col items-center justify-center opacity-70 hover:opacity-100" >
34+ < div className = "relative w-40 h-40 overflow-hidden truncate duration-500 border-8 border-solid rounded-full border-black/25 group-hover:-translate-y-6" >
35+ < a href = { curElem . html_url } target = "_blank" rel = "noopener noreferrer" >
4136 < img
4237 src = { curElem . avatar_url }
4338 alt = "Avatar"
44- className = "relative top-0 left-0 w-full h-full object-cover "
39+ className = "relative top-0 left-0 object-cover w-full h-full"
4540 />
4641 </ a >
4742 </ div >
48- < div className = "relative justify-center items-center relative justify-center items-center flex-wrap text-center mx-0 my-0" >
49- < a
50- href = { curElem . html_url }
51- target = "_blank"
52- rel = "noopener noreferrer"
53- >
43+ < div className = "relative flex-wrap items-center justify-center mx-0 my-0 text-center" >
44+ < a href = { curElem . html_url } target = "_blank" rel = "noopener noreferrer" >
5445 < h3 className = "group-hover:-translate-y-6 duration-500 text-white uppercase font-medium text-sm text-center tracking-wider mt-5 mr-2.5 ml-2.5 mb-2.5 leading-4" >
5546 { curElem . login }
5647 </ h3 >
5748 </ a >
58- < h5 className = "group-hover:-translate-y-6 duration-500 rounded-md bg-green-500 pl-4 pr-4 text-base font-normal mb-0 mt-0 m-auto w-fit h-fit" >
49+ < h5 className = "pl-4 pr-4 m-auto mt-0 mb-0 text-base font-normal duration-500 bg-green-500 rounded-md group-hover:-translate-y-6 w-fit h-fit" >
5950 { curElem . contributions }
6051 < svg
6152 className = "overflow-visible inline-block w-[1.25em] lowercase h-[1em] align-[-0.125em]"
0 commit comments