diff --git a/Public/HeroSection/Infrastructure/Ui/HeroSectionRenderer.php b/Public/HeroSection/Infrastructure/Ui/HeroSectionRenderer.php new file mode 100644 index 00000000..680da217 --- /dev/null +++ b/Public/HeroSection/Infrastructure/Ui/HeroSectionRenderer.php @@ -0,0 +1,484 @@ +getData(); + + if (!$this->isEnabled($data)) { + return ''; + } + + if (!$this->shouldShowOnCurrentPage($data)) { + return ''; + } + + $classes = $this->buildSectionClasses($data); + $styles = $this->buildInlineStyles($data); + + $html = sprintf( + '