diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx index 20f7b7c..c86ce41 100644 --- a/apps/web/app/layout.tsx +++ b/apps/web/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from 'next'; +import Link from 'next/link'; import './globals.css'; export const metadata: Metadata = { @@ -9,7 +10,18 @@ export const metadata: Metadata = { export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - {children} + + +
{children}
+ ); } diff --git a/apps/web/app/page.test.tsx b/apps/web/app/page.test.tsx index ee0919e..88b5898 100644 --- a/apps/web/app/page.test.tsx +++ b/apps/web/app/page.test.tsx @@ -7,8 +7,13 @@ describe('Home page', () => { expect(screen.getByRole('heading', { name: /insignia tower/i })).toBeInTheDocument(); }); - it('renders the platform tagline', () => { + it('renders a link to the search page', () => { render(); - expect(screen.getByText(/community knowledge infrastructure/i)).toBeInTheDocument(); + expect(screen.getByRole('link', { name: /search/i })).toHaveAttribute('href', '/search'); + }); + + it('renders a link to the groups page', () => { + render(); + expect(screen.getByRole('link', { name: /groups/i })).toHaveAttribute('href', '/groups'); }); }); diff --git a/apps/web/app/page.tsx b/apps/web/app/page.tsx index 994ea6d..c1cf423 100644 --- a/apps/web/app/page.tsx +++ b/apps/web/app/page.tsx @@ -1,8 +1,26 @@ +import Link from 'next/link'; + export default function Home() { return ( -
-

Insignia TOWER

-

Community Knowledge Infrastructure Platform

-
+
+

Insignia TOWER

+

Community Knowledge Infrastructure Platform

+
+ +

Search

+

Full-text search of approved messages

+ + +

Groups

+

Manage groups and sync routes

+ +
+
); }