diff --git a/package.json b/package.json index e21659ce..4220e75b 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "license": "WTFPL", "repository": "https://gitlab.com/dreipunktnull/ep_theme.git", "scripts": { - "dev": "./node_modules/.bin/encore dev", + "dev": "./node_modules/.bin/encore dev --watch", "build": "./node_modules/.bin/encore production" }, "dependencies": { diff --git a/web/typo3conf/ext/ep_events/Configuration/TypoScript/Extensions/News.ts b/web/typo3conf/ext/ep_events/Configuration/TypoScript/Extensions/News.ts new file mode 100644 index 00000000..24f3b115 --- /dev/null +++ b/web/typo3conf/ext/ep_events/Configuration/TypoScript/Extensions/News.ts @@ -0,0 +1,12 @@ + + +plugin.tx_news { + view { + templateRootPaths.100 = EXT:ep_events/Resources/Private/Templates/News/ + partialRootPaths.100 = EXT:ep_events/Resources/Private/Partials/News/ + widget.GeorgRinger\News\ViewHelpers\Widget\PaginateViewHelper.templateRootPath = EXT:ep_events/Resources/Private/Templates/News/ + } + settings { + link.skipControllerAndAction = 1 + } +} diff --git a/web/typo3conf/ext/ep_events/Configuration/TypoScript/constants.txt b/web/typo3conf/ext/ep_events/Configuration/TypoScript/constants.txt index 71fab704..fe0c69ff 100644 --- a/web/typo3conf/ext/ep_events/Configuration/TypoScript/constants.txt +++ b/web/typo3conf/ext/ep_events/Configuration/TypoScript/constants.txt @@ -55,3 +55,4 @@ plugin.tx_epevents { + diff --git a/web/typo3conf/ext/ep_events/Configuration/TypoScript/setup.txt b/web/typo3conf/ext/ep_events/Configuration/TypoScript/setup.txt index aa72a8fc..f9ee5a4d 100644 --- a/web/typo3conf/ext/ep_events/Configuration/TypoScript/setup.txt +++ b/web/typo3conf/ext/ep_events/Configuration/TypoScript/setup.txt @@ -1,5 +1,6 @@ + diff --git a/web/typo3conf/ext/ep_events/Resources/Private/Assets/scss/_news.scss b/web/typo3conf/ext/ep_events/Resources/Private/Assets/scss/_news.scss new file mode 100644 index 00000000..c2f8ac96 --- /dev/null +++ b/web/typo3conf/ext/ep_events/Resources/Private/Assets/scss/_news.scss @@ -0,0 +1,55 @@ +.news-entry { + width: 100%; + &:not(:last-child) { + margin-bottom: 20px; + } +} + +.news-entry__info { + margin: 0 0 20px; +} + +.news-entry__inner { + display: flex; + flex-direction: column; + + @include mq($from: tablet) { + flex-direction: row; + } +} + +.news-entry__image { + width: 100%; + margin-bottom: 8px; + + @include mq($from: tablet) { + width: percentage(1/3); + } +} + +.news-entry__info { + font-style: italic; + font-size: 90%; +} + +.news-entry__headline { + margin-top: 0; +} + +.news-entry__teaser { + width: 100%; + + @include mq($from: tablet) { + padding-left: 16px; + width: percentage(2/3); + } + + p { + margin-bottom: 16px; + + &:last-child { + margin-bottom: 8px; + } + + } +} diff --git a/web/typo3conf/ext/ep_events/Resources/Private/Assets/scss/main.scss b/web/typo3conf/ext/ep_events/Resources/Private/Assets/scss/main.scss index 64fd90f5..f0470f8d 100644 --- a/web/typo3conf/ext/ep_events/Resources/Private/Assets/scss/main.scss +++ b/web/typo3conf/ext/ep_events/Resources/Private/Assets/scss/main.scss @@ -39,3 +39,4 @@ $output-bourbon-deprecation-warnings: false; @import "cookieconsent"; @import "search"; @import "paginator"; +@import "news"; diff --git a/web/typo3conf/ext/ep_events/Resources/Private/Partials/News/Detail/MediaContainer.html b/web/typo3conf/ext/ep_events/Resources/Private/Partials/News/Detail/MediaContainer.html new file mode 100644 index 00000000..5556d7a4 --- /dev/null +++ b/web/typo3conf/ext/ep_events/Resources/Private/Partials/News/Detail/MediaContainer.html @@ -0,0 +1,31 @@ + + + + +
+ + + + +
+
+ + diff --git a/web/typo3conf/ext/ep_events/Resources/Private/Partials/News/List/Item.html b/web/typo3conf/ext/ep_events/Resources/Private/Partials/News/List/Item.html new file mode 100644 index 00000000..261743ea --- /dev/null +++ b/web/typo3conf/ext/ep_events/Resources/Private/Partials/News/List/Item.html @@ -0,0 +1,53 @@ + + +
+ +
+
+ + + + + + + + + + + + + + + + +
+ +
+
+ + diff --git a/web/typo3conf/ext/ep_events/Resources/Private/Templates/News/News/Detail.html b/web/typo3conf/ext/ep_events/Resources/Private/Templates/News/News/Detail.html new file mode 100644 index 00000000..fbb3e6bd --- /dev/null +++ b/web/typo3conf/ext/ep_events/Resources/Private/Templates/News/News/Detail.html @@ -0,0 +1,70 @@ + + + + + + + +
+ + + + + + {newsItem.alternativeTitle} + + + + + {newsItem.title} + + + + + +

{newsItem.title}

+ + + {newsItem.teaser} + + + + {newsItem.bodytext} + + {newsItem.contentElementIdList} + +

Dateien

+ +
+ + + + + +
+
+
+
+ + diff --git a/web/typo3conf/ext/ep_events/Resources/Private/Templates/News/News/List.html b/web/typo3conf/ext/ep_events/Resources/Private/Templates/News/News/List.html new file mode 100644 index 00000000..e3ce744f --- /dev/null +++ b/web/typo3conf/ext/ep_events/Resources/Private/Templates/News/News/List.html @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+
+ + diff --git a/web/typo3conf/ext/ep_events/Resources/Private/Templates/News/ViewHelpers/Widget/Paginate/Index.html b/web/typo3conf/ext/ep_events/Resources/Private/Templates/News/ViewHelpers/Widget/Paginate/Index.html new file mode 100644 index 00000000..8c2bb412 --- /dev/null +++ b/web/typo3conf/ext/ep_events/Resources/Private/Templates/News/ViewHelpers/Widget/Paginate/Index.html @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +