Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
supun-io committed Oct 28, 2023
1 parent b58f88b commit 053cdf5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/lib/marketing/Docs/Nav/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
padding: 25px 0;
position: sticky;
flex-shrink: 0;
align-self: flex-start;;
align-self: flex-start;
max-height: calc(100vh - var(--header-height));
}
.docs-nav :global(.nav-inner) {
padding: 15px 0;
overflow-y: auto;
max-height: calc(100vh - var(--header-height) - 50px);
}
</style>
22 changes: 21 additions & 1 deletion src/routes/[[slug]]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,30 @@
import logo from '../img/logo/hyvor.svg';
import Button from "../../lib/components/Button/Button.svelte";
import { onMount } from "svelte";
import { page } from '$app/stores';
export let data;
let title = 'Hyvor Design';
onMount(() => {
const unsubscribe = page.subscribe(() => {
const h1 = document.querySelector('h1');
if (h1 && h1.textContent) {
title = h1.textContent + ' - HDS';
}
})
return unsubscribe;
})
</script>

<svelte:head>
<title>{title}</title>
</svelte:head>

<Header
logo={logo}
name="HYVOR"
Expand Down

0 comments on commit 053cdf5

Please sign in to comment.