-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for banner + article link
- Loading branch information
Showing
19 changed files
with
212 additions
and
88 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
6 changes: 4 additions & 2 deletions
6
...s/front/pages/docs/banners/crud.blade.php → ...s/views/components/banners/crud.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,7 +1,9 @@ | ||
<x-docs-banner | ||
<x-banner | ||
icon="icons/far-graduation-cap" | ||
color="purple" | ||
title="Laravel beyond CRUD" | ||
description="Check out our course on Laravel development for large apps" | ||
href="https://laravel-beyond-crud.com?ref=spatie-docs" | ||
href="https://laravel-beyond-crud.com?ref={{ $ref ?? 'spatie-docs' }}" | ||
class="{{ $class ?? '' }}" | ||
thin="{{ $thin ?? false }}" | ||
/> |
6 changes: 4 additions & 2 deletions
6
...ges/docs/banners/event-sourcing.blade.php → ...mponents/banners/event-sourcing.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,7 +1,9 @@ | ||
<x-docs-banner | ||
<x-banner | ||
icon="icons/far-graduation-cap" | ||
color="pink" | ||
title="Event Sourcing in Laravel" | ||
description="Check out our course Event Sourcing" | ||
href="https://laravel-beyond-crud.com?ref=spatie-docs" | ||
href="https://laravel-beyond-crud.com?ref={{ $ref ?? 'spatie-docs' }}" | ||
class="{{ $class ?? '' }}" | ||
thin="{{ $thin ?? false }}" | ||
/> |
6 changes: 4 additions & 2 deletions
6
.../front/pages/docs/banners/flare.blade.php → .../views/components/banners/flare.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,7 +1,9 @@ | ||
<x-docs-banner | ||
<x-banner | ||
icon="icons/fas-caret-square-right" | ||
color="purple" | ||
title="Flare" | ||
description="An error tracker especially made for Laravel" | ||
href="https://flareapp.io?ref=spatie-docs" | ||
href="https://flareapp.io?ref={{ $ref ?? 'spatie-docs' }}" | ||
class="{{ $class ?? '' }}" | ||
thin="{{ $thin ?? false }}" | ||
/> |
6 changes: 4 additions & 2 deletions
6
...nt/pages/docs/banners/mailcoach.blade.php → ...ws/components/banners/mailcoach.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,7 +1,9 @@ | ||
<x-docs-banner | ||
<x-banner | ||
icon="icons/fas-caret-square-right" | ||
color="blue" | ||
title="Mailcoach" | ||
description="Check out our full-featured (self-hosted) email marketing solution" | ||
href="https://mailcoach.app?ref=spatie-docs" | ||
href="https://mailcoach.app?ref={{ $ref ?? 'spatie-docs' }}" | ||
class="{{ $class ?? '' }}" | ||
thin="{{ $thin ?? false }}" | ||
/> |
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,9 @@ | ||
<x-banner | ||
icon="icons/far-image" | ||
color="orange" | ||
title="Medialibrary.pro" | ||
description="UI components for the Media Library" | ||
href="https://medialibrary.pro?ref={{ $ref ?? 'spatie-docs' }}" | ||
class="{{ $class ?? '' }}" | ||
thin="{{ $thin ?? false }}" | ||
/> |
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,15 @@ | ||
@if(isset($repository) && $repository->slug === 'laravel-medialibrary') | ||
@include('components.banners.medialibrary') | ||
@elseif(isset($repository) && $repository->slug === 'laravel-event-sourcing') | ||
@include('components.banners.event-sourcing') | ||
@else | ||
@include(\Illuminate\Support\Arr::random([ | ||
'components.banners.medialibrary', | ||
'components.banners.crud', | ||
'components.banners.flare', | ||
'components.banners.mailcoach', | ||
'components.banners.ray', | ||
'components.banners.testingLaravel', | ||
'components.banners.writing-readable-php', | ||
])) | ||
@endif |
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,9 @@ | ||
<x-banner | ||
icon="icons/far-graduation-cap" | ||
color="orange-dark" | ||
title="Ray" | ||
description="Debug your applications faster" | ||
href="https://myray.app?ref={{ $ref ?? 'spatie-docs' }}" | ||
class="{{ $class ?? '' }}" | ||
thin="{{ $thin ?? false }}" | ||
/> |
6 changes: 4 additions & 2 deletions
6
...ges/docs/banners/testingLaravel.blade.php → ...mponents/banners/testingLaravel.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,7 +1,9 @@ | ||
<x-docs-banner | ||
<x-banner | ||
icon="icons/far-graduation-cap" | ||
color="pink" | ||
title="Testing Laravel" | ||
description="Learn how to write quality tests in Pest and PHPUnit in our video course" | ||
href="https://testing-laravel.com?ref=spatie-docs" | ||
href="https://testing-laravel.com?ref={{ $ref ?? 'spatie-docs' }}" | ||
class="{{ $class ?? '' }}" | ||
thin="{{ $thin ?? false }}" | ||
/> |
6 changes: 4 additions & 2 deletions
6
...cs/banners/writing-readable-php.blade.php → ...ts/banners/writing-readable-php.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,7 +1,9 @@ | ||
<x-docs-banner | ||
<x-banner | ||
icon="icons/far-graduation-cap" | ||
color="pink" | ||
title="Writing Readable PHP" | ||
description="Learn everything about maintainable code in our online course" | ||
href="https://writing-readable-php.com?ref=spatie-docs" | ||
href="https://writing-readable-php.com?ref={{ $ref ?? 'spatie-docs' }}" | ||
class="{{ $class ?? '' }}" | ||
thin="{{ $thin ?? false }}" | ||
/> |
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
7 changes: 0 additions & 7 deletions
7
resources/views/front/pages/docs/banners/medialibrary.blade.php
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
resources/views/front/pages/docs/banners/randomBanner.blade.php
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.