Skip to content

Commit

Permalink
Open local dev docs for feature branch (#40)
Browse files Browse the repository at this point in the history
## Details
- Set link to localhost for `Dev Docs` for local development
Closes #30
  • Loading branch information
saraswatpuneet authored Oct 29, 2024
1 parent d70c4f5 commit eae17aa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/components/Header/NavItems.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export let textColor: string;
export let section: number;
export let isDesktop: boolean = true;
import { base } from '$app/paths';
let isOnHomePage = $page.url.pathname === '/';
</script>

Expand All @@ -14,13 +14,7 @@
>
{/if}
<!-- <a class={`underline-on-hover after:bg-${textColor}`} href="/#">Our Technology.</a> -->
<a
class={`underline-on-hover after:bg-${textColor}`}
href="https://docs.frequency.xyz/"
target="_blank"
rel="noreferrer"
role="">Dev Docs.</a
>
<a class={`underline-on-hover after:bg-${textColor}`} href="{base}/docs" rel="noreferrer" role="">Dev Docs.</a>
<a
class={`underline-on-hover after:bg-${textColor}`}
href="https://medium.com/one-frequency"
Expand Down
15 changes: 15 additions & 0 deletions src/routes/docs/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<script lang="ts">
import Header from '../../components/Header/Header.svelte';
import Footer from '../../components/Footer.svelte';
const logoHex = '#5E69FF';
const navColor = 'navy';
</script>

<div class="relative lg:max-w-[100vw] xl:max-w-page">
<Header {logoHex} {navColor} />
<div class="mt-4 p-3">
<slot />
</div>
<Footer />
</div>
1 change: 1 addition & 0 deletions src/routes/docs/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="mx-auto flex-grow justify-center px-4 sm:px-6 lg:px-8"></div>

0 comments on commit eae17aa

Please sign in to comment.