Skip to content

Commit 643a131

Browse files
committed
wip
1 parent 12569a1 commit 643a131

File tree

12 files changed

+25
-87
lines changed

12 files changed

+25
-87
lines changed

app/View/Components/Forms/Inputs/Email.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

app/View/Components/Forms/Inputs/Input.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

app/View/Components/Forms/Inputs/Password.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

app/View/Components/Forms/Inputs/Textarea.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

app/View/Components/Forms/Label.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

resources/css/app.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import 'tailwindcss';
2+
@import '../../vendor/livewire/flux/dist/flux.css';
23

34
@import 'highlight.js/styles/hybrid.css' layer(base);
45

@@ -12,6 +13,8 @@
1213

1314
@config '../../tailwind.config.js';
1415

16+
@custom-variant dark (&:where(.dark, .dark *));
17+
1518
/*
1619
The default border color has changed to `currentcolor` in Tailwind CSS v4,
1720
so we've added these compatibility styles to make sure everything still

resources/views/components/avatar.blade.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
@endunless
99

1010
@if ($user->githubUsername())
11-
<x-buk-avatar
12-
:search="$user->githubUsername()"
13-
provider="github"
14-
:fallback="asset('https://laravel.io/images/laravelio-icon-gray.svg')"
15-
{{-- :alt="$user->name()" --}}
16-
{{ $attributes->merge(['class' => 'bg-gray-50 rounded-full']) }}
11+
<flux:avatar
12+
circle
13+
src="{{ sprintf('https://unavatar.io/github/%s?%s', $user->githubUsername(), http_build_query([
14+
'fallback' => asset('https://laravel.io/images/laravelio-icon-gray.svg'),
15+
])) }}"
16+
{{ $attributes->merge(['class' => 'bg-gray-50']) }}
1717
/>
1818
@else
1919
<img loading="lazy"

resources/views/components/forms/inputs/email.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@props(['name', 'value' => null])
2+
13
<x-forms.inputs.input
24
type="email"
35
name="{{ $name }}"

resources/views/components/forms/inputs/input.blade.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
@props([
2+
'name',
3+
'id' => null,
4+
'type' => 'text',
5+
'value' => null,
6+
])
7+
18
<div>
29
<div class="relative">
310
@if ($attributes->get('prefix-icon'))
@@ -10,7 +17,7 @@
1017
name="{{ $name }}"
1118
type="{{ $type }}"
1219
id="{{ $id }}"
13-
value="{{ $value ?: '' }}"
20+
value="{{ old($name, $value ?? '') }}"
1421
{{ $attributes->merge([
1522
'class' => 'block w-full border-gray-300 rounded-md focus:border-lio-300 focus:ring-3 focus:ring-lio-200 focus:ring-opacity-50 sm:text-sm sm:leading-5 mt-1' . ($attributes->get('prefix-icon') ? ' pl-10' : '') . ($errors->has($name) ? ' border-red-300 text-red-900 placeholder-red-300 focus:outline-hidden focus:ring-red-500 focus:border-red-500' : '')
1623
]) }}

resources/views/components/forms/inputs/password.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@props(['name'])
2+
13
<x-forms.inputs.input
24
type="password"
35
name="{{ $name }}"

0 commit comments

Comments
 (0)