From 9d07bedc7091b3b7ac14175be58259c342695eb0 Mon Sep 17 00:00:00 2001 From: Aidan Date: Mon, 6 Jan 2025 09:51:04 -0500 Subject: [PATCH] add info about github to about page --- app/components/GitHubFeatured.tsx | 28 +++++++++++++++++++++++++ app/components/pages/About.tsx | 15 ++++++++++++++ app/data/featured.json | 34 +++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 app/components/GitHubFeatured.tsx create mode 100644 app/data/featured.json diff --git a/app/components/GitHubFeatured.tsx b/app/components/GitHubFeatured.tsx new file mode 100644 index 0000000..2869fc3 --- /dev/null +++ b/app/components/GitHubFeatured.tsx @@ -0,0 +1,28 @@ +import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' +import { faGithub } from '@fortawesome/free-brands-svg-icons' +import { faStar, faCodeBranch } from '@fortawesome/free-solid-svg-icons' +import featuredProjects from '../data/featured.json' + +export default function GitHubFeatured() { + return ( +
+ {featuredProjects.map((project) => ( +
+
+

+ {project.name} +

+

{project.description}

+
+
+ View Repo +
+ {project.stars} + {project.forks} +
+
+
+ ))} +
+ ) +} \ No newline at end of file diff --git a/app/components/pages/About.tsx b/app/components/pages/About.tsx index 48ec56b..f3bbe04 100644 --- a/app/components/pages/About.tsx +++ b/app/components/pages/About.tsx @@ -1,5 +1,6 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faUser } from '@fortawesome/free-solid-svg-icons' +import GitHubFeatured from '../GitHubFeatured' export default function About() { return ( @@ -22,6 +23,20 @@ export default function About() { I am almost always active on GitHub and make daily contributions to several of my repositories. I am a big fan of open source software and public domain software (which most of my repos are licensed under). In fact, the website you're currently on is free and open source. It's even under the public domain!

+
+

My GitHub Contributions

+
+
+ ihatenodejs's Stats + ihatenodejs's Streak +
+ ihatenodejs's Top Languages +
+
+
+

Featured Projects

+ +
) } \ No newline at end of file diff --git a/app/data/featured.json b/app/data/featured.json new file mode 100644 index 0000000..3b3c418 --- /dev/null +++ b/app/data/featured.json @@ -0,0 +1,34 @@ +[ + { + "id": 1, + "name": "aidxnCC", + "description": "aidxnCC is the third version of my personal website", + "url": "https://github.com/ihatenodejs/aidxnCC", + "stars": 1, + "forks": 1 + }, + { + "id": 2, + "name": "pontus-mail", + "description": "Landing page for p0ntus mail", + "url": "https://github.com/ihatenodejs/pontus-mail", + "stars": 7, + "forks": 0 + }, + { + "id": 3, + "name": "modules", + "description": "An open-source Magisk module and FOSS app store", + "url": "https://github.com/ihatenodejs/modules", + "stars": 2, + "forks": 0 + }, + { + "id": 4, + "name": "AndroidIntegrity/website", + "description": "AIA website source code", + "url": "https://github.com/AndroidIntegrity/website", + "stars": 5, + "forks": 1 + } +]