diff --git a/src/lib/components/pad/Editor.svelte b/src/lib/components/pad/Editor.svelte new file mode 100644 index 0000000..58d324e --- /dev/null +++ b/src/lib/components/pad/Editor.svelte @@ -0,0 +1,230 @@ + + + + +
+ + + {#if suggestions.length > 0 || rhymes.length > 0} +
+ {#if suggestions.length > 0} +
+

Suggestions

+ {#each suggestions.slice(0, 10) as { word }} + + {/each} +
+ {/if} + + {#if rhymes.length > 0} +
+

Rhymes

+ {#each rhymes.slice(0, 10) as { word }} + + {/each} +
+ {/if} +
+ {/if} +
+ + diff --git a/src/routes/(app)/pad/+page.svelte b/src/routes/(app)/pad/+page.svelte index 46676a7..b380a86 100644 --- a/src/routes/(app)/pad/+page.svelte +++ b/src/routes/(app)/pad/+page.svelte @@ -1,159 +1,7 @@ @@ -161,74 +9,4 @@ - - -
- - - {#if suggestions.length > 0 || rhymes.length > 0} -
- {#if suggestions.length > 0} -
-

Suggestions

- {#each suggestions.slice(0, 10) as { word }} - - {/each} -
- {/if} - - {#if rhymes.length > 0} -
-

Rhymes

- {#each rhymes.slice(0, 10) as { word }} - - {/each} -
- {/if} -
- {/if} -
- - +