Skip to content

Commit 56a6ff2

Browse files
author
Xminent
committed
feat: 🎨 add ProjectItem interface; add YTunes to projects
Added a ProjectItem interface to dement the structure of the project items to display. Also added an "internet" field to annotate URLs that are not associated with GitHub. Added the YTunes project for showcasing on the home page.
1 parent 91e9cb3 commit 56a6ff2

File tree

1 file changed

+27
-12
lines changed

1 file changed

+27
-12
lines changed

pages/home/index.tsx

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Layout from "@/components/Layout";
22
import { logger } from "@/lib/logger";
33
import { faGithub } from "@fortawesome/free-brands-svg-icons";
4+
import { faGlobe } from "@fortawesome/free-solid-svg-icons";
45
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
56
import { Image, Text } from "@nextui-org/react";
67
import Head from "next/head";
@@ -10,18 +11,20 @@ import Typed from "typed.js";
1011

1112
import styles from "./index.module.css";
1213

13-
const projects = [
14+
interface ProjectItem {
15+
href: string;
16+
label: string;
17+
description: string;
18+
github?: boolean;
19+
internet?: boolean;
20+
}
21+
22+
const projects: ProjectItem[] = [
1423
{
1524
href: "https://github.com/xminent/ekisocket",
1625
label: "Ekisocket",
17-
description: "A small network library written for use with my library Ekizu.",
18-
github: true,
19-
},
20-
{
21-
href: "https://github.com/xminent/ekizu",
22-
label: "Ekizu",
2326
description:
24-
"A Discord API wrapper written in C++ for use in creating Discord applications. It is very similar to Discord.js, as it was my library of choice for making my Discord bots.",
27+
"A small network library written for use with my library Ekizu, featuring simple clients for the various internet protocols such as TCP/UDP, HTTP(s), and WebSockets.",
2528
github: true,
2629
},
2730
{
@@ -32,18 +35,24 @@ const projects = [
3235
github: true,
3336
},
3437
{
35-
href: "https://github.com/xminent/king",
38+
href: "https://tinyurl.com/kingdiscordbot",
3639
label: "King",
3740
description:
38-
"A Discord bot written in Typescript using Discord.js. This bot is filled with a lot of features including a custom command system with Slash Commands supported, a music bot, moderation bot, and many more fun commands and features which are made possible due to the multiple APIs being used.",
39-
github: true,
41+
"A Discord bot written in Typescript using Discord.js. This bot is filled with a lot of features including a custom command system with Slash Commands supported, a music bot, moderation bot, and many more fun commands and features which are made possible due to the multiple APIs being used. To see all the features, add the bot to your server and use the help command",
42+
internet: true,
4043
},
4144
{
4245
href: "/",
4346
label: "This website 😲",
4447
description:
4548
'This website was made using Next.js, NextUI, TailwindCSS, and many more technologies. By incorporating multiple features such as Authentication, Page Routing, and a rate-limited API, I was able to create a website that seems professional. In addition, this application was designed to serve multiple subdomains, which can allow me to serve multiple websites on a single domain. You can find my blog using the subdomain "blog".',
46-
github: false,
49+
},
50+
{
51+
href: "https://github.com/xminent/ytunes",
52+
label: "YTunes",
53+
description:
54+
"An Alexa skill that allows you to play music from YouTube. Features a player that allows you to play, pause, skip, and queue songs. This skill is currently in development.",
55+
github: true,
4756
},
4857
];
4958

@@ -102,6 +111,12 @@ export default function Home() {
102111
<FontAwesomeIcon className="mt-4 md:mt-0" icon={faGithub} size={"2xl"} />
103112
</a>
104113
)}
114+
115+
{project.internet && (
116+
<a className="text-white" href={project.href} aria-label={`See more about ${project.label}`}>
117+
<FontAwesomeIcon className="mt-4 md:mt-0" icon={faGlobe} size={"2xl"} />
118+
</a>
119+
)}
105120
</div>
106121
<p className="mt-3 text-center md:text-left">{project.description}</p>
107122
</div>

0 commit comments

Comments
 (0)