Skip to content

Commit

Permalink
Add changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nawed2611 committed Jul 9, 2023
1 parent b7948e9 commit ed33078
Showing 1 changed file with 60 additions and 53 deletions.
113 changes: 60 additions & 53 deletions pages/team.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import Head from "next/head";

const Team = () => {
const [users, setUsers] = useState([]);
const [year, setYear] = useState(2022);

const getUsers = async (year) => {
setYear(year == 2023 ? 2023 : year == 2022 ? 2022 : year == 2021 ? 2021 : year == 2020 ? 2020 : 2019);
let url = year == 2023 ? "https://opensheet.elk.sh/1D-7233yRtSKEGbCCNkw2YuXRW8qREviMxtsWZv1-c9E/1" : ("https://opensheet.elk.sh/1lbMJu8ZMBXcx66n0pkZI1eb8-fi8kBDQdwPoiIPPSRY/team" + year);
const response = await fetch(
url
Expand Down Expand Up @@ -125,60 +128,64 @@ const Team = () => {
{curElem["Designation"]}
</p>
<div className="flex">
<div className="flex gap-4">
{curElem["GitHub"] == "" ? (
<></>
) : (
<a
target="_blank"
rel="noreferrer"
href={curElem["GitHub"]}
>
<svg
className="w-6 h-6 text-black fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
>
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z" />
</svg>
</a>
)}
{curElem.hasOwnProperty("Twitter") === false ||
curElem["Twitter"].trim() == "" ? (
<></>
) : (
<a
target="_blank"
rel="noreferrer"
href={curElem["Twitter"]}
>
<svg
className="w-6 h-6 text-black fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z" />
</svg>
</a>
)}
{curElem["LinkedIn"] == "" ? (
<></>
) : (
<a
target="_blank"
rel="noreferrer"
href={curElem["LinkedIn"]}
>
<svg
className="w-6 h-6 text-black fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
>
<path d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path>
</svg>
</a>
{
year != 2023 && (

<div className="flex gap-4">
{curElem["GitHub"] == "" ? (
<></>
) : (
<a
target="_blank"
rel="noreferrer"
href={curElem["GitHub"]}
>
<svg
className="w-6 h-6 text-black fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
>
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z" />
</svg>
</a>
)}
{curElem.hasOwnProperty("Twitter") === false ||
curElem["Twitter"].trim() == "" ? (
<></>
) : (
<a
target="_blank"
rel="noreferrer"
href={curElem["Twitter"]}
>
<svg
className="w-6 h-6 text-black fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
>
<path d="M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z" />
</svg>
</a>
)}
{curElem["LinkedIn"] == "" ? (
<></>
) : (
<a
target="_blank"
rel="noreferrer"
href={curElem["LinkedIn"]}
>
<svg
className="w-6 h-6 text-black fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 448 512"
>
<path d="M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"></path>
</svg>
</a>
)}
</div>
)}
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit ed33078

Please sign in to comment.