-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
1eed137
commit db6ec33
Showing
17 changed files
with
149 additions
and
277 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
10 changes: 5 additions & 5 deletions
10
...s/components/insights/list-item.blade.php → ...views/components/blog/list-item.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
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,47 +1,94 @@ | ||
<x-page title="Blog" background="/backgrounds/blogs.jpg"> | ||
<!-- @todo replace background --> | ||
|
||
@include('front.pages.blog.partials.menu') | ||
<x-page | ||
title="Insights" | ||
background="/backgrounds/blog-index.png" | ||
body-class="bg-oss-gray" | ||
main-class="font-pt text-oss-royal-blue font-medium text-18 leading-140 antialiased" | ||
> | ||
<header class="wrapper-lg mt-12"> | ||
<x-headers.h1 class="text-right text-white"> | ||
Blog | ||
</x-headers.h1> | ||
</header> | ||
|
||
@if($highlight) | ||
<article class="wrapper-lg flex flex-col sm:flex-row gap-8 sm:gap-16 mt-8"> | ||
<a href="{{ route('blog.show', $highlight->slug) }}" class="flex-shrink-0"> | ||
@if ($highlight->header_image) | ||
<img | ||
src="{{ $highlight->header_image }}" | ||
alt="{{ $highlight->title }}" | ||
class="w-[220px] h-[220px] sm:w-[440px] sm:h-[440px] object-cover rounded-8" | ||
> | ||
@else | ||
<div class="w-[220px] h-[220px] sm:w-[440px] sm:h-[440px] bg-oss-green-pale rounded-8"></div> | ||
@endif | ||
</a> | ||
<div class="sm:pt-24 flex flex-col gap-6 sm:gap-9"> | ||
<p class="flex items-center gap-3 text-sm"> | ||
<a href="{{ route('blog.show', $highlight->slug) }}" class="bg-oss-green-pale font-semibold rounded-8 px-2 py-1.5"> | ||
Latest post | ||
</a> | ||
<a href="{{ route('blog.show', $highlight->slug) }}"> | ||
<time datetime="{{ $highlight->date->format('Y-m-d') }}"> | ||
{{ $highlight->date->format('F d, Y') }} | ||
</time> | ||
</a> | ||
</p> | ||
<x-headers.h2> | ||
<a href="{{ route('blog.show', $highlight->slug) }}" class="hover:text-oss-spatie-blue"> | ||
{{ $highlight->title }} | ||
</a> | ||
</x-headers.h2> | ||
<div> | ||
{!! $highlight->summary !!} | ||
</div> | ||
</div> | ||
</article> | ||
<hr class="sm:hidden mx-3 my-16 h-px bg-oss-gray-medium"> | ||
@endif | ||
|
||
<section id="banner" class="banner" role="banner"> | ||
<div class="wrap"> | ||
<h1 class="banner-slogan"> | ||
Latest insights | ||
<br>of the team | ||
</h1> | ||
<p class="banner-intro"> | ||
A collection of articles on our personal blogs | ||
</p> | ||
@if($posts->isNotEmpty()) | ||
<div class="wrapper-lg mt-12 sm:mt-16 lg:mt-32"> | ||
<div class="grid sm:grid-cols-[1fr,2fr] gap-8"> | ||
<h2 class="hidden sm:block text-24 font-bold pt-9">More posts</h2> | ||
<div> | ||
@foreach($posts as $post) | ||
<x-blog.list-item :insight="$post" /> | ||
@if(!$loop->last) | ||
<hr class="sm:hidden h-px bg-oss-gray-medium"> | ||
@endif | ||
@endforeach | ||
@if ($posts->hasMorePages()) | ||
<a href="{{ route('blog.all') }}" wire:navigate.hover class="flex w-full items-center justify-center py-6 text-blue bg-link-card-light border border-gray/25 rounded"> | ||
View more | ||
</a> | ||
@endif | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
@endif | ||
|
||
<section class="section section-group"> | ||
<div class="wrap"> | ||
<div class="max-w-md grid gap-6"> | ||
@foreach ($posts as $post) | ||
<p class=""> | ||
<a class="link link-black link-underline" href="{{ $post->url }}" target="_blank" rel="noreferrer noopener"> | ||
<span class="title-sm">{{ $post->title }}</span> | ||
</a> | ||
@if($post->short_summary) | ||
<br /> | ||
<a class="link link-black no-underline" href="{{ $post->url }}" target="_blank" rel="noreferrer noopener"> | ||
{{ $post->short_summary }} | ||
<div class="wrapper-lg my-16"> | ||
<livewire:newsletter /> | ||
</div> | ||
|
||
@isset($externalFeedItems) | ||
<div class="wrapper-lg mt-24 mb-20"> | ||
<div class="grid sm:grid-cols-[1fr,2fr] gap-8"> | ||
<h2 class="text-24 font-bold leading-snug text-center sm:text-left">From our team <br class="hidden sm:inline"> & products</h2> | ||
<div class="pt-1.5 grid gap-8"> | ||
@foreach($externalFeedItems as $externalFeedItem) | ||
@include('front.pages.blog.partials.externalFeedItem') | ||
@endforeach | ||
@if($externalFeedItems->hasMorePages()) | ||
<p class="pt-2"> | ||
<a href="{{ route('external-feed-items') }}" wire:navigate.hover class="flex w-full items-center justify-center py-4 text-blue bg-link-card-light border border-gray/25 rounded"> | ||
View more | ||
</a> | ||
@endif | ||
<br /> | ||
<span class="text-xs text-gray"> | ||
{{ $post->created_at->format('M jS Y') }} | ||
<span class="char-separator" >•</span> | ||
<a class="link-underline link-blue" href="{{ $post->url }}" target="_blank" rel="noreferrer noopener">{{ $post->website }}</a> | ||
</span> | ||
</p> | ||
@endforeach | ||
</div> | ||
<div class="mt-12"> | ||
{{ $posts->onEachSide(1)->links() }} | ||
</p> | ||
@endif | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
@endisset | ||
</x-page> |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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
13 changes: 13 additions & 0 deletions
13
resources/views/front/pages/home/partials/newsItem.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,13 @@ | ||
<p class="mt-4"> | ||
<a class="link link-black" href="{{ $url }}" @unless($website === 'spatie.be') target="_blank" rel="noreferrer noopener" @endunless> | ||
{{ $title }} | ||
</a> | ||
<br> | ||
<span class="text-xs text-gray"> | ||
{{ $date->format('M jS Y') }} | ||
<span class="char-separator">•</span> | ||
<a class="link-underline link-blue" href="{{ $url }}" @unless($website === 'spatie.be') target="_blank" rel="noreferrer noopener" @endunless> | ||
{{ $website }} | ||
</a> | ||
</span> | ||
</p> |
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
resources/views/front/pages/open-source/partials/insights.blade.php
This file was deleted.
Oops, something went wrong.
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