Update language selector modal design

This commit is contained in:
2026-05-23 11:00:18 +02:00
parent 900103e1c2
commit 0d4545c2ab

View File

@@ -1,18 +1,45 @@
<!--Verically centered modal--> <div
<div data-te-modal-init data-te-modal-init
class="fixed left-0 top-0 z-[1055] hidden h-full w-full overflow-y-auto overflow-x-hidden outline-none" id="modalLanguage"
id="modalLanguage" tabindex="-1" aria-modal="true" role="dialog"> tabindex="-1"
<div data-te-modal-dialog-ref aria-labelledby="modalLanguage"
class="pointer-events-none relative flex min-h-[calc(100%-1rem)] w-auto translate-y-[-50px] items-center opacity-0 transition-all duration-300 ease-in-out min-[576px]:mx-auto min-[576px]:mt-7 min-[576px]:min-h-[calc(100%-3.5rem)] min-[576px]:max-w-[90%] md:min-[576px]:max-w-[80%] lg:min-[576px]:max-w-[60%] xl:min-[576px]:max-w-[40%] 2xl:min-[576px]:max-w-[20%]"> aria-modal="true"
<div role="dialog"
class="pointer-events-auto relative flex w-full flex-col rounded-md border-none bg-white bg-clip-padding text-current shadow-lg outline-none dark:bg-neutral-800"> class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
<x-modal-header :title="__('Language')" /> >
<div data-te-modal-dialog-ref class="flex min-h-screen items-center justify-center p-4">
<div class="relative w-full max-w-2xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900">
<!-- Header -->
<div class="sticky top-0 z-10 flex items-center justify-between border-b border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
<div>
<h2
id="modalGenresLabel"
class="text-xl font-semibold text-neutral-900 dark:text-white"
>
Language
</h2>
<p class="mt-1 text-sm text-neutral-500 dark:text-neutral-400">
Select your preffered language of the website.
</p>
</div>
<button
type="button"
data-te-modal-dismiss
wire:click="revertFilters"
class="rounded-lg p-2 text-neutral-500 transition hover:bg-neutral-100 hover:text-black dark:hover:bg-neutral-800 dark:hover:text-white"
>
</button>
</div>
<!--Modal body--> <!--Modal body-->
<div class="relative p-4"> <div class="relative p-4">
<form method="POST" action="{{ route('update.language') }}"> <form method="POST" action="{{ route('update.language') }}">
@csrf @csrf
<div class="pb-6">
<label class="mb-2 leading-tight text-gray-800 dark:text-gray-200 w-full" for="language">Select <label class="mb-2 leading-tight text-gray-800 dark:text-gray-200 w-full" for="language">Select
Language:</label> Language:</label>
<select name="language" id="language" <select name="language" id="language"
@@ -27,16 +54,20 @@
Français (fr) Français (fr)
</option> </option>
</select> </select>
</div>
<div class="flex flex-shrink-0 flex-wrap items-center justify-end rounded-b-md p-4"> <div class="sticky bottom-0 flex items-center justify-end gap-3 border-t border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
<button type="button" <button
class="inline-block rounded bg-primary-100 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-primary-700 transition duration-150 ease-in-out hover:bg-primary-accent-100 focus:bg-primary-accent-100 focus:outline-none focus:ring-0 active:bg-primary-accent-200" type="button"
data-te-modal-dismiss data-te-ripple-init data-te-ripple-color="light"> data-te-modal-dismiss
class="rounded-xl border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100 dark:border-neutral-600 dark:text-neutral-200 dark:hover:bg-neutral-800"
>
Cancel Cancel
</button> </button>
<button type="submit" <button
class="ml-1 inline-block rounded bg-rose-600 px-6 pb-2 pt-2.5 text-xs font-medium uppercase leading-normal text-white transition duration-150 ease-in-out hover:bg-rose-700 focus:bg-rose-600" type="submit"
data-te-ripple-init data-te-ripple-color="light"> class="rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
>
Apply Apply
</button> </button>
</div> </div>