From 89aa6411b09f868cd6c344f38c1d14d7ae455bb3 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 11 Jun 2026 12:44:44 +0000 Subject: [PATCH] refactor: centralize public site navigation --- frontend/src/components/PublicSiteNav.tsx | 49 +++++++++++++++++++++++ frontend/src/pages/about.tsx | 37 +---------------- frontend/src/pages/how-it-works.tsx | 47 +--------------------- frontend/src/pages/index.tsx | 42 +------------------ frontend/src/pages/login.tsx | 43 +------------------- frontend/src/pages/services.tsx | 37 +---------------- 6 files changed, 59 insertions(+), 196 deletions(-) create mode 100644 frontend/src/components/PublicSiteNav.tsx diff --git a/frontend/src/components/PublicSiteNav.tsx b/frontend/src/components/PublicSiteNav.tsx new file mode 100644 index 0000000..97108f3 --- /dev/null +++ b/frontend/src/components/PublicSiteNav.tsx @@ -0,0 +1,49 @@ +import Link from 'next/link'; + +const links = [ + { href: '/how-it-works/', label: 'How it works' }, + { href: '/about/', label: 'About' }, + { href: '/services/', label: 'Packages' }, + { href: '/client-portal/', label: 'Client login' }, +]; + +export default function PublicSiteNav() { + return ( +
+
+ + + C + + Coaching SaaS Workspace + + + + + + Start assessment + +
+ + +
+ ); +} diff --git a/frontend/src/pages/about.tsx b/frontend/src/pages/about.tsx index ba7fa5e..3e38ae6 100644 --- a/frontend/src/pages/about.tsx +++ b/frontend/src/pages/about.tsx @@ -2,6 +2,7 @@ import React from 'react'; import type { ReactElement } from 'react'; import Head from 'next/head'; import Link from 'next/link'; +import PublicSiteNav from '../components/PublicSiteNav'; import LayoutGuest from '../layouts/Guest'; import { getPageTitle } from '../config'; import { publicCoachSite } from '../coachingSite'; @@ -24,40 +25,6 @@ const ui = { heading: 'font-serif font-semibold tracking-tight text-[#19192d]', }; -function Nav() { - return ( -
-
- - - C - - Coaching Workspace - - - - Start assessment - -
- -
- ); -} - export default function AboutCoach() { return ( <> @@ -75,7 +42,7 @@ export default function AboutCoach() {

-