@@ -159,7 +159,8 @@ defmodule ShareSecretWeb.CoreComponents do
159
159
id = { @ id }
160
160
phx-hook = "DynamicTextArea "
161
161
name = { @ name }
162
- class = { [ "textarea textarea-bordered h-0" , @ class ] }
162
+ class = { [ "textarea textarea-bordered h-[100px]" , @ class ] }
163
+ data-default-height = { 100 }
163
164
{ @ rest }
164
165
> <%= Phoenix.HTML.Form . normalize_value ( "textarea" , @ value ) %> </ textarea >
165
166
</ div >
@@ -384,53 +385,55 @@ defmodule ShareSecretWeb.CoreComponents do
384
385
385
386
def navbar ( assigns ) do
386
387
~H"""
387
- < nav class = "navbar border-base-200 border-b px-2 py-2 shadow-sm " >
388
- < div class = "flex-1 " >
389
- < . link href = { ~p" /" } aria-label = { gettext ( "Homepage" ) } >
390
- < span class = "btn btn-ghost flex items-center space-x-1 normal-case " >
391
- < . logo_icon class = "inline-block h-6 w-auto fill-current " />
392
- < p class = "hidden text-xl sm:block " > Share a Secret</ p >
393
- </ span >
394
- </ . link >
395
- </ div >
396
-
397
- < div class = "flex-none " >
398
- < div class = "menu menu-horizontal items-center " >
399
- < div class = "dropdown dropdown-end " >
400
- < label tabindex = "0 " class = "btn btn-ghost text-sm normal-case " >
401
- <%= gettext ( "Theme" ) %> < . icon name = "hero-chevron-down " class = "h-4 w-4 " />
402
- </ label >
403
- < div
404
- tabindex = "0 "
405
- class = "dropdown-content z-[1] menu bg-base-200 rounded-box w-32 p-2 shadow "
406
- >
407
- < button class = "btn btn-sm mb-1 text-sm normal-case " data-set-theme = "light " >
408
- < . icon name = "hero-sun " class = "mr-1 inline-block h-4 w-4 " /> <%= gettext ( "Light" ) %>
409
- </ button >
410
-
411
- < button class = "btn btn-sm text-sm normal-case " data-set-theme = "dark " >
412
- < . icon name = "hero-moon " class = "mr-1 inline-block h-4 w-4 " /> <%= gettext ( "Dark" ) %>
413
- </ button >
414
- </ div >
415
- </ div >
416
-
417
- < . link
418
- href = "https://github.com/Flo0807/share-a-secret "
419
- target = "_blank "
420
- aria-label = { gettext ( "GitHub" ) }
421
- >
422
- < span class = "btn btn-ghost " >
423
- < . github_icon class = "inline-block h-6 w-6 fill-current " />
388
+ < nav class = "navbar border-base-200/50 border-b " >
389
+ < div class = "mx-auto flex w-full max-w-7xl justify-between px-2 " >
390
+ < div class = "" >
391
+ < . link href = { ~p" /" } aria-label = { gettext ( "Homepage" ) } >
392
+ < span class = "btn btn-ghost flex items-center space-x-1 normal-case " >
393
+ < . logo_icon class = "inline-block h-6 w-auto fill-current " />
394
+ < p class = "hidden text-xl sm:block " > Share a Secret</ p >
424
395
</ span >
425
396
</ . link >
397
+ </ div >
398
+
399
+ < div class = "flex-none " >
400
+ < div class = "menu menu-horizontal items-center " >
401
+ < div class = "dropdown dropdown-end " >
402
+ < label tabindex = "0 " class = "btn btn-ghost text-sm normal-case " >
403
+ <%= gettext ( "Theme" ) %> < . icon name = "hero-chevron-down " class = "h-4 w-4 " />
404
+ </ label >
405
+ < div
406
+ tabindex = "0 "
407
+ class = "dropdown-content z-[1] menu bg-base-200 rounded-box w-32 p-2 shadow "
408
+ >
409
+ < button class = "btn btn-sm mb-1 text-sm normal-case " data-set-theme = "light " >
410
+ < . icon name = "hero-sun " class = "mr-1 inline-block h-4 w-4 " /> <%= gettext ( "Light" ) %>
411
+ </ button >
412
+
413
+ < button class = "btn btn-sm text-sm normal-case " data-set-theme = "dark " >
414
+ < . icon name = "hero-moon " class = "mr-1 inline-block h-4 w-4 " /> <%= gettext ( "Dark" ) %>
415
+ </ button >
416
+ </ div >
417
+ </ div >
426
418
427
- < button
428
- class = "btn btn-ghost "
429
- aria-label = { gettext ( "More information" ) }
430
- onclick = "information_modal.showModal() "
431
- >
432
- < . icon name = "hero-information-circle " class = "h-6 w-6 " />
433
- </ button >
419
+ < . link
420
+ href = "https://github.com/Flo0807/share-a-secret "
421
+ target = "_blank "
422
+ aria-label = { gettext ( "GitHub" ) }
423
+ >
424
+ < span class = "btn btn-ghost " >
425
+ < . github_icon class = "inline-block h-6 w-6 fill-current " />
426
+ </ span >
427
+ </ . link >
428
+
429
+ < button
430
+ class = "btn btn-ghost "
431
+ aria-label = { gettext ( "More information" ) }
432
+ onclick = "information_modal.showModal() "
433
+ >
434
+ < . icon name = "hero-information-circle " class = "h-6 w-6 " />
435
+ </ button >
436
+ </ div >
434
437
</ div >
435
438
</ div >
436
439
</ nav >
0 commit comments