diff --git a/src/components/Layout.module.css b/src/components/Layout.module.css new file mode 100644 index 00000000..6f3816ac --- /dev/null +++ b/src/components/Layout.module.css @@ -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; +} diff --git a/src/components/layout.tsx b/src/components/layout.tsx index 11857a2c..ab974fae 100644 --- a/src/components/layout.tsx +++ b/src/components/layout.tsx @@ -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} />
+ Skip to Main Content setBurgerMenuIsOpen(!burgerMenuIsOpen)} /> + {children}