-
-
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.
Merge pull request #402 from anodyne/public-story-pages
Updates for public story pages
- Loading branch information
Showing
37 changed files
with
3,339 additions
and
384 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
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
97 changes: 97 additions & 0 deletions
97
nova/resources/views/pages/pages/blocks/stories/timeline-preview.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,97 @@ | ||
<div @class([ | ||
'not-prose', | ||
'dark' => $dark, | ||
]) style="--bgColor: {{ $bgColor ?? 'transparent' }}"> | ||
<div class="mx-auto max-w-7xl bg-[--bgColor] px-8 py-8 font-[family-name:Flow_Circular]"> | ||
<x-timeline> | ||
<div> | ||
<x-timeline.item | ||
:last="false" | ||
:highlighted="false" | ||
class="bg-gray-400 ring-white dark:bg-gray-500 dark:ring-gray-900" | ||
> | ||
<x-slot name="title"> | ||
<div class="flex w-full items-center justify-between"> | ||
<div class="flex items-center gap-x-6"> | ||
<x-public::preview.h2>Story title</x-public::preview.h2> | ||
|
||
<x-badge color="gray">Status</x-badge> | ||
</div> | ||
</div> | ||
</x-slot> | ||
|
||
<div class="w-full"> | ||
<div | ||
class="prose max-w-4xl dark:prose-invert prose-a:text-primary-500 hover:prose-a:text-primary-600 dark:hover:prose-a:text-primary-400" | ||
> | ||
Excepteur Lorem irure sunt cupidatat commodo commodo qui anim id. Ullamco officia elit | ||
reprehenderit in dolore deserunt ea minim ex veniam Lorem do. Nisi fugiat Lorem eu voluptate | ||
consequat. Voluptate ex reprehenderit magna aute consequat anim. Laborum veniam veniam amet | ||
laborum eu duis amet amet Lorem nulla. | ||
</div> | ||
|
||
<div class="mt-8"> | ||
<x-public::preview.button href="#">Go to story →</x-public::preview.button> | ||
</div> | ||
</div> | ||
</x-timeline.item> | ||
</div> | ||
<div> | ||
<x-timeline.item :last="false" :highlighted="true" class="bg-primary-500 ring-primary-500"> | ||
<x-slot name="title"> | ||
<div class="flex w-full items-center justify-between"> | ||
<div class="flex items-center gap-x-6"> | ||
<x-public::preview.h2>Story title</x-public::preview.h2> | ||
|
||
<x-badge color="primary">Status</x-badge> | ||
</div> | ||
</div> | ||
</x-slot> | ||
|
||
<div class="w-full"> | ||
<div | ||
class="prose max-w-4xl dark:prose-invert prose-a:text-primary-500 hover:prose-a:text-primary-600 dark:hover:prose-a:text-primary-400" | ||
> | ||
Excepteur Lorem irure sunt cupidatat commodo commodo qui anim id. Ullamco officia elit | ||
reprehenderit in dolore deserunt ea minim ex veniam Lorem do. Nisi fugiat Lorem eu voluptate | ||
consequat. Voluptate ex reprehenderit magna aute consequat anim. Laborum veniam veniam amet | ||
laborum eu duis amet amet Lorem nulla. | ||
</div> | ||
|
||
<div class="mt-8"> | ||
<x-public::preview.button href="#">Go to story →</x-public::preview.button> | ||
</div> | ||
</div> | ||
</x-timeline.item> | ||
</div> | ||
<div> | ||
<x-timeline.item :last="true" :highlighted="false" class="bg-info-500 ring-white dark:ring-gray-900"> | ||
<x-slot name="title"> | ||
<div class="flex w-full items-center justify-between"> | ||
<div class="flex items-center gap-x-6"> | ||
<x-public::preview.h2>Story title</x-public::preview.h2> | ||
|
||
<x-badge color="info">Status</x-badge> | ||
</div> | ||
</div> | ||
</x-slot> | ||
|
||
<div class="w-full"> | ||
<div | ||
class="prose max-w-4xl dark:prose-invert prose-a:text-primary-500 hover:prose-a:text-primary-600 dark:hover:prose-a:text-primary-400" | ||
> | ||
Excepteur Lorem irure sunt cupidatat commodo commodo qui anim id. Ullamco officia elit | ||
reprehenderit in dolore deserunt ea minim ex veniam Lorem do. Nisi fugiat Lorem eu voluptate | ||
consequat. Voluptate ex reprehenderit magna aute consequat anim. Laborum veniam veniam amet | ||
laborum eu duis amet amet Lorem nulla. | ||
</div> | ||
|
||
<div class="mt-8"> | ||
<x-public::preview.button href="#">Go to story →</x-public::preview.button> | ||
</div> | ||
</div> | ||
</x-timeline.item> | ||
</div> | ||
</x-timeline> | ||
</div> | ||
</div> |
49 changes: 49 additions & 0 deletions
49
nova/resources/views/pages/pages/blocks/stories/timeline.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,49 @@ | ||
<div | ||
@class([ | ||
'@container', | ||
'nv-stories nv-stories-timeline', | ||
'dark' => $dark, | ||
]) | ||
style="--bgColor: {{ $bgColor ?? 'transparent' }}" | ||
> | ||
<x-public::block.wrapper | ||
:spacing-horizontal="$spacingHorizontal ?? null" | ||
:spacing-vertical="$spacingVertical ?? null" | ||
> | ||
<div | ||
@class([ | ||
'nv-stories-wrapper flex', | ||
'content-end justify-end' => $headerOrientation === 'right', | ||
]) | ||
> | ||
<div | ||
@class([ | ||
'nv-stories-intro max-w-2xl', | ||
'mx-auto @lg:text-center' => $headerOrientation === 'center', | ||
'@lg:text-right' => $headerOrientation === 'right', | ||
]) | ||
> | ||
@if (filled($heading)) | ||
<x-public::h1> | ||
{{ $heading }} | ||
</x-public::h1> | ||
@endif | ||
|
||
@if (filled($description)) | ||
<x-public::lead | ||
@class([ | ||
'mt-6' => filled($heading), | ||
]) | ||
markdown | ||
> | ||
{{ $description }} | ||
</x-public::lead> | ||
@endif | ||
</div> | ||
</div> | ||
|
||
<div class="mt-12"> | ||
<livewire:public-stories-timeline :sort-direction="$timelineSorting" /> | ||
</div> | ||
</x-public::block.wrapper> | ||
</div> |
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
Oops, something went wrong.