-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from lara-zeus/hot-fix
Update HeadingWidget.blade.php
- Loading branch information
Showing
4 changed files
with
69 additions
and
8 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
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,55 @@ | ||
--- | ||
title: Themes and Assets | ||
weight: 6 | ||
--- | ||
|
||
## Compiling assets | ||
|
||
we use [tailwind Css](https://tailwindcss.com/) and custom themes by filament, make sure you are familiar with [tailwindcss configuration](https://tailwindcss.com/docs/configuration), and how to make custom [filament theme](https://filamentphp.com/docs/2.x/admin/appearance#building-themes). | ||
|
||
### Custom Classes: | ||
|
||
You need to add these files to your `tailwind.config.js` file in the `content` section. | ||
|
||
* frontend: | ||
|
||
```js | ||
content: [ | ||
//... | ||
'./vendor/lara-zeus/dynamic-dashboard/resources/views/themes/**/*.blade.php', | ||
'./vendor/lara-zeus/dynamic-dashboard/src/Models/Columns.php', | ||
] | ||
``` | ||
|
||
* filament: | ||
|
||
```js | ||
content: [ | ||
//... | ||
'./vendor/lara-zeus/rain/resources/views/filament/**/*.blade.php', | ||
'./vendor/lara-zeus/rain/src/Models/Columns.php', | ||
] | ||
``` | ||
|
||
### Customizing the Frontend Views | ||
|
||
first, publish the config file: | ||
|
||
```php | ||
php artisan vendor:publish --tag=zeus-config | ||
``` | ||
|
||
then change the default layout in the file `zeus.php`: | ||
|
||
```php | ||
'layout' => 'components.layouts.app', | ||
// this is assuming your layout on the folder `resources/views/components/layouts/app` | ||
``` | ||
this will give you full control for the assets files and the header and the footer. | ||
|
||
|
||
If needed, you can publish the blade views for all zeus packages: | ||
|
||
```php | ||
php artisan vendor:publish --tag=zeus-views | ||
``` |
8 changes: 7 additions & 1 deletion
8
resources/views/themes/zeus/dynamic-dashboard/widgets/HeadingWidget.blade.php
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
<div class="max-w-none p-4 prose lg:prose-xl prose-primary dark:prose-invert"> | ||
{!! str($data['content'])->markdown() !!} | ||
{!! | ||
(new \Illuminate\Support\HtmlString( | ||
str(strip_tags($data['content'])) | ||
->markdown() | ||
)) | ||
->toHtml() | ||
!!} | ||
</div> |