-
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.
- Loading branch information
1 parent
06e839e
commit 2a61d6d
Showing
20 changed files
with
181 additions
and
141 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,17 +1,9 @@ | ||
<script> | ||
import CodeTab from "./Code/CodeTab.svelte"; | ||
/** @type {string}*/ | ||
export let code; | ||
/** @type {string | null}*/ | ||
export let language = null; | ||
/** @type {string | null}*/ | ||
export let filename = null; | ||
</script> | ||
|
||
<div | ||
class="my-6 overflow-hidden rounded-2xl bg-zinc-900 shadow-md dark:ring-1 dark:ring-white/10 not-prose" | ||
class="shadow-xl my-6 overflow-hidden rounded-md bg-zinc-900 dark:ring-1 dark:ring-white/10 not-prose" | ||
> | ||
<CodeTab code={"npm install --save-dev t18s"}>npm install --save-dev t18s</CodeTab> | ||
<CodeTab>npm install --save-dev t18s</CodeTab> | ||
</div> |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
<script> | ||
</script> | ||
|
||
|
||
<header> | ||
<slot /> | ||
</header> |
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
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 was deleted.
Oops, something went wrong.
Empty file.
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,55 @@ | ||
<script> | ||
import MenuBars from "virtual:icons/heroicons/bars-3"; | ||
import XMark from "virtual:icons/heroicons/x-mark"; | ||
import BottomAppbarSection from "./BottomAppbarSection.svelte"; | ||
import { page } from "$app/stores"; | ||
let navOpen = false; | ||
</script> | ||
|
||
{#if navOpen} | ||
<!-- svelte-ignore a11y-click-events-have-key-events --> | ||
<div | ||
class="fixed inset-0 bg-black bg-opacity-30 z-40 md:hidden" | ||
on:click={() => (navOpen = false)} | ||
/> | ||
{/if} | ||
|
||
<header class="block md:hidden relative z-50"> | ||
|
||
<div class="flex p-4 border-t items-center justify-between z-50 bg-white"> | ||
<a class="flex gap-2" href="/"> | ||
<img src="/icon.svg" alt="t18s" class="w-6 h-6" /> | ||
<span class="font-semibold">T18S</span> | ||
</a> | ||
|
||
<button on:click={() => (navOpen = !navOpen)}> | ||
{#if navOpen} | ||
<XMark class="w-6 h-6" /> | ||
{:else} | ||
<MenuBars class="w-6 h-6" /> | ||
{/if} | ||
</button> | ||
</div> | ||
|
||
{#if navOpen} | ||
<nav | ||
class="absolute grid gap-2 top-0 left-0 -translate-y-full bg-white rounded-t-lg border-t w-full p-4 max-h-96 overflow-y-auto" | ||
> | ||
<BottomAppbarSection let:Link let:Heading> | ||
<Heading>Getting Started</Heading> | ||
<Link href="/" active={$page.url.pathname === "/"}>Installation</Link> | ||
<Link | ||
href="/getting-started" | ||
active={$page.url.pathname === "/getting-started"}>Setting Up</Link | ||
> | ||
<Link href="/roadmap" active={$page.url.pathname === "/roadmap"} | ||
>Roadmap</Link | ||
> | ||
<Link href="/syntax" active={$page.url.pathname === "/syntax"} | ||
>Syntax</Link | ||
> | ||
</BottomAppbarSection> | ||
</nav> | ||
{/if} | ||
</header> |
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,15 @@ | ||
<script> | ||
import { merge } from "$lib/utils/class-merge"; | ||
export let active = false; | ||
export let href = "#"; | ||
</script> | ||
|
||
<a | ||
{href} | ||
class={merge( | ||
"flex justify-between gap-2 py-2 px-2 rounded-md text-sm transition text-zinc-600 hover:text-zinc-900", | ||
active && "bg-orange-50" | ||
)} | ||
> | ||
<span class="truncate"><slot /></span> | ||
</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,8 @@ | ||
<script> | ||
import Link from "./BottomAppbarLink.svelte" | ||
import Heading from "./BottomAppbarSectionHeading.svelte" | ||
</script> | ||
|
||
<div class="grid"> | ||
<slot {Link} {Heading} /> | ||
</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,3 @@ | ||
<h3 class="uppercase font-bold text-gray-500 text-sm py-2"> | ||
<slot /> | ||
</h3> |
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,31 @@ | ||
<script> | ||
import { cubicInOut } from "svelte/easing"; | ||
import { crossfade } from "svelte/transition"; | ||
export let active = false; | ||
/** @type {string} */ | ||
export let href; | ||
const [send, receive] = crossfade({ | ||
duration: 250, | ||
easing: cubicInOut, | ||
}); | ||
</script> | ||
|
||
<a | ||
class="{active | ||
? 'font-semibold' | ||
: ''} text-gray-700 relative outline-orange-400 hover:bg-orange-50 py-2 rounded-md" | ||
{href} | ||
> | ||
<slot /> | ||
|
||
{#if active} | ||
<!--Active Indicator--> | ||
<span | ||
class="absolute top-1/2 left-0 w-1.5 h-1.5 -translate-y-1/2 -translate-x-4 rounded-full bg-orange-500" | ||
in:send={{ key: 'sidebar-link-active-indicator' }} | ||
out:receive={{ key: 'sidebar-link-active-indicator' }} | ||
/> | ||
{/if} | ||
</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,8 @@ | ||
<script> | ||
import SidebarSectionHeading from "./SidebarSectionHeading.svelte"; | ||
import SidebarSectionLink from "./SidebarLink.svelte"; | ||
</script> | ||
|
||
<div class="grid"> | ||
<slot Heading={SidebarSectionHeading} Link={SidebarSectionLink} /> | ||
</div> |
File renamed without changes.
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,8 @@ | ||
/** | ||
* Merges classes together & ignores any falsy values | ||
* @param {(string | false | null)[]} classes | ||
* @returns | ||
*/ | ||
export function merge(...classes) { | ||
return classes.filter(Boolean).join(' '); | ||
} |
Oops, something went wrong.