-
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.
🎉 Remove target _self from nav bar links
- Loading branch information
Showing
6 changed files
with
65 additions
and
33 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 @@ | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
class="h-4 w-4 inline-block ml-1" | ||
viewBox="0 0 20 20" | ||
fill="currentColor" | ||
> | ||
<path | ||
d="M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z" | ||
/> | ||
<path d="M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z" /> | ||
</svg> |
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,14 @@ | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
class="h-6 w-6" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
> | ||
<path | ||
stroke-linecap="round" | ||
stroke-linejoin="round" | ||
stroke-width="2" | ||
d="M4 6h16M4 12h16M4 18h16" | ||
/> | ||
</svg> |
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,32 @@ | ||
<script lang="ts"> | ||
import { page } from '$app/stores'; | ||
import logo from '$lib/icons/thw-mzgw.webp'; | ||
const navItems = [ | ||
{ | ||
title: 'Quiz', | ||
items: [ | ||
{ name: 'Grundausbildungs-Quiz', href: '/quiz/ga/listing/' }, | ||
{ name: 'Sprechfunk-Quiz', href: '/quiz/radio/listing/' }, | ||
{ name: 'Atemschutz-Quiz', href: '/quiz/agt/listing/' }, | ||
{ name: 'CBRN-Quiz', href: '/quiz/cbrn/listing/' } | ||
] | ||
}, | ||
{ | ||
title: 'Tools', | ||
items: [ | ||
{ name: 'CBRN-Schutzanzug', href: '/cbrn/protective-suite' }, | ||
{ name: 'Finnentest', href: 'https://finnentest.thw-tools.de', external: true }, | ||
{ name: 'Elektro Spannungsfall', href: 'https://elektro.thw-tools.de', external: true }, | ||
{ name: 'THW Bekleidungs Rechner', href: '/clothing' } | ||
] | ||
} | ||
]; | ||
$: currentPath = $page.url.pathname; | ||
$: isHomePage = currentPath === '/'; | ||
</script> | ||
|
||
{#if !isHomePage} | ||
<thw-navigation-bar logoUrl={logo} title="THW Tools" {navItems} {currentPath} /> | ||
{/if} |
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