remove nav component
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
import { faXmark, faWindowMinimize } from '@fortawesome/free-solid-svg-icons';
|
import { faXmark, faWindowMinimize } from '@fortawesome/free-solid-svg-icons';
|
||||||
import { faGithub } from '@fortawesome/free-brands-svg-icons';
|
import { faGithub } from '@fortawesome/free-brands-svg-icons';
|
||||||
import Fa from 'svelte-fa';
|
import Fa from 'svelte-fa';
|
||||||
import HeaderNav from '$lib/components/nav/HorizontalNav.svelte';
|
|
||||||
import { navLinks } from '$data/NavLinks';
|
import { navLinks } from '$data/NavLinks';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -17,7 +16,24 @@
|
|||||||
<ThemeToggleIcon theme={$theme} />
|
<ThemeToggleIcon theme={$theme} />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<HeaderNav {navLinks} />
|
<nav>
|
||||||
|
<ul class="flex space-x-4">
|
||||||
|
{#each navLinks as navLink, i (i)}
|
||||||
|
<li>
|
||||||
|
<a
|
||||||
|
href={navLink.target.href}
|
||||||
|
target={navLink.target.newTab ? '_blank' : ''}
|
||||||
|
class="hover:text-secondary transition-colors"
|
||||||
|
>
|
||||||
|
{#if navLink.content.icon}
|
||||||
|
<Fa icon={navLink.content.icon} />
|
||||||
|
{/if}
|
||||||
|
{navLink.content.text}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{/each}
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
<div class="flex [&>*]:px-2 h-full [&>*]:transition-all">
|
<div class="flex [&>*]:px-2 h-full [&>*]:transition-all">
|
||||||
<a
|
<a
|
||||||
|
@@ -1,24 +0,0 @@
|
|||||||
<script lang="ts">
|
|
||||||
import type { NavLink } from '$types';
|
|
||||||
import Fa from 'svelte-fa/src/fa.svelte';
|
|
||||||
|
|
||||||
export let navLinks: NavLink[];
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<nav>
|
|
||||||
<ul class="flex space-x-4">
|
|
||||||
{#each navLinks as navLink, i (i)}
|
|
||||||
<li>
|
|
||||||
<a
|
|
||||||
href={navLink.target.href}
|
|
||||||
target={navLink.target.newTab ? '_blank' : ''}
|
|
||||||
>
|
|
||||||
{#if navLink.content.icon}
|
|
||||||
<Fa icon={navLink.content.icon} />
|
|
||||||
{/if}
|
|
||||||
{navLink.content.text}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{/each}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
Reference in New Issue
Block a user