-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added a new error layout - Updated Tailwind Css config
- Loading branch information
1 parent
510d9bb
commit 358c0c8
Showing
4 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace App\View\Components; | ||
|
||
use Illuminate\Contracts\Foundation\Application; | ||
use Illuminate\Contracts\View\Factory; | ||
use Illuminate\Contracts\View\View; | ||
use Illuminate\View\Component; | ||
|
||
class ErrorLayout extends Component | ||
{ | ||
/** | ||
* Get the view / contents that represents the component. | ||
* | ||
* @return Application|Factory|View | ||
*/ | ||
public function render() | ||
{ | ||
return view('layouts.error'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
{{ $meta ?? '' }} | ||
|
||
@if (empty($title)) | ||
<title>{{ config('app.name') }}</title> | ||
@else | ||
<title>{{ $title . ' - ' . config('app.name') }}</title> | ||
@endif | ||
|
||
<!-- Favicon --> | ||
<link rel="shortcut icon" href="{{ url(asset('favicon.ico')) }}"> | ||
|
||
<!-- Fonts --> | ||
<link rel="stylesheet" href="https://rsms.me/inter/inter.css"> | ||
|
||
<!-- Styles --> | ||
<link rel="stylesheet" href="{{ url(mix('css/app.css')) }}"> | ||
@livewireStyles | ||
|
||
<!-- Scripts --> | ||
<script src="{{ url(mix('js/app.js')) }}" defer></script> | ||
|
||
<!-- CSRF Token --> | ||
<meta name="csrf-token" content="{{ csrf_token() }}"> | ||
</head> | ||
|
||
<body class="bg-white dark:bg-black"> | ||
{{ $slot }} | ||
|
||
@livewireScripts | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters