|
1 | 1 | import Footer from "@/components/Footer"; |
2 | 2 | import Navbar from "@/components/Navbar"; |
3 | 3 | import axios from "axios"; |
| 4 | +import Image from "next/image"; |
4 | 5 | import { useEffect, useState } from "react"; |
5 | 6 | import { BsGithub } from "react-icons/bs"; |
6 | 7 |
|
@@ -31,13 +32,13 @@ const Contributors = () => { |
31 | 32 | </h1> |
32 | 33 | <div className="contributor-container relative z-[1] flex justify-center items-center flex-wrap p-[1em]"> |
33 | 34 | {contributors.map((i) => ( |
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-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 m-[1em] rounded-[15px] bg-gray-900 cursor-auto" key={i.login}> |
35 | 36 | <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} /> |
| 37 | + <div className="relative w-[150px] h-[150px] overflow-hidden rounded-[50%] border-[10px] border-solid border-[rgba(0,0,0,0.25)]"> |
| 38 | + <Image className="absolute w-full h-full object-cover left-0 top-0" src={i.avatar_url} alt={i.login} width={400} height={400} /> |
38 | 39 | </div> |
39 | 40 |
|
40 | | - <div class="contributor-details"> |
| 41 | + <div className="contributor-details"> |
41 | 42 | <h3 className="text-white uppercase tracking-[2px] font-medium text-lg text-center leading-[1.1em] mt-5 mb-2.5 mx-0"> |
42 | 43 | {i.login}<br /> |
43 | 44 | <span className="text-xs font-light">Commits: {i.contributions}</span> |
|
0 commit comments