Skip to content

Commit

Permalink
Add named page headers
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Oct 28, 2023
1 parent 8eefa1c commit b90779c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions packages/app-root/src/app/about/page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export default function AboutPage() {
return (
<header aria-label='About the Zooniverse'>
<p>This is the section header.</p>
</header>
<div>
<p>This is lib-content-pages</p>
</div>
Expand Down
3 changes: 3 additions & 0 deletions packages/app-root/src/app/projects/page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export default function ProjectPage() {
return (
<header aria-label='Project header'>
<p>This is the project header.</p>
</header>
<div>
<p>This is lib-project</p>
</div>
Expand Down
14 changes: 8 additions & 6 deletions packages/app-root/src/components/PageHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ export default function PageHeader() {
const { data: unreadNotifications }= useUnreadNotifications(user)

return (
<ZooHeader
isAdmin={adminMode}
unreadMessages={unreadMessages}
unreadNotifications={unreadNotifications}
user={user}
/>
<header aria-label='Zooniverse site header'>
<ZooHeader
isAdmin={adminMode}
unreadMessages={unreadMessages}
unreadNotifications={unreadNotifications}
user={user}
/>
</header>
)
}

0 comments on commit b90779c

Please sign in to comment.