-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] make success hero image bigger on promotion site
- Loading branch information
Julia Gruber
committed
Apr 12, 2024
1 parent
2451a98
commit 041b50d
Showing
5 changed files
with
95 additions
and
6 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
72 changes: 72 additions & 0 deletions
72
local_packages/success/Resources/Private/Templates/SetsPromotion/Content/SuccessHero.html
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,72 @@ | ||
<html | ||
data-namespace-typo3-fluid="true" | ||
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" | ||
> | ||
<f:layout name="Default"/> | ||
<f:section name="Main"> | ||
<f:if condition="{data.imageorient} > 1"> | ||
<f:then> | ||
<f:render section="Beside" arguments="{_all}"/> | ||
</f:then> | ||
<f:else> | ||
<f:render section="Fullwidth" arguments="{_all}"/> | ||
</f:else> | ||
</f:if> | ||
</f:section> | ||
|
||
<f:section name="Fullwidth"> | ||
<div class="{f:if(condition: data.assets, then:'background-black')} relative min-h-screen flex items-center"> | ||
<f:if condition="{data.assets}"> | ||
<f:image image="{data.assets.0}" class="object-cover w-full h-full img-darken absolute top-0 left-0" width="1400"></f:image> | ||
</f:if> | ||
<div class="container px-5 py-12 mx-auto z-10 relative"> | ||
<div class="grid gap-5 md:grid-cols-2"> | ||
<div class="{f:if(condition: '{data.imageorient} == 1', then: 'col-start-2')}"> | ||
<f:render partial="Content/Header" | ||
arguments="{headerLayout: data.header_layout, headerStyle: data.header_style, header: data.header, overline: data.overline}"/> | ||
|
||
<f:if condition="{data.bodytext}"> | ||
<div class="rte mt-4">{data.bodytext -> f:format.html(parseFuncTSPath: 'lib.parseFunc')}</div> | ||
</f:if> | ||
|
||
<div class="mt-5"> | ||
<f:render partial="Content/Button" | ||
arguments="{buttonLink: data.button_link, buttonStyle: data.button_style, buttonLabel: data.button_label}"/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</f:section> | ||
|
||
<f:section name="Beside"> | ||
<div class="min-h-screen flex items-center pt-24"> | ||
<div class="container px-5 mx-auto"> | ||
<div class="grid gap-5 md:grid-cols-2"> | ||
<div class="flex items-center"> | ||
<div> | ||
<f:render partial="Content/Header" | ||
arguments="{headerLayout: data.header_layout, headerStyle: data.header_style, header: data.header, overline: data.overline}"/> | ||
|
||
<f:if condition="{data.bodytext}"> | ||
<div class="rte mt-4">{data.bodytext -> f:format.html(parseFuncTSPath: 'lib.parseFunc')}</div> | ||
</f:if> | ||
<div class="mt-5"> | ||
<f:render partial="Content/Button" | ||
arguments="{buttonLink: data.button_link, buttonStyle: data.button_style, buttonLabel: data.button_label}"/> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="order-first md:order-2 mb-5 md:mb-0 md:flex justify-center items-center{f:if(condition: '{data.imageorient} == 3', then: ' order-first')}"> | ||
<div class="aspect-square rounded overflow-hidden rotate-right"> | ||
<f:if condition="{data.assets}"> | ||
<f:image image="{data.assets.0}" class="object-cover h-full w-100" width="600"></f:image> | ||
</f:if> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</f:section> | ||
</html> |
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