diff --git a/resources/css/app.css b/resources/css/app.css index 6665f1e..3473b92 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -94,3 +94,38 @@ .button-accent-outline { padding: 0.5rem 1rem; border-radius: 0.25rem; } + +/* Checkbox Styles */ +input[type="checkbox"] { + appearance: none; + -webkit-appearance: none; + width: 1rem; + height: 1rem; + background-color: var(--color-gray-600); + border: 1px solid var(--color-secondary); + border-radius: 0.25rem; + cursor: pointer; + position: relative; +} + +input[type="checkbox"]:checked { + background-color: var(--color-primary); + border-color: var(--color-primary); +} + +input[type="checkbox"]:checked::after { + content: ''; + position: absolute; + left: 4px; + top: 1px; + width: 5px; + height: 9px; + border: solid white; + border-width: 0 2px 2px 0; + transform: rotate(45deg); +} + +input[type="checkbox"]:focus { + outline: none; + box-shadow: 0 0 0 2px var(--color-accent-blue); +} diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 35a637d..15fb4e9 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -1,56 +1,37 @@ @extends('components.layouts.guest') @section('content') -

Login

- +

Sign in to your account

+
@csrf - -
- - - @error('email') - {{ $message }} - @enderror -
-
- - - @error('password') - {{ $message }} - @enderror -
+ -
- -
+ - + -
- - Don't have an account? Register here - + + Sign In + + +
+ Don't have an account? + Register
-@endsection \ No newline at end of file +@endsection diff --git a/resources/views/components/button.blade.php b/resources/views/components/button.blade.php new file mode 100644 index 0000000..c49e33c --- /dev/null +++ b/resources/views/components/button.blade.php @@ -0,0 +1,20 @@ +@props([ + 'variant' => 'primary', + 'type' => 'button', +]) + +@php + $baseClasses = 'px-4 py-2 rounded transition-colors duration-200 disabled:opacity-50'; + + $variantClasses = match($variant) { + 'primary' => 'bg-primary text-white hover:bg-secondary', + 'outline' => 'border-2 border-secondary text-gray-100 hover:bg-gray-700', + 'danger' => 'bg-danger text-white hover:bg-red-700', + 'danger-outline' => 'border-2 border-danger text-danger hover:bg-danger hover:text-white', + default => 'bg-secondary text-white hover:bg-secondary', + }; +@endphp + + diff --git a/resources/views/components/card.blade.php b/resources/views/components/card.blade.php new file mode 100644 index 0000000..6114e7f --- /dev/null +++ b/resources/views/components/card.blade.php @@ -0,0 +1,7 @@ +@props([ + 'padding' => true, +]) + +
merge(['class' => 'border-2 border-secondary rounded-lg bg-gray-650' . ($padding ? ' p-6' : '')]) }}> + {{ $slot }} +
diff --git a/resources/views/components/checkbox.blade.php b/resources/views/components/checkbox.blade.php new file mode 100644 index 0000000..985731b --- /dev/null +++ b/resources/views/components/checkbox.blade.php @@ -0,0 +1,17 @@ +@props([ + 'name', + 'label' => null, + 'checked' => false, +]) + +
+ +
diff --git a/resources/views/components/input.blade.php b/resources/views/components/input.blade.php new file mode 100644 index 0000000..576a4f3 --- /dev/null +++ b/resources/views/components/input.blade.php @@ -0,0 +1,28 @@ +@props([ + 'type' => 'text', + 'name', + 'label' => null, + 'placeholder' => '', + 'value' => null, + 'required' => false, + 'autofocus' => false, +]) + +
+ @if($label) + + @endif + + merge(['class' => 'w-full p-2 border rounded bg-gray-700 border-secondary text-gray-100 focus:bg-gray-900 focus:outline-none focus:border-accent-blue' . ($errors->has($name) ? ' border-red-500' : '')]) }}> + + @error($name) + {{ $message }} + @enderror +
diff --git a/resources/views/components/layouts/guest.blade.php b/resources/views/components/layouts/guest.blade.php index ca4cdd8..70c768a 100644 --- a/resources/views/components/layouts/guest.blade.php +++ b/resources/views/components/layouts/guest.blade.php @@ -12,15 +12,15 @@ @livewireStyles -
-
-
+
+
+

DISH PLANNER

-
+ @yield('content') -
+
diff --git a/resources/views/components/select.blade.php b/resources/views/components/select.blade.php new file mode 100644 index 0000000..604ab84 --- /dev/null +++ b/resources/views/components/select.blade.php @@ -0,0 +1,26 @@ +@props([ + 'name', + 'label' => null, + 'options' => [], + 'selected' => null, + 'required' => false, +]) + +
+ @if($label) + + @endif + + + + @error($name) + {{ $message }} + @enderror +
diff --git a/tailwind.config.js b/tailwind.config.js index a79934f..d4cfcca 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -30,6 +30,7 @@ export default { 400: '#444760', 500: '#2B2C41', 600: '#24263C', + 650: '#202239', 700: '#1D1E36', 800: '#131427', 900: '#0A0B1C',