diff --git a/public/images/cykotech.png b/public/images/cykotech.png new file mode 100644 index 0000000..aaa1a3a Binary files /dev/null and b/public/images/cykotech.png differ diff --git a/src/routes/About/Hero.tsx b/src/routes/About/Hero.tsx new file mode 100644 index 0000000..614647e --- /dev/null +++ b/src/routes/About/Hero.tsx @@ -0,0 +1,10 @@ +export default function Hero() { + return ( +
+

About Us

+

+ Little snippet about the server & community. +

+
+ ); +} diff --git a/src/routes/About/Staff.tsx b/src/routes/About/Staff.tsx new file mode 100644 index 0000000..e22bf73 --- /dev/null +++ b/src/routes/About/Staff.tsx @@ -0,0 +1,22 @@ +import StaffCard from "./StaffCard.tsx"; +import staff from "./staff-info.json"; + +export interface Staff { + name: string; + preferredLanguage: string; + bio: string; + yearsExp: number; +} + +export default function Staff() { + return ( +
+

Staff

+
+ {staff.map((member: Staff, index) => ( + + ))} +
+
+ ); +} diff --git a/src/routes/About/StaffCard.tsx b/src/routes/About/StaffCard.tsx new file mode 100644 index 0000000..e492c48 --- /dev/null +++ b/src/routes/About/StaffCard.tsx @@ -0,0 +1,26 @@ +import { Staff } from "./Staff"; + +interface Props { + staff: Staff; +} + +export default function StaffCard({ staff }: Props) { + return ( +
+
+
+ {staff.name} +
+

{staff.name}

+

{`${staff.preferredLanguage} - ${staff.yearsExp.toString()} years`}

+
+
+

{staff.bio}

+
+
+ ); +} diff --git a/src/routes/About/index.tsx b/src/routes/About/index.tsx index 37297fa..d7743dd 100644 --- a/src/routes/About/index.tsx +++ b/src/routes/About/index.tsx @@ -1,7 +1,11 @@ +import Hero from "./Hero.tsx"; +import Staff from "./Staff.tsx"; + export default function About() { return ( -
-

About Code Cafe

+
+ +
); } diff --git a/src/routes/About/staff-info.json b/src/routes/About/staff-info.json new file mode 100644 index 0000000..92eac11 --- /dev/null +++ b/src/routes/About/staff-info.json @@ -0,0 +1,8 @@ +[ + { + "name": "Cykotech", + "preferredLanguage": "C#", + "bio": "After spending 10+ years as a culinary professional, I've decided to switch into tech as a Web Developer. I initially started on the Codecademy platform to form my coding foundation. I have since then adopted C# as my primary language.", + "yearsExp": 2 + } +]