Hero image resolving

This commit is contained in:
Benjamin Beganović 2021-05-27 15:12:52 +02:00
parent b4f0bb1028
commit ac696d4d65
3 changed files with 3 additions and 1 deletions

View File

@ -379,6 +379,8 @@ class HtmlEngine
$data['$page_size'] = ['value' => $this->settings->page_size, 'label' => ''];
$data['$page_layout'] = ['value' => property_exists($this->settings, 'page_layout') ? $this->settings->page_layout : 'Portrait', 'label' => ''];
$data['$tech_hero_image'] = ['value' => asset('images/pdf-designs/tech-hero-image.jpg'), 'label' => ''];
$arrKeysLength = array_map('strlen', array_keys($data));
array_multisort($arrKeysLength, SORT_DESC, $data);

View File

Before

Width:  |  Height:  |  Size: 594 KiB

After

Width:  |  Height:  |  Size: 594 KiB

View File

@ -73,7 +73,7 @@
.hero-section {
margin-top: 50px;
min-width: 100% !important;
background: url('https://s2.aconvert.com/convert/p3r68-cdx67/a1w02-5arkz.jpg');
background: url('$tech_hero_image'); /** If you want to replace the image, this is the place to do it. */
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;