Add clear button
This commit is contained in:
parent
ba47770c32
commit
ac765e5646
1 changed files with 21 additions and 6 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue