Initial commit: Laravel 13 base with Livewire 4, Flux UI and MySQL
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>{{ $title ?? config('app.name') }}</title>
|
||||
|
||||
<link rel="preconnect" href="https://fonts.bunny.net">
|
||||
<link href="https://fonts.bunny.net/css?family=inter:400,500,600&display=swap" rel="stylesheet" />
|
||||
|
||||
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
||||
|
||||
@livewireStyles
|
||||
@fluxAppearance
|
||||
</head>
|
||||
<body class="min-h-screen bg-white antialiased dark:bg-zinc-800">
|
||||
{{ $slot }}
|
||||
|
||||
@livewireScripts
|
||||
@fluxScripts
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
use Livewire\Attributes\Title;
|
||||
use Livewire\Component;
|
||||
|
||||
new #[Title('Toiminnanohjaus')] class extends Component
|
||||
{
|
||||
public int $clickCount = 0;
|
||||
|
||||
public function incrementClickCount(): void
|
||||
{
|
||||
$this->clickCount++;
|
||||
}
|
||||
};
|
||||
?>
|
||||
|
||||
<div class="mx-auto max-w-xl space-y-6 p-6">
|
||||
<flux:heading size="xl" level="1">Toiminnanohjaus</flux:heading>
|
||||
|
||||
<flux:text>Livewire ja Flux UI toimivat. Tämä on väliaikainen kokeilusivu.</flux:text>
|
||||
|
||||
<flux:button variant="primary" icon="plus" wire:click="incrementClickCount">
|
||||
Klikattu {{ $clickCount }} kertaa
|
||||
</flux:button>
|
||||
</div>
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user