tangled
alpha
login
or
join now
flo-bit.dev
/
blento
your personal website on atproto - mirror
blento.app
16
fork
atom
overview
issues
pulls
pipelines
remove buttons
Florian
5 days ago
a3c68b05
0ac11b47
-116
1 changed file
expand all
collapse all
unified
split
src
lib
website
EditBar.svelte
-116
src/lib/website/EditBar.svelte
···
331
331
</Button>
332
332
</div>
333
333
{:else}
334
334
-
<!-- Normal add-card controls -->
335
334
<div class="flex items-center gap-2">
336
336
-
<Button
337
337
-
size="iconLg"
338
338
-
variant="ghost"
339
339
-
class="backdrop-blur-none"
340
340
-
onclick={() => {
341
341
-
newCard('section');
342
342
-
}}
343
343
-
>
344
344
-
<svg
345
345
-
xmlns="http://www.w3.org/2000/svg"
346
346
-
viewBox="0 0 24 24"
347
347
-
fill="none"
348
348
-
stroke="currentColor"
349
349
-
stroke-width="2"
350
350
-
stroke-linecap="round"
351
351
-
stroke-linejoin="round"
352
352
-
><path d="M6 12h12" /><path d="M6 20V4" /><path d="M18 20V4" /></svg
353
353
-
>
354
354
-
</Button>
355
355
-
356
356
-
<Button
357
357
-
size="iconLg"
358
358
-
variant="ghost"
359
359
-
class="backdrop-blur-none"
360
360
-
onclick={() => {
361
361
-
newCard('text');
362
362
-
}}
363
363
-
>
364
364
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"
365
365
-
><path
366
366
-
fill="none"
367
367
-
stroke="currentColor"
368
368
-
stroke-linecap="round"
369
369
-
stroke-linejoin="round"
370
370
-
stroke-width="2"
371
371
-
d="m15 16l2.536-7.328a1.02 1.02 1 0 1 1.928 0L22 16m-6.303-2h5.606M2 16l4.039-9.69a.5.5 0 0 1 .923 0L11 16m-7.696-3h6.392"
372
372
-
/></svg
373
373
-
>
374
374
-
</Button>
375
375
-
376
376
-
<Popover sideOffset={16} bind:open={linkPopoverOpen} class="bg-base-100 dark:bg-base-900">
377
377
-
{#snippet child({ props })}
378
378
-
<Button
379
379
-
size="iconLg"
380
380
-
variant="ghost"
381
381
-
class="backdrop-blur-none"
382
382
-
onclick={() => {
383
383
-
newCard('link');
384
384
-
}}
385
385
-
{...props}
386
386
-
>
387
387
-
<svg
388
388
-
xmlns="http://www.w3.org/2000/svg"
389
389
-
fill="none"
390
390
-
viewBox="-2 -2 28 28"
391
391
-
stroke-width="2"
392
392
-
stroke="currentColor"
393
393
-
>
394
394
-
<path
395
395
-
stroke-linecap="round"
396
396
-
stroke-linejoin="round"
397
397
-
d="M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"
398
398
-
/>
399
399
-
</svg>
400
400
-
</Button>
401
401
-
{/snippet}
402
402
-
<Input
403
403
-
spellcheck={false}
404
404
-
type="url"
405
405
-
bind:value={linkValue}
406
406
-
onkeydown={(event) => {
407
407
-
if (event.code === 'Enter') {
408
408
-
addLink(linkValue);
409
409
-
event.preventDefault();
410
410
-
}
411
411
-
}}
412
412
-
placeholder="Enter link"
413
413
-
/>
414
414
-
<Button onclick={() => addLink(linkValue)} size="icon"
415
415
-
><svg
416
416
-
xmlns="http://www.w3.org/2000/svg"
417
417
-
fill="none"
418
418
-
viewBox="0 0 24 24"
419
419
-
stroke-width="2"
420
420
-
stroke="currentColor"
421
421
-
class="size-6"
422
422
-
>
423
423
-
<path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5" />
424
424
-
</svg>
425
425
-
</Button>
426
426
-
</Popover>
427
427
-
428
428
-
<Button
429
429
-
size="iconLg"
430
430
-
variant="ghost"
431
431
-
class="backdrop-blur-none"
432
432
-
onclick={() => {
433
433
-
imageInputRef?.click();
434
434
-
}}
435
435
-
>
436
436
-
<svg
437
437
-
xmlns="http://www.w3.org/2000/svg"
438
438
-
fill="none"
439
439
-
viewBox="0 0 24 24"
440
440
-
stroke-width="2"
441
441
-
stroke="currentColor"
442
442
-
>
443
443
-
<path
444
444
-
stroke-linecap="round"
445
445
-
stroke-linejoin="round"
446
446
-
d="m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"
447
447
-
/>
448
448
-
</svg>
449
449
-
</Button>
450
450
-
451
335
<Button size="iconLg" variant="ghost" class="backdrop-blur-none" onclick={showCardCommand}>
452
336
<svg
453
337
xmlns="http://www.w3.org/2000/svg"