-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #70 --------- Co-authored-by: Claire Olmstead <[email protected]>
- Loading branch information
1 parent
7c422db
commit 3e1d6db
Showing
7 changed files
with
49 additions
and
4 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,39 @@ | ||
<script lang="ts"> | ||
import { navigating } from '$app/stores'; | ||
import { onMount } from 'svelte'; | ||
import iconLogo from '$lib/assets/icon-logo.png'; | ||
let url = ''; | ||
onMount(() => (url = window.location.pathname)); | ||
$: navItems = [ | ||
{ name: 'Home', href: '/', isActive: url === '/' }, | ||
{ name: "FAQ's", href: '/faq', isActive: url === '/faq' }, | ||
{ name: 'Logout', href: '', isActive: false }, | ||
]; | ||
//TODO: logout in store once store created | ||
const logout = () => {}; | ||
</script> | ||
|
||
<div class="bg-bg-black w-[126px] min-w-[126px] h-screen flex flex-col justify-center items-center"> | ||
<img alt="iconLogo" src={iconLogo} class="w-[57px] absolute top-7 left-6" /> | ||
<div class="flex flex-col w-[100%]"> | ||
{#each navItems as navItem} | ||
{#key navItems} | ||
<a | ||
on:click={() => { | ||
const items = navItems.map((item) => { | ||
return { ...item, isActive: item.name === navItem.name }; | ||
}); | ||
navItems = items; | ||
}} | ||
href={navItem.href} | ||
class={` h-[100px] flex items-center justify-center font-bold text-sm ${ | ||
navItem.isActive && 'bg-bg-black-active shadow-blue-border' | ||
}`}>{navItem.name}</a | ||
> | ||
{/key} | ||
{/each} | ||
</div> | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,11 +1,17 @@ | ||
<script> | ||
import Header from '../components/Header.svelte'; | ||
import Nav from '../components/Nav.svelte'; | ||
import wave from '$lib/assets/bg-wave.png'; | ||
</script> | ||
|
||
<div> | ||
<img alt="The project logo" src={wave} class="fixed w-[100%] top-0 right-0 z-[-1]" /> | ||
<Header /> | ||
<slot class="z-10" /> | ||
<div class="flex"> | ||
<Nav /> | ||
<div class="m-6 w-[100%]"> | ||
<Header /> | ||
<slot class="z-10" /> | ||
</div> | ||
</div> | ||
</div> | ||
; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<div>FAQ_PAGE</div> |
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