@@ -521,27 +521,41 @@ defmodule YearbookWeb.CoreComponents do
521521 phx-mounted = { @ show && show_modal ( @ id ) }
522522 phx-remove = { hide_modal ( @ id ) }
523523 data-cancel = { JS . exec ( @ on_cancel , "phx-remove" ) |> hide_modal ( @ id ) }
524- class = "relative z-60 hidden "
524+ class = "relative z-50 hidden "
525525 >
526526 < div
527527 id = { "#{ @ id } -bg" }
528- class = "bg-black/60 backdrop-blur-sm fixed inset-0 transition-opacity "
529- aria-hidden = "true "
528+ class = "fixed inset-0 bg-black/50 backdrop-blur-md transition-opacity "
530529 />
531- < div class = "fixed inset-0 overflow-y-auto " >
532- < div class = "flex min-h-full items-center justify-center p-4 " >
533- < div
534- id = { "#{ @ id } -container" }
535- phx-click-away = { JS . exec ( "data-cancel" , to: "##{ @ id } " ) }
536- class = "relative bg-white rounded-xl max-w-sm w-full shadow-2xl p-8 text-center transition "
530+
531+ < div class = "fixed inset-0 flex min-h-full items-start justify-center overflow-y-auto px-4 py-6 sm:items-center sm:py-10 " >
532+ < div
533+ id = { "#{ @ id } -container" }
534+ phx-click-away = { JS . exec ( "data-cancel" , to: "##{ @ id } " ) }
535+ class = "
536+ relative w-full max-w-2xl
537+ bg-white rounded-3xl
538+ shadow-[0_20px_60px_rgba(0,0,0,0.15)]
539+ border border-gray-100
540+ p-6 sm:p-10
541+
542+ animate-in fade-in zoom-in-95 duration-200
543+ "
544+ >
545+ < button
546+ phx-click = { JS . exec ( "data-cancel" , to: "##{ @ id } " ) }
547+ class = "
548+ absolute top-5 right-5
549+ w-9 h-9 flex items-center justify-center
550+ text-gray-500 hover:text-gray-700
551+ transition-all focus:outline-none
552+ cursor-pointer
553+ "
537554 >
538- < button
539- phx-click = { JS . exec ( "data-cancel" , to: "##{ @ id } " ) }
540- class = "absolute top-4 right-4 text-gray-400 hover:text-gray-600 transition-colors cursor-pointer "
541- >
542- < . icon name = "hero-x-mark " class = "size-5 " />
543- </ button >
555+ < . icon name = "hero-x-mark " class = "size-5 " />
556+ </ button >
544557
558+ < div class = "text-left " >
545559 { render_slot ( @ inner_block ) }
546560 </ div >
547561 </ div >
0 commit comments