Spaces:
Runtime error
Runtime error
instructions titles
Browse files
frontend/src/lib/Buttons/AboutButton.svelte
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<div class="md:w-[210px] text-sm md:flex flex-col order-last md:order-none">
|
2 |
<p class="mb-4 inline">
|
3 |
-
Instructions: move the <span class="text-blue-700 bg-blue-300/60 px-0.5">blue square</span
|
4 |
-
|
5 |
</p>
|
6 |
<button on:click class="items-center inline-flex">
|
7 |
<svg width=".9em" height=".9em" viewBox="0 0 24 24" class="mr-1"
|
|
|
1 |
<div class="md:w-[210px] text-sm md:flex flex-col order-last md:order-none">
|
2 |
<p class="mb-4 inline">
|
3 |
+
Instructions: move the <span class="text-blue-700 bg-blue-300/60 px-0.5">blue square</span>,
|
4 |
+
click "π Paint", and prompt.
|
5 |
</p>
|
6 |
<button on:click class="items-center inline-flex">
|
7 |
<svg width=".9em" height=".9em" viewBox="0 0 24 24" class="mr-1"
|
frontend/src/lib/Menu.svelte
CHANGED
@@ -23,6 +23,7 @@
|
|
23 |
|
24 |
<button
|
25 |
on:click={() => dispatch('prompt')}
|
|
|
26 |
disabled={isLoading}
|
27 |
class="{isLoading
|
28 |
? 'cursor-wait'
|
|
|
23 |
|
24 |
<button
|
25 |
on:click={() => dispatch('prompt')}
|
26 |
+
title="Click to prompt, and paint. The generated image will show up in the frame."
|
27 |
disabled={isLoading}
|
28 |
class="{isLoading
|
29 |
? 'cursor-wait'
|
frontend/src/lib/PaintFrame.svelte
CHANGED
@@ -228,6 +228,7 @@
|
|
228 |
/>
|
229 |
{/if}
|
230 |
<canvas
|
|
|
231 |
class="{dragEnabled ? 'hidden' : 'bg-white block'} absolute top-0 left-0 z-0"
|
232 |
bind:this={$maskEl}
|
233 |
width={FRAME_SIZE}
|
@@ -248,6 +249,7 @@
|
|
248 |
<div
|
249 |
class="pl-3 pr-5 py-1 bg-blue-700/90 text-white text-lg xl:text-2xl rounded-tr-xl font-medium tracking-wide cursor-pointer"
|
250 |
on:click={() => toggleDrag()}
|
|
|
251 |
>
|
252 |
{#if $loadingState !== ''}
|
253 |
<div class="">
|
@@ -270,13 +272,14 @@
|
|
270 |
>
|
271 |
{#if !isLoading}
|
272 |
<div class="mx-4 flex flex-col gap-2">
|
273 |
-
<button
|
274 |
on:click={() => dispatch('prompt')}
|
275 |
class="w-10 h-10 bg-blue-600 hover:saturate-150 shadow-2xl shadow-blue-500 rounded-lg flex items-center justify-center text-3xl"
|
276 |
>
|
277 |
π
|
278 |
-
</button>
|
279 |
<button
|
|
|
280 |
on:click={toggleDrawMask}
|
281 |
class="w-10 h-10 bg-blue-600 hover:saturate-150 shadow-2xl shadow-blue-500 rounded-lg flex items-center justify-center text-3xl"
|
282 |
>
|
@@ -295,6 +298,7 @@
|
|
295 |
</div>
|
296 |
<div
|
297 |
bind:this={frameElement}
|
|
|
298 |
class="absolute top-0 left-0 ring-8 hand
|
299 |
{dragEnabled ? 'block' : 'hidden'}
|
300 |
{isLoading ? 'cursor-wait' : dragEnabled ? 'block cursor-move' : 'hidden cursor-pointer'}"
|
|
|
228 |
/>
|
229 |
{/if}
|
230 |
<canvas
|
231 |
+
title="Draw your mask here. The masked area will be inpainted by Stable Diffusion"
|
232 |
class="{dragEnabled ? 'hidden' : 'bg-white block'} absolute top-0 left-0 z-0"
|
233 |
bind:this={$maskEl}
|
234 |
width={FRAME_SIZE}
|
|
|
249 |
<div
|
250 |
class="pl-3 pr-5 py-1 bg-blue-700/90 text-white text-lg xl:text-2xl rounded-tr-xl font-medium tracking-wide cursor-pointer"
|
251 |
on:click={() => toggleDrag()}
|
252 |
+
title="Enable dragging to move the frame"
|
253 |
>
|
254 |
{#if $loadingState !== ''}
|
255 |
<div class="">
|
|
|
272 |
>
|
273 |
{#if !isLoading}
|
274 |
<div class="mx-4 flex flex-col gap-2">
|
275 |
+
<!-- <button
|
276 |
on:click={() => dispatch('prompt')}
|
277 |
class="w-10 h-10 bg-blue-600 hover:saturate-150 shadow-2xl shadow-blue-500 rounded-lg flex items-center justify-center text-3xl"
|
278 |
>
|
279 |
π
|
280 |
+
</button> -->
|
281 |
<button
|
282 |
+
title="Draw your custom mask on the frame"
|
283 |
on:click={toggleDrawMask}
|
284 |
class="w-10 h-10 bg-blue-600 hover:saturate-150 shadow-2xl shadow-blue-500 rounded-lg flex items-center justify-center text-3xl"
|
285 |
>
|
|
|
298 |
</div>
|
299 |
<div
|
300 |
bind:this={frameElement}
|
301 |
+
title={dragEnabled ? 'Drag the frame around, prompt, and paint' : 'Enable dragging'}
|
302 |
class="absolute top-0 left-0 ring-8 hand
|
303 |
{dragEnabled ? 'block' : 'hidden'}
|
304 |
{isLoading ? 'cursor-wait' : dragEnabled ? 'block cursor-move' : 'hidden cursor-pointer'}"
|