-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
2f62e2b
commit 1bb48cd
Showing
4 changed files
with
23 additions
and
15 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
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 |
---|---|---|
@@ -1,27 +1,30 @@ | ||
import CookieBanner from "./cookie-banner" | ||
import CookieBanner from "./cookie-banner"; | ||
|
||
export default function Navbar({ showCookieBanner, setCookiePermission }) { | ||
|
||
return ( | ||
<header> | ||
<div> | ||
<a href="#MainContentArea" | ||
className="sr-only focus:not-sr-only bg-black text-white"> | ||
Till huvudinnehåll | ||
</a> | ||
<a href="/instruktion" | ||
className="sr-only focus:not-sr-only bg-black text-white"> | ||
Till instruktion för använding av webbapplikationen | ||
</a> | ||
<button | ||
onClick={() => document.getElementById('MainContentArea').focus()} | ||
className="sr-only focus:not-sr-only focus:bg-black focus:text-white" | ||
tabIndex={0} | ||
> | ||
Till huvudinnehåll | ||
</button> | ||
<button | ||
onClick={() => window.location.href = '/instruktion'} | ||
className="sr-only focus:not-sr-only focus:bg-black focus:text-white" | ||
tabIndex={0} | ||
> | ||
Till instruktion för använding av webbapplikationen | ||
</button> | ||
</div> | ||
|
||
{showCookieBanner && <CookieBanner setCookiePermission={setCookiePermission} />} | ||
|
||
<div className="flex justify-between items-center px-4 py-1 mx-auto | ||
border-y border-neutral-400 bg-gradient-to-b from-neutral-300 via-neutral-200 to-neutral-300"> | ||
<div className="flex justify-between items-center px-4 py-1 mx-auto border-y border-neutral-400 bg-gradient-to-b from-neutral-300 via-neutral-200 to-neutral-300"> | ||
<h1 className="text-lg font-bold" tabIndex={0}>Digital punktläsare</h1> | ||
</div> | ||
|
||
</header> | ||
) | ||
); | ||
} |
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
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