-
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.
tweaks: fix configs and update index page placeholder
- Loading branch information
1 parent
5681069
commit 1250a92
Showing
4 changed files
with
40 additions
and
22 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 |
---|---|---|
@@ -1,7 +1,23 @@ | ||
<script> | ||
import { TokenSquare } from "@promplate/pattern"; | ||
import { onMount } from "svelte"; | ||
import { sineInOut } from "svelte/easing"; | ||
import { tweened } from "svelte/motion"; | ||
const length = 20; | ||
let i = tweened(length * 1.3, { easing: sineInOut, duration: 700 }); | ||
onMount(() => ($i = 0)); | ||
</script> | ||
|
||
<div class="grid h-screen select-none place-items-center bg-neutral-950"> | ||
<h1 class="text-neutral-5 font-mono"> | ||
</ Promplate | ||
<span text-neutral-50>Demo</span> | ||
/> | ||
</h1> | ||
<div class="flex flex-col gap-2 text-neutral-2"> | ||
<div class="text-sm"> | ||
<TokenSquare {length} isHighlighted={({ x, y }) => y - x >= $i} /> | ||
</div> | ||
<h1 class="mx-0.5 w-fit text-white font-sans"> | ||
Promplate | ||
<span class="op-30">Demo</span> | ||
</h1> | ||
</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