From 8e0ae68e695fd3922fd0a05d2d4ed5ae85090d97 Mon Sep 17 00:00:00 2001 From: Beau Findlay Date: Tue, 30 Apr 2024 20:50:48 +0100 Subject: [PATCH] Add work page --- src/Client/src/components/NavBar.tsx | 7 ++ src/Client/src/components/WorkTimeline.tsx | 76 ++++++++++++++++++++++ src/Client/src/pages/HomePage.tsx | 16 +---- src/Client/src/pages/WorkPage.tsx | 25 +++++++ src/Client/src/routes.tsx | 2 + 5 files changed, 112 insertions(+), 14 deletions(-) create mode 100644 src/Client/src/components/WorkTimeline.tsx create mode 100644 src/Client/src/pages/WorkPage.tsx diff --git a/src/Client/src/components/NavBar.tsx b/src/Client/src/components/NavBar.tsx index 7f566f2..b31b964 100644 --- a/src/Client/src/components/NavBar.tsx +++ b/src/Client/src/components/NavBar.tsx @@ -32,6 +32,7 @@ export default function NavBar() { + Work This App @@ -60,6 +61,12 @@ export default function NavBar() {
+ + Work + + {workTimelineItems.map((item, index) => ( +
  • +
    + +

    + {item.title} @{" "} + {item.companyName} +

    + {item.content.map((content, index) => ( + {content} + ))} +
  • + ))} + + ); +} diff --git a/src/Client/src/pages/HomePage.tsx b/src/Client/src/pages/HomePage.tsx index c4b7a2e..30fb2bc 100644 --- a/src/Client/src/pages/HomePage.tsx +++ b/src/Client/src/pages/HomePage.tsx @@ -1,6 +1,4 @@ -import { FaRegPaperPlane } from "react-icons/fa6"; import AnchorLink from "../components/AnchorLink"; -import Subtitle from "../components/Subtitle"; import TechIcons from "../components/TechIcons"; import Text from "../components/Text"; import Title from "../components/Title"; @@ -8,7 +6,7 @@ import Title from "../components/Title"; export default function HomePage() { return ( <> - Hi, I'm Beau. + Hi, I'm Beau. I'm a UK-based software engineer and I love building cool stuff. @@ -22,17 +20,7 @@ export default function HomePage() { un:hurd music. - - -
    - If you think I can help with your project... - - Get in touch - -
    + ); } diff --git a/src/Client/src/pages/WorkPage.tsx b/src/Client/src/pages/WorkPage.tsx new file mode 100644 index 0000000..59cd6d6 --- /dev/null +++ b/src/Client/src/pages/WorkPage.tsx @@ -0,0 +1,25 @@ +import { FaRegPaperPlane } from "react-icons/fa6"; +import Text from "../components/Text"; +import Title from "../components/Title"; +import WorkTimeline from "../components/WorkTimeline"; + +export default function WorkPage() { + return ( + <> + Work +

    + Freelance Software Engineer since 2018 +

    + +
    + If you think I can help with your project... + + Get in touch + +
    + + ); +} diff --git a/src/Client/src/routes.tsx b/src/Client/src/routes.tsx index 55f8999..5977394 100644 --- a/src/Client/src/routes.tsx +++ b/src/Client/src/routes.tsx @@ -3,6 +3,7 @@ import AboutPage from "./pages/AboutPage"; import ErrorPage from "./pages/ErrorPage"; import HomePage from "./pages/HomePage"; import Layout from "./pages/Layout"; +import WorkPage from "./pages/WorkPage"; const router = createBrowserRouter([ { @@ -11,6 +12,7 @@ const router = createBrowserRouter([ errorElement: , children: [ { index: true, element: }, + { path: "work", element: }, { path: "about", element: }, ], },