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

-16
This file was deleted.

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

-16
This file was deleted.

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

-16
This file was deleted.

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

-16
This file was deleted.

app/View/Components/Forms/Label.php

-16
This file was deleted.

resources/css/app.css

+3
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

+6-6
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

+2
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

+8-1
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

+2
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 }}"

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

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@props(['name', 'id' => null, 'rows' => 3])
2+
13
<div class="relative">
24
<textarea
35
name="{{ $name }}"

resources/views/layouts/base.blade.php

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
@include('layouts._social')
3434
@include('layouts._fathom')
3535

36+
@fluxAppearance
3637
@livewireStyles
3738
</head>
3839

@@ -49,6 +50,7 @@
4950

5051
@vite(['resources/js/app.js'])
5152

53+
@fluxScripts
5254
@livewireScripts
5355

5456
</body>

0 commit comments

Comments
 (0)