1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/resources/views/tips/show.blade.php
Lars Klopstra 28555af28f wip
2021-04-07 18:57:18 +02:00

53 lines
2.3 KiB
PHP

<x:layout>
<div
class="fixed inset-0 z-40 items-center justify-between hidden w-full h-screen p-16 pointer-events-none lg:flex">
<a class="rounded-full shadow-md pointer-events-auto" href="#">
<div class="flex items-center justify-center w-16 h-16 bg-white rounded-full shadow-2xl">
<svg xmlns="http://www.w3.org/2000/svg" class="w-8 h-8 text-orange-500" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
</svg>
</div>
</a>
<a class="rounded-full shadow-md pointer-events-auto" href="#">
<div class="flex items-center justify-center w-16 h-16 bg-white rounded-full shadow-2xl">
<svg xmlns="http://www.w3.org/2000/svg" class="w-8 h-8 text-orange-500" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
</svg>
</div>
</a>
</div>
<main class="relative flex-1 py-24">
<div
class="absolute w-full transform skew-y-12 pointer-events-none h-72 md:h-96 -translate-y-1/4 bg-gradient-to-br from-yellow-300 to-pink-400 mix-blend-multiply">
</div>
<x:container>
<div class="flex flex-col items-center space-y-6 text-center md:space-y-12">
<div class="space-y-6 text-yellow-900">
<h1 class="text-3xl font-bold tracking-tighter md:text-5xl">{{ $tip->title }}</h1>
<x:socials />
</div>
@if ($tip->images())
@foreach ($tip->images() as $image)
<img class="shadow-xl rounded-xl backdrop-filter backdrop-blur-lg backdrop-saturate-125"
src="{{ $image->small() }}" alt="{{ $tip->title }}">
@endforeach
@endif
@if ($tip->content)
<div class="prose break-all md:prose-xl">
{!! Str::markdown($tip->content) !!}
</div>
@endif
<x:author-card :tip="$tip" />
</div>
</x:container>
</main>
</x:layout>