mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-14 07:27:47 +00:00
feat: add example receipt Pollen Forecast (EU)
This commit is contained in:
parent
c069db219a
commit
725843dec0
3 changed files with 251 additions and 0 deletions
50
resources/views/flux/icon/flower.blade.php
Normal file
50
resources/views/flux/icon/flower.blade.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{{-- Credit: Lucide (https://lucide.dev) --}}
|
||||
|
||||
@props([
|
||||
'variant' => 'outline',
|
||||
])
|
||||
|
||||
@php
|
||||
if ($variant === 'solid') {
|
||||
throw new \Exception('The "solid" variant is not supported in Lucide.');
|
||||
}
|
||||
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
|
||||
$strokeWidth = match ($variant) {
|
||||
'outline' => 2,
|
||||
'mini' => 2.25,
|
||||
'micro' => 2.5,
|
||||
};
|
||||
@endphp
|
||||
|
||||
<svg
|
||||
{{ $attributes->class($classes) }}
|
||||
data-flux-icon
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
stroke-width="{{ $strokeWidth }}"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
aria-hidden="true"
|
||||
data-slot="icon"
|
||||
>
|
||||
<circle cx="12" cy="12" r="3" />
|
||||
<path d="M12 16.5A4.5 4.5 0 1 1 7.5 12 4.5 4.5 0 1 1 12 7.5a4.5 4.5 0 1 1 4.5 4.5 4.5 4.5 0 1 1-4.5 4.5" />
|
||||
<path d="M12 7.5V9" />
|
||||
<path d="M7.5 12H9" />
|
||||
<path d="M16.5 12H15" />
|
||||
<path d="M12 16.5V15" />
|
||||
<path d="m8 8 1.88 1.88" />
|
||||
<path d="M14.12 9.88 16 8" />
|
||||
<path d="m8 16 1.88-1.88" />
|
||||
<path d="M14.12 14.12 16 16" />
|
||||
</svg>
|
||||
Loading…
Add table
Add a link
Reference in a new issue