Migrate to HTMX (#114)

Dropped Livewire
Added HTMX
Added Blade code lint
Drop Mysql and Redis
Migrate to SQLite
This commit is contained in:
Saeed Vaziry
2024-03-06 17:02:59 +01:00
committed by GitHub
parent 5b2c419e91
commit b2083fc6b2
486 changed files with 8609 additions and 8707 deletions

View File

@ -1,12 +1,16 @@
@props(['active'])
@props([
"active",
])
@php
$class = 'flex w-full items-center justify-center rounded-md border-2 bg-primary-50 px-3 pt-3 pb-2 dark:bg-primary-500 dark:bg-opacity-10 cursor-pointer';
$classes = ($active ?? false)
? $class . ' border-primary-600'
: $class . ' border-primary-200 dark:border-primary-600 dark:border-opacity-20'
$class =
"flex w-full cursor-pointer items-center justify-center rounded-md border-2 bg-primary-50 px-3 pb-2 pt-3 dark:bg-primary-500 dark:bg-opacity-10";
$classes =
$active ?? false
? $class . " border-primary-600"
: $class . " border-primary-200 dark:border-primary-600 dark:border-opacity-20"
@endphp
<div {{ $attributes->merge(['class' => $classes]) }}>
<a {{ $attributes->merge(["class" => $classes]) }}>
{{ $slot }}
</div>
</a>