-
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.
Merge pull request #119 from TYPO3incubator/task/events-teaser
task/events-teaser + templating & frontend styling
- Loading branch information
Showing
11 changed files
with
227 additions
and
10 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
local_packages/football/Resources/Private/Scss/Abstracts/Utilities/_spacing.scss
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.pt-navbar { | ||
padding-top: 100px; | ||
padding-top: toRem(94); | ||
} | ||
|
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
69 changes: 69 additions & 0 deletions
69
local_packages/football/Resources/Private/Scss/Elements/_events.scss
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,69 @@ | ||
.event { | ||
position: relative; | ||
height: toRem(680); | ||
|
||
&--image { | ||
height: 100%!important; | ||
width: 100%!important; | ||
object-fit: cover; | ||
} | ||
|
||
&--contents { | ||
position: absolute; | ||
bottom: toRem(30); | ||
left: toRem(20); | ||
z-index: 3; | ||
} | ||
|
||
&--title, &--button { | ||
color: $color__white; | ||
text-transform: uppercase; | ||
} | ||
|
||
&--title { | ||
max-width: toRem(100); | ||
margin: 0!important; | ||
font-size: toRem(28); | ||
font-weight: 900; | ||
} | ||
|
||
&--button { | ||
display: flex; | ||
align-items: center; | ||
font-weight: 300; | ||
letter-spacing: 1px; | ||
|
||
&:hover { | ||
border-bottom: 1px solid $color__white; | ||
} | ||
|
||
.icon-arrow { | ||
position: relative; | ||
display: block; | ||
height: toRem(1); | ||
width: toRem(20); | ||
margin-left: toRem(8); | ||
background: $color__white; | ||
|
||
&:before, &:after { | ||
content: " "; | ||
position: absolute; | ||
width: 7px; | ||
height: 1px; | ||
background: $color__white; | ||
} | ||
|
||
&:before { | ||
top: toRem(-3); | ||
right: toRem(-1); | ||
transform: rotate(45deg); | ||
} | ||
|
||
&:after { | ||
top: toRem(2); | ||
right: toRem(-1); | ||
transform: rotate(-45deg); | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
@import "news"; | ||
@import "game"; | ||
@import "textmedia"; | ||
@import "events"; |
64 changes: 59 additions & 5 deletions
64
local_packages/football/Resources/Private/Templates/ContentElements/EventTeaser.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 |
---|---|---|
@@ -1,12 +1,66 @@ | ||
<html data-namespace-typo3-fluid="true" | ||
xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"> | ||
|
||
<f:render partial="Header/All" arguments="{_all}" /> | ||
<div class="row"> | ||
<div class="col-lg-6 col-md-6 mb-4"> | ||
<f:render partial="Header/All" arguments="{_all}" /> | ||
</div> | ||
<div class="col-lg-6 col-md-6 mb-4"> | ||
<f:if condition="{data.bodytext}"> | ||
<div> | ||
<f:format.html>{data.bodytext}</f:format.html> | ||
</div> | ||
</f:if> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-xl-6 col-lg-6 mb-4"> | ||
<div class="event"> | ||
<f:image class="event--image" src="EXT:football/Resources/Public/Images/Events/event4.png" width="800" /> | ||
|
||
<div class="event--contents"> | ||
<h3 class="event--title"> | ||
Gameday | ||
</h3> | ||
<a class="event--button" href="/events">Learn more <span class="icon-arrow"></span></a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-xl-2 col-lg-6 mb-4"> | ||
<div class="event"> | ||
<f:image class="event--image" src="EXT:football/Resources/Public/Images/Events/event5.png" width="800" /> | ||
|
||
<div class="event--contents"> | ||
<h3 class="event--title"> | ||
Charity event | ||
</h3> | ||
<a class="event--button" href="/events">Learn more <span class="icon-arrow"></span></a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-xl-2 col-lg-6 mb-4"> | ||
<div class="event"> | ||
<f:image class="event--image" src="EXT:football/Resources/Public/Images/Events/event1.png" width="800" /> | ||
|
||
<div class="event--contents"> | ||
<h3 class="event--title">Junior training | ||
</h3> | ||
<a class="event--button" href="/events">Learn more <span class="icon-arrow"></span></a> | ||
|
||
</div> | ||
|
||
</div> | ||
</div> | ||
<div class="col-xl-2 col-lg-6 mb-4"> | ||
<div class="event"> | ||
<f:image class="event--image" src="EXT:football/Resources/Public/Images/Events/event2.png" width="800" /> | ||
|
||
<f:if condition="{data.bodytext}"> | ||
<div> | ||
<f:format.html>{data.bodytext}</f:format.html> | ||
<div class="event--contents"> | ||
<h3 class="event--title">Training</h3> | ||
<a class="event--button" href="/events">Learn more <span class="icon-arrow"></span></a> | ||
</div> | ||
</div> | ||
</f:if> | ||
</div> | ||
</div> | ||
|
||
</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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.