feat: add a textimage element, add news design, add a footer
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<f:section name="Header"></f:section>
|
||||
</head>
|
||||
<body>
|
||||
<f:section name="main"></f:section>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,13 @@
|
||||
<div class="news-item-featured">
|
||||
<f:if condition="{newsItem.media}">
|
||||
<f:image image="{newsItem.media.0}" class="news-item-featured-image" alt="{newsItem.title}" />
|
||||
</f:if>
|
||||
<div class="news-item-featured-content">
|
||||
<!-- Category and Title -->
|
||||
<f:if condition="{newsItem.firstCategory}">
|
||||
<div class="news-item-category">{newsItem.firstCategory.title}</div>
|
||||
</f:if>
|
||||
<h3 class="news-item-title">{newsItem.title}</h3>
|
||||
<f:link.page pageUid="{newsItem.link}" class="news-item-link"> </f:link.page>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,12 @@
|
||||
<div class="news-item-grid">
|
||||
<f:if condition="{newsItem.media}">
|
||||
<f:image image="{newsItem.media.0}" class="news-item-grid-image" alt="{newsItem.title}" />
|
||||
</f:if>
|
||||
<div class="news-item-grid-content">
|
||||
<f:if condition="{newsItem.firstCategory}">
|
||||
<div class="news-item-category">{newsItem.firstCategory.title}</div>
|
||||
</f:if>
|
||||
<h5 class="news-item-title">{newsItem.title}</h5>
|
||||
<f:link.page pageUid="{newsItem.link}" class="news-item-link"> </f:link.page>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,12 @@
|
||||
<div class="news-item-side">
|
||||
<f:if condition="{newsItem.media}">
|
||||
<f:image image="{newsItem.media.0}" class="news-item-side-image" alt="{newsItem.title}" />
|
||||
</f:if>
|
||||
<div class="news-item-side-content">
|
||||
<f:if condition="{newsItem.firstCategory}">
|
||||
<div class="news-item-category">{newsItem.firstCategory.title}</div>
|
||||
</f:if>
|
||||
<h4 class="news-item-title">{newsItem.title}</h4>
|
||||
<f:link.page pageUid="{newsItem.link}" class="news-item-link"> </f:link.page>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,55 @@
|
||||
<f:layout name="General" />
|
||||
<f:section name="content">
|
||||
<f:if condition="{news}">
|
||||
<f:then>
|
||||
<div class="news-list-container">
|
||||
<!-- First 4 items: 1 large on the left and 3 stacked on the right -->
|
||||
<f:if condition="{news -> f:count()} > 0">
|
||||
<div class="news-featured-wrapper">
|
||||
<div class="news-featured-item">
|
||||
<f:for each="{news}" as="item" iteration="iterator">
|
||||
<f:if condition="{iterator.index} == 0">
|
||||
<f:then>
|
||||
<f:render partial="News/ItemFeatured" arguments="{newsItem: item}" />
|
||||
</f:then>
|
||||
</f:if>
|
||||
</f:for>
|
||||
</div>
|
||||
<div class="news-side-items">
|
||||
<f:for each="{news}" as="item" iteration="iterator">
|
||||
<f:if condition="{iterator.index} > 0 && {iterator.index} < 4">
|
||||
<f:then>
|
||||
<f:render partial="News/ItemSide" arguments="{newsItem: item}" />
|
||||
</f:then>
|
||||
</f:if>
|
||||
</f:for>
|
||||
</div>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<!-- Remaining items in a responsive grid of 3 columns -->
|
||||
<f:if condition="{news -> f:count()} > 4">
|
||||
<div class="news-list-grid">
|
||||
<f:for each="{news}" as="item" iteration="iterator">
|
||||
<f:if condition="{iterator.index} >= 4">
|
||||
<f:then>
|
||||
<f:render partial="News/ItemGrid" arguments="{newsItem: item}" />
|
||||
</f:then>
|
||||
</f:if>
|
||||
</f:for>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<!-- "Alle anzeigen" button if listPid is set -->
|
||||
<f:if condition="{settings.listPid}">
|
||||
<div class="news-show-all">
|
||||
<f:link.page pageUid="{settings.listPid}" class="btn-show-all">Alle anzeigen</f:link.page>
|
||||
</div>
|
||||
</f:if>
|
||||
</div>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<p>No news available.</p>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:section>
|
||||
@@ -1,11 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
||||
<xliff version="1.0">
|
||||
<file source-language="en" datatype="plaintext" original="messages" date="2024-12-11UTC16:10:160">
|
||||
<file source-language="en" datatype="plaintext" original="messages">
|
||||
<header>
|
||||
<authorName>Test</authorName>
|
||||
<authorEmail>test@test.at</authorEmail>
|
||||
</header>
|
||||
<body>
|
||||
<trans-unit id="imageorient.25">
|
||||
<source>Image on left</source>
|
||||
</trans-unit>
|
||||
<trans-unit id="imageorient.26">
|
||||
<source>Image on right</source>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
|
||||
@@ -8,14 +8,26 @@
|
||||
<f:render section="Main" />
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<f:cObject
|
||||
typoscriptObjectPath="lib.dynamicContentSlide"
|
||||
data="{pageUid: '{data.uid}', colPos: '90'}"
|
||||
/>
|
||||
<f:cObject
|
||||
typoscriptObjectPath="lib.dynamicContentSlide"
|
||||
data="{pageUid: '{data.uid}', colPos: '91'}"
|
||||
/>
|
||||
<p>© {f:format.date(date: 'now', format: 'Y')} Your Company</p>
|
||||
<footer class="site-footer">
|
||||
<div class="site-footer__top">
|
||||
<div class="container site-footer__grid">
|
||||
<div class="site-footer__left">
|
||||
<f:cObject typoscriptObjectPath="lib.dynamicContentSlide" data="{pageUid: '{data.uid}', colPos: '90'}" />
|
||||
</div>
|
||||
<div class="site-footer__right">
|
||||
<f:cObject typoscriptObjectPath="lib.dynamicContentSlide" data="{pageUid: '{data.uid}', colPos: '91'}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr class="site-footer__divider" />
|
||||
|
||||
<div class="site-footer__bottom">
|
||||
<div class="container site-footer__bottom-grid">
|
||||
<ul class="site-footer__legal">
|
||||
<f:cObject typoscriptObjectPath="lib.footerMenu" />
|
||||
</ul>
|
||||
<p class="site-footer__copyright">© All Right Reserved</p>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
Reference in New Issue
Block a user