-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.skipToMainContentLink { | ||
background-color: var(--color-sheltertech-blue); | ||
color: var(--color-white); | ||
font: var(--font-caption); | ||
margin: 30px; | ||
padding: 1em; | ||
position: absolute; | ||
text-align: center; | ||
text-decoration: none; | ||
z-index: 999; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ import sealOfTransparency from "./grid-aware/Footer/stories/guidestar-seal-of-tr | |
import instagramLogo from "./grid-aware/Footer/stories/instagram.svg"; | ||
import twitterLogo from "./grid-aware/Footer/stories/twitter.svg"; | ||
import { BurgerMenu, Navigation } from "./grid-aware/Navigation"; | ||
import * as s from "./Layout.module.css"; | ||
|
||
type NavItem = { | ||
text: string; | ||
|
@@ -33,6 +34,7 @@ type LayoutProps = { | |
const Layout = ({ children }: LayoutProps) => { | ||
const pageWrapperID = "page-wrapper"; | ||
const outerContainerID = "outer-container"; | ||
const mainContentID = "main-content"; | ||
const [burgerMenuIsOpen, setBurgerMenuIsOpen] = useState(false); | ||
useEffect(() => { | ||
ReactModal.setAppElement(`#${outerContainerID}`); | ||
|
@@ -48,11 +50,13 @@ const Layout = ({ children }: LayoutProps) => { | |
outerContainerID={outerContainerID} | ||
/> | ||
<div id={pageWrapperID}> | ||
<a className={s.skipToMainContentLink} href={`#${mainContentID}`}>Skip to Main Content</a> | ||
<Navigation | ||
homeURL="/" | ||
navigationItems={navigationItems} | ||
toggleBurgerMenu={() => setBurgerMenuIsOpen(!burgerMenuIsOpen)} | ||
/> | ||
<a id={mainContentID}></a> | ||
Check failure on line 59 in src/components/layout.tsx GitHub Actions / Test
Check failure on line 59 in src/components/layout.tsx GitHub Actions / Test
|
||
{children} | ||
<Footer | ||
formAction="https://sheltertech.us19.list-manage.com/subscribe/post?u=c47829732a0bea5c8e8a94604&id=08f60e42ef" | ||
|