Skip to content

Commit ef73b49

Browse files
committed
Update component style
1 parent 4e91c77 commit ef73b49

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

resources/views/components/input-text.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,24 @@ class="text-[0.9375rem]/4.5 relative flex w-full flex-col gap-1.5 font-medium te
99
<input
1010
type="{{ $type ?? 'text' }}"
1111
autocomplete="off"
12-
{{ $attributes->twMerge('rounded-xs border border-[#5e6e754d] bg-[#ffffff73] px-2.5 py-1.5 text-sm/5 focus:border-[#c8b96ea6] focus:bg-[#ffffffb3] focus:outline-none') }}
12+
{{ $attributes->twMerge('rounded-xs inset-ring inset-ring-[#5e6e754d] focus:inset-ring-[#c8b96ea6] bg-[#ffffff73] px-3 py-2 text-sm/5 font-normal read-only:cursor-not-allowed focus:bg-[#ffffffb3] focus:outline-none') }}
1313
/>
1414

1515
{{ $slot }}
1616
@else
1717
<input
1818
:type="showPassword ? 'text' : 'password'"
1919
autocomplete="off"
20-
{{ $attributes->twMerge('rounded-xs border border-[#5e6e754d] bg-[#ffffff73] pl-2.5 pr-8 py-1.5 text-sm/5 focus:border-[#c8b96ea6] focus:bg-[#ffffffb3] focus:outline-none') }}
20+
{{ $attributes->twMerge('rounded-xs inset-ring inset-ring-[#5e6e754d] focus:inset-ring-[#c8b96ea6] bg-[#ffffff73] py-2 pl-3 pr-9 text-sm/5 font-normal read-only:cursor-not-allowed focus:bg-[#ffffffb3] focus:outline-none') }}
2121
/>
2222

2323
<button
2424
type="button"
25-
class="inset-e-0 p-2.25 absolute top-6 flex shrink-0 cursor-pointer"
25+
class="inset-e-0 absolute top-6 flex shrink-0 cursor-pointer p-2.5"
2626
x-on:click="showPassword = !showPassword"
2727
>
2828
<span
29-
class="size-4 text-zinc-700"
29+
class="size-4 text-[#3d3530]"
3030
:class="showPassword ? 'icon-[heroicons--eye-20-solid]' : 'icon-[heroicons--eye-slash-20-solid]'"
3131
>
3232
</span>
Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
1-
@props(['name', 'url', 'email'])
2-
31
<div class="flex flex-row items-center justify-between gap-4">
42
<div class="flex flex-col">
53
<div class="text-[0.9375rem]/4.5 font-semibold">
64
{{ $name }}
75
</div>
86

9-
<div class="break-all text-sm/4 text-zinc-700">
7+
<div class="break-all text-sm/4">
108
{{ $email }}
119
</div>
1210
</div>
1311

14-
<a
15-
href="{{ $url }}"
16-
class="rounded-xs h-7 min-w-16 bg-[#3d3530e6] px-2.5 py-1.5 text-center text-xs/4 capitalize text-[#f0ede8] transition-colors duration-300 hover:bg-[#3d3530]"
17-
{{ $attributes }}
18-
>
19-
{{ $slot }}
20-
</a>
12+
@if (isset($url))
13+
<a
14+
href="{{ $url }}"
15+
class="rounded-xs w-full max-w-24 bg-[#3d3530e6] px-3 py-2 text-center text-sm/4 capitalize text-[#f0ede8] transition-colors duration-300 hover:bg-[#3d3530]"
16+
{{ $attributes }}
17+
>
18+
{{ $slot }}
19+
</a>
20+
@else
21+
<button
22+
type="button"
23+
class="rounded-xs w-full max-w-24 bg-[#3d3530e6] px-3 py-2 text-center text-sm/4 capitalize text-[#f0ede8] transition-colors duration-300 hover:bg-[#3d3530] disabled:bg-[#3d3530cc] disabled:hover:bg-[#3d3530cc]"
24+
@if ($email == '-') disabled @endif
25+
{{ $attributes }}
26+
>
27+
{{ $slot }}
28+
</button>
29+
@endif
2130
</div>

0 commit comments

Comments
 (0)