From 1a138e86dc9db82e94e35d41fe830cce44b11af9 Mon Sep 17 00:00:00 2001 From: sundayenglish Date: Mon, 23 Jun 2025 14:17:21 +0700 Subject: [PATCH] Add Feature Livewire and Taiwindcss --- resources/views/layouts/app.blade.php | 5 ++--- resources/views/livewire/auth/login.blade.php | 19 ++++++++++++++----- tailwind.config.js | 18 ++++++++++-------- 3 files changed, 26 insertions(+), 16 deletions(-) diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 7a6f278..b2c6f4e 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -5,13 +5,12 @@ Đăng nhập hệ thống - + @vite('resources/css/app.css') @livewireStyles - +
{{ $slot }}
diff --git a/resources/views/livewire/auth/login.blade.php b/resources/views/livewire/auth/login.blade.php index 8b7bc40..bb01f7e 100644 --- a/resources/views/livewire/auth/login.blade.php +++ b/resources/views/livewire/auth/login.blade.php @@ -1,4 +1,4 @@ -
+
Logo
@@ -6,30 +6,39 @@

Đăng nhập hệ thống

+
+ class="mt-1 block w-full rounded-md border border-gray-300 shadow-sm py-2 px-3 + focus:ring-indigo-500 focus:border-indigo-500"> @error('email')
{{ $message }}
@enderror
+
+ class="mt-1 block w-full rounded-md border border-gray-300 shadow-sm py-2 px-3 + focus:ring-indigo-500 focus:border-indigo-500"> @error('password')
{{ $message }}
@enderror
+
- +
-
diff --git a/tailwind.config.js b/tailwind.config.js index 4a76dc7..96d6a13 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,10 +1,12 @@ module.exports = { - content: [ - "./resources/**/*.blade.php", - "./resources/**/*.js", - ], - theme: { - extend: {}, - }, - plugins: [], + content: [ + "./resources/**/*.blade.php", + "./resources/**/*.js", + "./resources/**/*.vue", + "./app/Http/Livewire/**/*.php", + ], + theme: { + extend: {}, + }, + plugins: [], };