Add clear button

This commit is contained in:
myrmidex 2026-08-23 14:51:56 +02:00
parent ba47770c32
commit ac765e5646

View file

@ -43,12 +43,27 @@ class="w-full bg-black border-red-500 text-red-400 focus:border-red-300 font-mon
<p class="text-red-400 font-mono text-xs">{{ $message }}</p> <p class="text-red-400 font-mono text-xs">{{ $message }}</p>
@enderror @enderror
<button <div class="flex gap-3">
type="submit" <button
class="w-full bg-black hover:bg-red-500 text-red-400 hover:text-black font-mono text-sm font-bold border-red-500 rounded-none border-2 uppercase tracking-wider transition-all glow-red cursor-pointer px-4 py-2" type="submit"
> @class([
[FIND WORDS] 'bg-black hover:bg-red-500 text-red-400 hover:text-black font-mono text-sm font-bold border-red-500 rounded-none border-2 uppercase tracking-wider transition-all glow-red cursor-pointer px-4 py-2',
</button> 'w-2/3' => isset($matches),
'w-full' => ! isset($matches),
])
>
[FIND WORDS]
</button>
@isset($matches)
<a
href="{{ route('home') }}"
class="w-1/3 inline-flex items-center justify-center bg-black hover:bg-red-950 text-red-400/60 hover:text-red-400 font-mono text-sm font-bold border-red-500/40 hover:border-red-500 rounded-none border-2 uppercase tracking-wider transition-all px-4 py-2"
>
[CLEAR]
</a>
@endisset
</div>
</form> </form>
@isset($matches) @isset($matches)