-
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 * new - page contents component * add page contents to menu 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
09298b1
commit c625a7a
Showing
7 changed files
with
61 additions
and
1 deletion.
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
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 wmcadsPageContents(params) %} | ||
<div class="wmcads-page-contents"> | ||
<h3>Page contents</h3> | ||
<div>Page title</div> | ||
<a>link 1</a> | ||
<a>link 2</a> | ||
<a>link 3</a> | ||
<a>link 4</a> | ||
</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,31 @@ | ||
.wmcads-page-contents { | ||
width: 288px; | ||
min-height: 57px; | ||
margin-bottom: 30px; | ||
padding: 10px; | ||
border-bottom: 3px solid $black; | ||
background: $white; | ||
|
||
h3 { | ||
margin-top: 0; | ||
margin-bottom: 10px; | ||
color: get-color(cta); | ||
font-size: 23px; | ||
font-weight: bold; | ||
line-height: 24px; | ||
} | ||
|
||
div { | ||
margin-bottom: 10px; | ||
padding-left: 10px; | ||
border-left: 3px solid get-color(primary); | ||
} | ||
|
||
a { | ||
display: block; | ||
margin-bottom: 10px; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -77,6 +77,9 @@ | |
{ | ||
"name": "Message" | ||
}, | ||
{ | ||
"name": "Page contents" | ||
}, | ||
{ | ||
"name": "Page header" | ||
}, | ||
|
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 |
---|---|---|
|
@@ -77,6 +77,9 @@ | |
{ | ||
"name": "Message" | ||
}, | ||
{ | ||
"name": "Page contents" | ||
}, | ||
{ | ||
"name": "Page header" | ||
}, | ||
|
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,12 @@ | ||
{% extends "www/_layouts/layout-left-pane.njk" %} | ||
{% set pageTitle="Page contents" %} | ||
{% from "wmcads/components/page-contents/_page-contents.njk" import wmcadsPageContents %} | ||
{% from "www/_partials/component-example/component-example.njk" import compExample %} | ||
|
||
{% block content %} | ||
{{ | ||
compExample([ | ||
wmcadsPageContents() | ||
]) | ||
}} | ||
{% endblock %} |