Skip to content

Commit

Permalink
Screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeWithDennis committed Jun 27, 2024
1 parent 6d5f3cd commit c4f99db
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 13 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,10 @@ SimpleAlertEntry::make()
->linkBlank(),
```

### Screenshots
### Screenshot

![success](resources/screenshots/success.png)
![danger](resources/screenshots/danger.png)
![info](resources/screenshots/info.png)
![warning](resources/screenshots/warning.png)
![info](resources/screenshots/info-with-link.png)
![light](resources/screenshots/light.png)
![dark](resources/screenshots/dark.png)

## Contributing

Expand Down
Binary file removed resources/screenshots/danger.png
Binary file not shown.
Binary file added resources/screenshots/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resources/screenshots/info-with-link.png
Binary file not shown.
Binary file removed resources/screenshots/info.png
Binary file not shown.
Binary file added resources/screenshots/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed resources/screenshots/success.png
Binary file not shown.
Binary file removed resources/screenshots/warning.png
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
use Filament\Support\Facades\FilamentAsset;use function Filament\Support\get_color_css_variables;
$colors = \Illuminate\Support\Arr::toCssStyles([
get_color_css_variables($getType(), shades: [50, 400, 600, 700, 800]),
get_color_css_variables($getType(), shades: [50, 400, 500, 600, 700, 800]),
]);
@endphp

<x-dynamic-component :component="$getEntryWrapperView()" :entry="$entry">
<div class="filament-simple-alert rounded-md bg-custom-50 p-4" style="{{ $colors }}">
<div class="filament-simple-alert rounded-md bg-custom-50 p-4 dark:bg-gray-900 dark:ring-white/10" style="{{ $colors }}">
<div class="flex">
@if($getIcon())
<div class="flex-shrink-0 self-center">
Expand All @@ -19,16 +19,16 @@ class="h-5 w-5 h-5 w-5 text-custom-400"
@endif
<div class="ml-3 flex-1 md:flex md:justify-between">
<div>
<p class="text-sm font-medium text-custom-800">
<p class="text-sm font-medium text-custom-800 dark:text-white">
{!! $getTitle() !!}
</p>
<p class="text-sm text-custom-700">
<p class="text-sm text-custom-700 dark:text-white">
{!! $getDescription() !!}
</p>
</div>
@if($getLink())
<p class="mt-3 text-sm md:ml-6 md:mt-0 self-center">
<a href="{{ $getLink() }}" {{ $getBlank() ? 'target="_blank"' : '' }} class="whitespace-nowrap font-medium text-custom-700 hover:text-custom-600">
<a href="{{ $getLink() }}" {{ $getBlank() ? 'target="_blank"' : '' }} class="whitespace-nowrap font-medium text-custom-400 hover:text-custom-500">
{{ $getLinkLabel() }}
<span aria-hidden="true"> &rarr;</span>
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use Closure;
use Filament\Infolists\Components\Entry;

class SimpleAlert extends Entry
class SimpleAlertEntry extends Entry
{
protected string $view = 'filament-simple-alert::simple-alert-entry';
protected string $view = 'filament-simple-alert::simple-alert';

protected string $type = 'gray';

Expand Down

0 comments on commit c4f99db

Please sign in to comment.