Harings Rob
02/25/2022, 2:47 PMamargoCactus
02/25/2022, 2:54 PMHarings Rob
02/25/2022, 2:54 PMHarings Rob
02/25/2022, 2:54 PMHarings Rob
02/25/2022, 2:55 PMamargoCactus
02/25/2022, 3:11 PM<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="{{ asset('assets/page/css/styles.css') }}">
</head>
<body class="h-auto">
@yield('content')
</body>
</html>amargoCactus
02/25/2022, 3:11 PM<section
class="{{ $block->content['background_parallax'] ? 'bg-fixed' : '' }} bg-top bg-no-repeat bg-cover"
style="
min-height: 100vh;
background-image: url({{ $block->image('background_value', 'desktop') }})
"
>
<div
class="d-flex align-items-center justify-content-center h-100 text-white"
@if($block->content['background_overlay'])
style="background-color: rgba(75, 75, 75, .5)"
@endif
>
<blockquote class="blockquote">
@if(( array_key_exists('title', $block->content) && isset($block->content['title']) ))
<h2
class="font-title fw-800"
style="
text-align: {{ $block->content['text_align'] }};
color: {{ ( array_key_exists('text_color', $block->content) && isset($block->content['text_color']) ) ? $block->content['text_color'] : '#fffff' }};
"
>
{{ $block->content['title'] }}
</h2>
@endif
@if(( array_key_exists('subtitle', $block->content) && isset($block->content['subtitle']) ))
<h3
class="font-title fw-800"
style="
text-align: {{ $block->content['text_align'] }};
color: {{ ( array_key_exists('text_color', $block->content) && isset($block->content['text_color']) ) ? $block->content['text_color'] : '#fffff' }};
"
>
{{ $block->content['subtitle'] }}
</h3>
@endif
</blockquote>
</div>
</section>Harings Rob
02/25/2022, 3:12 PMamargoCactus
02/25/2022, 3:14 PMamargoCactus
02/25/2022, 3:14 PMHarings Rob
02/25/2022, 3:15 PMamargoCactus
02/25/2022, 3:15 PMamargoCactus
02/25/2022, 3:15 PMHarings Rob
02/25/2022, 3:17 PMHarings Rob
02/25/2022, 3:17 PMamargoCactus
02/25/2022, 3:34 PMdomihagen
02/25/2022, 3:47 PMphp
// app/Helpers/helpers.php
if (! function_exists('is_block_preview')) {
function is_block_preview(): bool
{
return request()->routeIs('admin.blocks.preview');
}
}amargoCactus
02/27/2022, 11:29 PMifox
02/27/2022, 11:45 PMifox
02/27/2022, 11:48 PMifox
02/27/2022, 11:49 PM$block->file('name_of_your_file_field')amargoCactus
02/28/2022, 12:33 AMratio and minValues paramsamargoCactus
02/28/2022, 12:34 AMHarings Rob
02/28/2022, 6:53 AMifox
02/28/2022, 9:19 AMzoi
02/28/2022, 11:13 AMifox
02/28/2022, 11:17 AMzoi
02/28/2022, 3:36 PMHarings Rob
02/28/2022, 3:47 PMHarings Rob
02/28/2022, 3:47 PM