set up list management
This commit is contained in:
parent
0c42bef077
commit
73d6578857
26 changed files with 495 additions and 230 deletions
3
resources/views/components/ui/card.blade.php
Normal file
3
resources/views/components/ui/card.blade.php
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<div {{ $attributes->merge(['class' => 'bg-gray-800 p-5 flex flex-col gap-5 items-center rounded']) }}>
|
||||
{{ $slot }}
|
||||
</div>
|
||||
17
resources/views/components/ui/site-logo.blade.php
Normal file
17
resources/views/components/ui/site-logo.blade.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<div {{$attributes->merge(['class' => "relative -rotate-6 max-w-72 sm:max-w-96"])}}>
|
||||
<div class="p-2 bg-blue-700 border-2 border-amber-200 -rounded-lg"
|
||||
style="mask: radial-gradient(circle at left, transparent 10px, black 11px) top left / 51% 100% no-repeat,
|
||||
radial-gradient(circle at right, transparent 10px, black 11px) top right / 51% 100% no-repeat;">
|
||||
<div class="p-2 border-2 border-amber-200 m-2">
|
||||
<h1 class="font-bold font-arial text-2xl text-amber-200">Movie Night</h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Left Notch -->
|
||||
<div
|
||||
class="absolute top-1/2 left-0 -translate-x-1/2 -translate-y-1/2 w-6 h-6 rounded-full border-2 border-amber-200 pointer-events-none [clip-path:inset(0_0_0_50%)]"></div>
|
||||
|
||||
<!-- Right Notch-->
|
||||
<div
|
||||
class="absolute top-1/2 right-0 translate-x-1/2 -translate-y-1/2 w-6 h-6 rounded-full border-2 border-amber-200 pointer-events-none [clip-path:inset(0_50%_0_0)]"></div>
|
||||
</div>
|
||||
44
resources/views/components/ui/slide-over.blade.php
Normal file
44
resources/views/components/ui/slide-over.blade.php
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
@props(['model'])
|
||||
|
||||
<div x-data="{ open: @entangle($model) }" @keydown.escape.window="open = false">
|
||||
<!-- Overlay -->
|
||||
<div x-show="open"
|
||||
x-transition:enter="transition-opacity ease-linear duration-300"
|
||||
x-transition:enter-start="opacity-0"
|
||||
x-transition:enter-end="opacity-100"
|
||||
x-transition:leave="transition-opacity ease-linear duration-300"
|
||||
x-transition:leave-start="opacity-100"
|
||||
x-transition:leave-end="opacity-0"
|
||||
class="fixed inset-0 bg-gray-900/80 z-40"
|
||||
@click="open = false"></div>
|
||||
|
||||
<!-- Slide-over panel -->
|
||||
<div x-show="open"
|
||||
x-transition:enter="transform transition ease-in-out duration-500"
|
||||
x-transition:enter-start="translate-x-full"
|
||||
x-transition:enter-end="translate-x-0"
|
||||
x-transition:leave="transform transition ease-in-out duration-500"
|
||||
x-transition:leave-start="translate-x-0"
|
||||
x-transition:leave-end="translate-x-full"
|
||||
class="fixed inset-y-0 right-0 z-50 w-full sm:max-w-md bg-gray-800 shadow-xl">
|
||||
|
||||
<div class="flex h-full flex-col overflow-y-scroll">
|
||||
<!-- Close button -->
|
||||
<div class="px-4 py-6 sm:px-6">
|
||||
<button @click="open = false"
|
||||
type="button"
|
||||
class="rounded-md text-gray-400 hover:text-gray-500">
|
||||
<span class="sr-only">Close panel</span>
|
||||
<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Content -->
|
||||
<div class="flex-1 px-4 py-6 sm:px-6">
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue