Skip to content

Commit

Permalink
refactor: shape components (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored Jan 17, 2023
1 parent 3e30fe5 commit 108d429
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
12 changes: 7 additions & 5 deletions resources/views/shapes/line.blade.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
@props([
'colorClass' => 'bg-theme-secondary-200 dark:bg-theme-secondary-900',
'sizeClass' => 'w-full h-3',
'roundedClass' => 'rounded-xl',
'colorClass' => 'bg-theme-secondary-200 dark:bg-theme-secondary-800',
'sizeClass' => 'w-full h-5',
'roundedClass' => 'rounded',
'pulse' => false,
])

<div>
<div @class([
<div {{ $attributes->class([
$colorClass,
$sizeClass,
$roundedClass,
])></div>
'animate-pulse' => $pulse,
]) }}></div>
</div>
12 changes: 8 additions & 4 deletions resources/views/shapes/square.blade.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
@props([
'colorClass' => 'bg-theme-secondary-200 dark:bg-theme-secondary-900',
'colorClass' => 'bg-theme-secondary-200 dark:bg-theme-secondary-800',
'sizeClass' => 'w-20 h-20',
'roundedClass' => 'rounded-xl',
'roundedClass' => 'rounded',
'pulse' => false,
])

<div>
<div @class([
<div {{ $attributes->class([
$colorClass,
$sizeClass,
$roundedClass,
])></div>
'animate-pulse' => $pulse,
]) }}>
{{ $slot }}
</div>
</div>

0 comments on commit 108d429

Please sign in to comment.