generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 57
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 #85 from ArielMejiaDev/fix/image-directive
adding a fix to support variables as params
- Loading branch information
Showing
7 changed files
with
142 additions
and
24 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
33 changes: 33 additions & 0 deletions
33
...ench/resources/views/blade-directives/image-header-using-a-static-relative-path.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<style> | ||
.header { | ||
font-size: 12px; | ||
margin: 0 auto; | ||
} | ||
.header figure { | ||
margin-top: 10px; | ||
} | ||
.header div { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.header figure img { | ||
height: 40px; | ||
width: 40px; | ||
} | ||
</style> | ||
|
||
@php | ||
$logo = \Orchestra\Testbench\workbench_path('public/assets/logo.png'); | ||
@endphp | ||
|
||
<div class="header"> | ||
<div> | ||
<h1>Another Header</h1> | ||
<figure> | ||
@inlinedImage($logo) | ||
</figure> | ||
</div> | ||
</div> |
29 changes: 29 additions & 0 deletions
29
workbench/resources/views/blade-directives/image-header-using-a-variable.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<style> | ||
.header { | ||
font-size: 12px; | ||
margin: 0 auto; | ||
} | ||
.header figure { | ||
margin-top: 10px; | ||
} | ||
.header div { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.header figure img { | ||
height: 40px; | ||
width: 40px; | ||
} | ||
</style> | ||
|
||
<div class="header"> | ||
<div> | ||
<h1>Another Header</h1> | ||
<figure> | ||
@inlinedImage($logo) | ||
</figure> | ||
</div> | ||
</div> |