-
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.
closes #11 blocked by #19 Note: Heather is working on licensing the correct font, so it looks a little off. ## Changes - added favicons - added minor layout styles - created header and nav components - made them accessible for both mobile and desktop ## Demo Uploading Screen Recording 2024-02-13 at 7.49.59 PM.mov… --------- Co-authored-by: Claire Olmstead <[email protected]>
- Loading branch information
1 parent
4c7d308
commit d0b635b
Showing
17 changed files
with
108 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
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,19 @@ | ||
<script> | ||
import HeaderNav from '../Header/HeaderNav.svelte'; | ||
import Logo from '../../lib/assets/Logo.svg'; | ||
import HeaderNavMobile from '../Header/HeaderNavMobile.svelte'; | ||
import OpenCloseIcon from '../OpenCloseIcon.svelte'; | ||
let isNavOpen = false; | ||
</script> | ||
|
||
<div class="freq-container fixed top-0 flex items-center justify-between pt-[12px]"> | ||
<img src={Logo} alt="Logo" class="mr-3 sm:w-[140px] md:w-[180px] lg:w-[210px]" /> | ||
|
||
<!-- For Desktop --> | ||
<HeaderNav /> | ||
|
||
<!-- For Mobile --> | ||
<OpenCloseIcon onClick={() => (isNavOpen = !isNavOpen)} isOpen={isNavOpen} classes={'md:hidden lg:hidden'} /> | ||
<HeaderNavMobile isOpen={isNavOpen} /> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<script> | ||
import NavItems from './NavItems.svelte'; | ||
</script> | ||
|
||
<nav class="flex-wrap gap-4 text-sm uppercase sm:hidden md:flex lg:flex"> | ||
<NavItems /> | ||
</nav> |
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,13 @@ | ||
<script lang="ts"> | ||
import NavItems from './NavItems.svelte'; | ||
export let isOpen: boolean; | ||
</script> | ||
|
||
<div | ||
class={`fixed right-0 top-0 w-[100vw] flex-col gap-6 overflow-hidden bg-teal transition-[height] duration-[1s] sm:flex md:hidden lg:hidden ${isOpen ? 'h-[100vh]' : 'h-0'}`} | ||
> | ||
<nav class="mt-[60px] flex flex-col gap-4 px-[12%] text-xl uppercase text-cream"> | ||
<NavItems /> | ||
</nav> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<a class="underline-on-hover" href="/#">About.</a> | ||
<a class="underline-on-hover" href="/#">Our Technology.</a> | ||
<a class="underline-on-hover" href="https://docs.frequency.xyz/" target="_blank" rel="noreferrer">Dev Docs.</a> | ||
<a class="underline-on-hover" href="https://medium.com/one-frequency" target="_blank" rel="noreferrer">Newsroom.</a> | ||
<a class="underline-on-hover" href="mailto:[email protected]">Contact.</a> |
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,24 @@ | ||
<script lang="ts"> | ||
export let onClick: () => void; | ||
export let isOpen: boolean; | ||
export let classes: string = ''; | ||
</script> | ||
|
||
<button on:click|preventDefault={onClick} class={`z-50 ${classes}`}> | ||
<svg class="h-[55px] w-[55px]"> | ||
<line | ||
x1="0" | ||
y1="50%" | ||
x2="100%" | ||
y2="50%" | ||
class={`origin-left translate-y-[20%] stroke-purple stroke-[10%] transition-transform duration-[0.3s] ${isOpen ? 'translate-x-[8px] translate-y-[35%] -rotate-45' : 'rotate-0'}`} | ||
/> | ||
<line | ||
x1="0" | ||
y1="50%" | ||
x2="100%" | ||
y2="50%" | ||
class={`origin-left translate-y-[-20%] stroke-purple stroke-[10%] transition-transform duration-[0.3s] ${isOpen ? 'translate-x-[8px] translate-y-[-35%] rotate-45' : 'rotate-0'}`} | ||
/> | ||
</svg> | ||
</button> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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