diff --git a/next.config.mjs b/next.config.mjs index a85e912..f532462 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,7 +1,11 @@ /** @type {import('next').NextConfig} */ const nextConfig = { images: { - domains: ['cdn.nhcarrigan.com'] + remotePatterns: [ + { + hostname: "cdn.nhcarrigan.com" + } + ] } }; diff --git a/src/app/team/page.tsx b/src/app/team/page.tsx new file mode 100644 index 0000000..75585aa --- /dev/null +++ b/src/app/team/page.tsx @@ -0,0 +1,38 @@ +import { Certification } from "@/components/cert"; +import { Game } from "@/components/game"; +import { Member } from "@/components/member"; +import { Rule } from "@/components/rule"; +import { Certifications } from "@/config/Certifications"; +import { Games } from "@/config/Games"; +import { TeamMembers } from "@/config/TeamMembers"; +import { Charm } from "next/font/google"; + +const Team = (): JSX.Element => { + return ( + <> +
+

Our Team

+
+

+ Meet the people behind nhcarrigan's success! +

+ +
+ {TeamMembers.map((member) => ( + + ))} +
+
+
+ + ); +}; + +export default Team; diff --git a/src/components/member.tsx b/src/components/member.tsx new file mode 100644 index 0000000..e108678 --- /dev/null +++ b/src/components/member.tsx @@ -0,0 +1,46 @@ +import Image from "next/image"; +import { useState } from "react"; + +interface MemberProps { + name: string; + avatar: string; + role: string; + url: string; + joinDate: Date; +} + +export const Member = (props: MemberProps): JSX.Element => { + const { name, avatar, role, url, joinDate } = props; + + return ( +
+ {`${name}'s +
+
+ + {name} + +

+ {joinDate.toLocaleDateString("en-GB", { + month: "long", + year: "numeric", + })} +

+
+

+ {role} +

+
+
+ ); +}; diff --git a/src/config/NavItems.ts b/src/config/NavItems.ts index 4a3d931..77116aa 100644 --- a/src/config/NavItems.ts +++ b/src/config/NavItems.ts @@ -5,5 +5,6 @@ export const NavItems = [ { href: "/contact", text: "Contact" }, { href: "/certs", text: "Certifications" }, { href: "/reviews", text: "Reviews" }, - { href: "/games", text: "Games"} + { href: "/games", text: "Games"}, + { href: "/team", text: "Our Team" } ].sort((a, b) => a.text.localeCompare(b.text)); diff --git a/src/config/Socials.ts b/src/config/Socials.ts index 50b40e6..1078375 100644 --- a/src/config/Socials.ts +++ b/src/config/Socials.ts @@ -41,7 +41,7 @@ export const Donate: { } = { icon: faMoneyBill, link: "https://docs.nhcarrigan.com/#/donate", - label: "Support Our Work 💜", + label: "Donate 💜", alt: "Money Icon", color: "#003600", background: `linear-gradient( diff --git a/src/config/TeamMembers.ts b/src/config/TeamMembers.ts new file mode 100644 index 0000000..5a111c5 --- /dev/null +++ b/src/config/TeamMembers.ts @@ -0,0 +1,36 @@ +export const TeamMembers: { + name: string; + avatar: string; + role: string; + url: string; + joinDate: Date; + }[] = [ + { + name: "Naomi Carrigan", + avatar: "naomi.png", + role: "Founder / CEO", + url: "https://chat.nhcarrigan.com", + joinDate: new Date("April 1, 2020") + }, + { + name: "Denna", + avatar: "denna.png", + role: "Chief Financial Officer", + url: "https://denna.nhcarrigan.com", + joinDate: new Date("April 2, 2020") + }, + { + name: "Tim", + avatar: "tim.png", + role: "Chief Technical Officer", + url: "https://chat.nhcarrigan.com", + joinDate: new Date("April 2, 2020") + }, + { + name: "Anna", + avatar: "anna.png", + role: "Software Engineering Intern", + url: "https://chat.nhcarrigan.com", + joinDate: new Date("August 29, 2023") + } + ]