Skip to content

Commit

Permalink
adjust header for the examples apps
Browse files Browse the repository at this point in the history
  • Loading branch information
BogdanDanilescu committed Sep 17, 2024
1 parent 96402fd commit 76dc596
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Footer } from '@/components/footer/footer';
export function PageNotFound() {
return (
<>
<Header />
<Header logoLink="/" />
<main>
<Heading as="h2">Page not found</Heading>
<Paragraph>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Footer } from '@/components/footer/footer';
export function ServiceUnavailable() {
return (
<>
<Header />
<Header logoLink="/" />
<main>
<Heading as="h2">Sorry, the service is unavailable</Heading>
<Paragraph>You will be able to use the service later.</Paragraph>
Expand Down
25 changes: 21 additions & 4 deletions examples/nextjs/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,27 @@ export default function Home() {
return (
<div className="flex flex-col h-full">
<Header
serviceName="Example"
homeHref="www.gov.ie"
serviceHref="#"
homeAriaLabel="aria label"
logoLink="/home"
navLinks={[
{
href: "#",
label: "News",
},
{
href: "#",
label: "Departments",
},
{
href: "#",
label: "Services",
},
]}
languages={[
{
href: "#",
label: "Gaeilge",
},
]}
/>
<Container>
<Heading>Heading</Heading>
Expand Down
25 changes: 21 additions & 4 deletions examples/vite/src/application.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,27 @@ export function App() {
return (
<>
<Header
serviceName="Example"
homeHref="www.gov.ie"
serviceHref="#"
homeAriaLabel="aria label"
logoLink="/home"
navLinks={[
{
href: "#",
label: "News",
},
{
href: "#",
label: "Departments",
},
{
href: "#",
label: "Services",
},
]}
languages={[
{
href: "#",
label: "Gaeilge",
},
]}
/>
<Container>
<Heading>Heading</Heading>
Expand Down

0 comments on commit 76dc596

Please sign in to comment.