-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
427 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace App\View\Components; | ||
|
||
use Closure; | ||
use Illuminate\Contracts\View\View; | ||
use Illuminate\View\Component; | ||
|
||
class Layout extends Component | ||
{ | ||
/** | ||
* Create a new component instance. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct(public $context) | ||
{ | ||
$this->context = $context; | ||
} | ||
|
||
public function data() | ||
{ | ||
return array_merge(parent::data(), $this->context); | ||
} | ||
|
||
/** | ||
* Get the view / contents that represent the component. | ||
*/ | ||
public function render(): View|Closure|string | ||
{ | ||
return view('components.layout'); | ||
} | ||
} |
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,43 @@ | ||
<?php | ||
|
||
namespace App\View\Components\Layout; | ||
|
||
use Closure; | ||
use Illuminate\Contracts\View\View; | ||
use Illuminate\View\Component; | ||
use Statamic\Facades\Cascade; | ||
use Statamic\Facades\GlobalSet as GlobalSetFacade; | ||
use Statamic\Globals\GlobalSet; | ||
|
||
class CtaBox extends Component | ||
{ | ||
public function data() | ||
{ | ||
/** @var GlobalSet $global_general_set */ | ||
$global_general_set = GlobalSetFacade::findByHandle('general'); | ||
$global_cta_box = $global_general_set->inCurrentSite()->cta_box; | ||
$content = Cascade::content(); | ||
if ($content->cta_box->override_defaults) { | ||
$cta_box = $content->cta_box->cta_box; | ||
$headline = $cta_box->headline ?? $global_cta_box->headline; | ||
$text = $cta_box->text ?? $global_cta_box->text; | ||
$expert = $cta_box->expert ?? $global_cta_box->expert; | ||
} | ||
|
||
$data = [ | ||
'headline' => $headline ?? $global_cta_box->headline, | ||
'text' => $text ?? $global_cta_box->text, | ||
'expert' => $expert ?? $global_cta_box->expert, | ||
]; | ||
|
||
return array_merge(parent::data(), $data); | ||
} | ||
|
||
/** | ||
* Get the view / contents that represent the component. | ||
*/ | ||
public function render(): View|Closure|string | ||
{ | ||
return view('components.layout.cta-box'); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace App\View\Components\layout; | ||
|
||
use Closure; | ||
use Illuminate\Contracts\View\View; | ||
use Illuminate\View\Component; | ||
|
||
class modal extends Component | ||
{ | ||
/** | ||
* Create a new component instance. | ||
*/ | ||
public function __construct() | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Get the view / contents that represent the component. | ||
*/ | ||
public function render(): View|Closure|string | ||
{ | ||
return view('components.layout.modal'); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
id: 81347864-bc8e-4d1a-96f0-a0b5280146c8 | ||
blueprint: expert | ||
title: 'Fabian Pahl' | ||
forename: Fabian | ||
surname: Pahl | ||
job_title: 'Senior Developer' | ||
linkedin_handle: fabianpahl | ||
image: experts/fabian-pahl.jpg | ||
updated_by: 7b2bf1c2-0b8e-44d9-a774-98d3580bee37 | ||
updated_at: 1727882559 | ||
email: [email protected] | ||
calendly_handle: 21stdigital/meeting | ||
--- |
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,14 @@ | ||
--- | ||
id: c175f756-0f0b-45c7-afd9-f99cbfe4fca0 | ||
blueprint: expert | ||
title: 'Steffen Rüther' | ||
forename: Steffen | ||
surname: Rüther | ||
job_title: 'Senior Developer' | ||
linkedin_handle: steffen-ruether | ||
updated_by: 7b2bf1c2-0b8e-44d9-a774-98d3580bee37 | ||
updated_at: 1728989581 | ||
image: experts/steffen-ruether.jpg | ||
email: [email protected] | ||
calendly_handle: steffen-21st/30min | ||
--- |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
title: General | ||
data: | ||
cta_box: | ||
headline: 'Dir schwebt auch eine preisgekrönte Plattform vor?' | ||
text: 'Wir helfen Dir bei Deinem Vorhaben.' | ||
expert: c175f756-0f0b-45c7-afd9-f99cbfe4fca0 |
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
'close_modal' => 'Schließen', | ||
]; |
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
'close_modal' => 'Close', | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
tabs: | ||
main: | ||
display: Main | ||
sections: | ||
- | ||
fields: | ||
- | ||
handle: cta_box | ||
field: common.cta_box |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
title: '03 - Layout Module | CTA Box' | ||
fields: | ||
- | ||
handle: headline | ||
field: | ||
type: text | ||
display: Headline | ||
- | ||
handle: text | ||
field: | ||
type: textarea | ||
display: Text | ||
- | ||
handle: expert | ||
field: | ||
max_items: 1 | ||
collections: | ||
- experts | ||
type: entries | ||
display: Expert |
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.