diff --git a/src/components/Projects/index.tsx b/src/components/Projects/index.tsx
index 4bfa1695..e47e57d9 100644
--- a/src/components/Projects/index.tsx
+++ b/src/components/Projects/index.tsx
@@ -1,101 +1,169 @@
-import React, { useEffect, useState } from "react"
-import "./style.css"
-import { LuGitFork, LuGlobe } from "react-icons/lu"
+import React, { useEffect, useState } from "react";
+import "./style.css";
/**
- *
- * @param param0
- * @returns
+ *
+ * @param param0
+ * @returns
*/
-export function Card({ title, description, image,alt, Badges, svn_link, is_fork} : {
- title: string ,
- description: string,
- image?: string,
- alt?: string,
- Badges?: any,
- svn_link: string,
- is_fork: Boolean
+export function Card({
+ title,
+ description,
+ image,
+ alt,
+ Badges,
+ svn_link,
+ is_fork,
+}: {
+ title: string;
+ description: string;
+ image?: string;
+ alt?: string;
+ Badges?: any;
+ svn_link: string;
+ is_fork: Boolean;
}) {
- return
-{image ?
-

: null}
-
-
{is_fork ? : null}
-{title}
- {/*
NEW
*/}
-
-
{description}
-
- {/*
Fashion
+ return (
+
+ {image ? (
+
+
+
+ ) : null}
+
+
+ {title}
+ {/*
NEW
*/}
+
+
{description}
+
+ {/*
Fashion
Products
*/}
- {Badges ? Badges : ""}
+ {Badges ? Badges : ""}
+
-
+ );
}
// oh boy i cannot WAIT for myself to add projects in via git
export default function Projects() {
- // most projects should be loaded via github
- // otherwise they will all be concacted with the github.json file
- const [githubData, setGithubData] = useState ([])
-const [translateY, setTranslateY] = useState(0)
+ // most projects should be loaded via github
+ // otherwise they will all be concacted with the github.json file
+ const [githubData, setGithubData] = useState([]);
+ const [translateY, setTranslateY] = useState(0);
- const fetchData = () => {
- return Promise.all([fetch(`https://api.github.com/users/NeonGamerBot-QK/repos?per_page=100`)
- .then((response) => response.json()),fetch(`https://api.github.com/users/NeonGamerBot-QK/repos?per_page=100?page=2`)
- .then((response) => response.json())])
+ const fetchData = () => {
+ return Promise.all([
+ fetch(
+ `https://api.github.com/users/NeonGamerBot-QK/repos?per_page=100`,
+ ).then((response) => response.json()),
+ fetch(
+ `https://api.github.com/users/NeonGamerBot-QK/repos?per_page=100?page=2`,
+ ).then((response) => response.json()),
+ ]).then((data) => {
+ if (process.env.NODE_ENV !== "production") console.log(data[0], data[1]);
+ const idsThatAreFound: any = {};
+ const items = [...data[0], ...data[1]]
+ .filter((e) => e.topics.includes("github-include-on-site"))
+ .filter(function (item, pos, self) {
+ if (idsThatAreFound[item.id]) return false;
+ idsThatAreFound[item.id] = true;
+ return true;
+ });
- .then((data) =>
- {
- if(process.env.NODE_ENV !== "production") console.log(data[0], data[1])
- const idsThatAreFound:any = {}
- const items = [...data[0], ...data[1]]
- .filter(e => e.topics.includes('github-include-on-site'))
- .filter(function(item, pos, self) {
- if(idsThatAreFound[item.id]) return false;
- idsThatAreFound[item.id] = true
- return true;
- })
-
- console.log()
- if(process.env.NODE_ENV !== "production") console.log(items)
- //@ts-ignore
- setGithubData(items)
- })
- }
- useEffect (() => {
- fetchData()
- }, [])
- return <>
-
-
- {/*

*/}
-
-
Projects
- {/*
Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi.
+ console.log();
+ if (process.env.NODE_ENV !== "production") console.log(items);
+ //@ts-ignore
+ setGithubData(items);
+ });
+ };
+ useEffect(() => {
+ fetchData();
+ }, []);
+ return (
+ <>
+
+
+ {/*

*/}
+
+
+ Projects
+
+ {/*
Provident cupiditate voluptatem et in. Quaerat fugiat ut assumenda excepturi exercitationem quasi. In deleniti eaque aut repudiandae et a id nisi.
*/}
-
-{githubData.length > 0 ? githubData.map((d: any) => {
-return
-
-
-
-{d.homepage ?
-
-: null}
-
-
-{d.topics.filter((e:string) => !e.includes('github-include-on-site')).map((topic:string,i:number) => {
- return
{topic}
-})}
-
->}/>
-
-}) :
-
-
}
-
-
-
-
->
-}
\ No newline at end of file
+
+ {githubData.length > 0 ? (
+ githubData.map((d: any) => {
+ return (
+
+
+
+ {d.homepage ? (
+
+ ) : null}
+
+
+ {d.topics
+ .filter(
+ (e: string) =>
+ !e.includes("github-include-on-site"),
+ )
+ .map((topic: string, i: number) => {
+ return (
+
+ {topic}
+
+ );
+ })}
+
+ >
+ }
+ />
+ );
+ })
+ ) : (
+
+
+
+ )}
+
+
+
+
+ >
+ );
+}