-
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.
* initial setup for templates * update: basic hero banner * new: teamplate area * remove main top margin * update colour and ensure headings are correct * new layouts from templates * updates to header component * hide breadcrumb on homepage template * new: event content card * fix link heading size * fix padding issue in grid spacing * add a display to links * content card updates * homepage template updates * Restyled by prettier (#105) Co-authored-by: Restyled.io <commits@restyled.io> * replace user research with templates * add padding to card img * content card updates * new: hub header Co-authored-by: Nathan Rogan <nathanroagn@centro.org.uk> Co-authored-by: restyled-io[bot] <32688539+restyled-io[bot]@users.noreply.github.com> Co-authored-by: Restyled.io <commits@restyled.io>
- Loading branch information
1 parent
9f8d06e
commit 09298b1
Showing
28 changed files
with
839 additions
and
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,8 @@ h2, | |
} | ||
|
||
h3, | ||
.h3 { | ||
.h3, | ||
h3 a { | ||
@include type-setting(3); | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -42,7 +42,6 @@ | |
} | ||
|
||
&--main { | ||
margin-top: $size-md; | ||
margin-bottom: $size-lg; | ||
flex-grow: 1; | ||
} | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% macro wmcadsHubHeader(params) %} | ||
<div class="wmcads-hub-header"> | ||
<div class="left-pane"></div> | ||
<img class="banner" src="https://www.wmca.org.uk/media/3415/wmca-bournville-131.jpg?anchor=center&mode=crop&width=2500&height=800&rnd=132122595620000000" alt="page title"/> | ||
<div class="text-pane"> | ||
<h1>Page title</h1> | ||
<div class="text">Subtext</div> | ||
</div> | ||
</div> | ||
{% endmacro %} |
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,73 @@ | ||
.wmcads-hub-header { | ||
display: flex; | ||
position: relative; | ||
height: 230px; | ||
color: $white; | ||
background: get-color(primary); | ||
|
||
.left-pane { | ||
display: inline-block; | ||
position: relative; | ||
width: 50%; | ||
height: 100%; | ||
} | ||
|
||
.left-pane:after { | ||
content: ""; | ||
display: inline-block; | ||
position: absolute; | ||
top: 33px; | ||
right: -92px; | ||
width: 164px; | ||
height: 164px; | ||
margin-right: 10px; | ||
transform: rotate(45deg); | ||
border-radius: 0 120px 0 0; | ||
background-color: get-color(primary); | ||
} | ||
|
||
img { | ||
display: inline-block; | ||
width: 50%; | ||
height: 100%; | ||
object-fit: cover; | ||
} | ||
|
||
.text-pane { | ||
position: absolute; | ||
left: calc((100% - 960px) / 2); | ||
max-width: 468px; | ||
overflow: auto; | ||
} | ||
|
||
h1 { | ||
margin: 56px 0 0; | ||
color: $white; | ||
} | ||
|
||
.text { | ||
max-width: 448px; | ||
margin-top: 10px; | ||
} | ||
} | ||
|
||
@media (max-width: 927px) { | ||
.wmcads-hub-header { | ||
.left-pane { | ||
width: 100%; | ||
} | ||
|
||
.left-pane:after { | ||
display: none; | ||
} | ||
|
||
img { | ||
display: none; | ||
} | ||
|
||
.text-pane { | ||
left: 0; | ||
max-width: 100%; | ||
} | ||
} | ||
} |
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
Oops, something went wrong.