-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andy Jones
committed
Aug 25, 2022
1 parent
1dc1d2f
commit f30e568
Showing
8 changed files
with
221 additions
and
124 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class CTA < Middleman::Extension | ||
def initialize(app, options_hash={}, &block) | ||
super | ||
end | ||
|
||
helpers do | ||
def fullCta(html) | ||
<<~EOS | ||
<div class="fullCTA"> | ||
<svg xmlns="http://www.w3.org/2000/svg" height="48" width="48" fill="#ffffff"><path d="m12.1 38 10.5-14-10.5-14h3.7l10.5 14-10.5 14Zm12.6 0 10.5-14-10.5-14h3.7l10.5 14-10.5 14Z"/></svg>#{html}</div> | ||
EOS | ||
end | ||
end | ||
end | ||
|
||
::Middleman::Extensions.register(:fullCta, CTA) |
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,24 @@ | ||
class Hero < Middleman::Extension | ||
def initialize(app, options_hash={}, &block) | ||
super | ||
end | ||
|
||
helpers do | ||
def hero(title, text) | ||
<<~EOS | ||
<div class="dfe-hero"> | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-three-quarters"> | ||
<h1 class="govuk-heading-xl govuk-!-font-size-48">#{title}</h1> | ||
<p class="govuk-body-l">#{text}</p> | ||
</div> | ||
<div class="govuk-grid-column-one-quarter standards-icon"> | ||
</div> | ||
</div> | ||
</div> | ||
EOS | ||
end | ||
end | ||
end | ||
|
||
::Middleman::Extensions.register(:hero, Hero) |
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 |
---|---|---|
@@ -1,34 +1,25 @@ | ||
--- | ||
title: Service assessments | ||
weight: 300 | ||
description: Guidance for when it's appropriate to put your service through an assessment and how to talk about and show your work. | ||
--- | ||
|
||
<%= partial "ga" %> | ||
<script src="https://kit.fontawesome.com/2f8f69be63.js" crossorigin="anonymous"></script> | ||
|
||
<div class="dfe-hero"> | ||
<div class="govuk-grid-row"> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-heading-xl govuk-!-font-size-80">Service assessments</h1> | ||
<p class="govuk-body-l">Guidance for when it's appropriate to put your service through an assessment and how to talk about and show your work.</p> | ||
</div> | ||
<div class="govuk-grid-column-one-third standards-icon"> | ||
<i class="fa-solid fa-person-chalkboard fa-10x"></i> | ||
</div> | ||
<div class="govuk-grid-column-full"> | ||
<h2 class="govuk-heading-m bordered-top">Guidance</h2> | ||
<div class="cards"> | ||
<ul> | ||
<li class="card"> | ||
<div class="text"> | ||
<h3> | ||
<a href="/service-assessments/when-to-have-an-assessment.html">When to be assessed</a> | ||
</h3> | ||
<p>Find out when it's appropriate to have a service assessment and how to prepare. </p> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
<%= hero(current_page.data.title,current_page.data.description)%> | ||
|
||
<div class="dfe-hero govuk-!-padding-bottom-2"> | ||
<h2 class="govuk-heading-m bordered-top">Guidance</h2> | ||
<div class="cards"> | ||
<ul> | ||
<li class="card"> | ||
<div class="text"> | ||
<h3> | ||
<a href="/service-assessments/when-to-have-an-assessment.html">When to be assessed</a> | ||
</h3> | ||
<p>Find out when it's appropriate to have a service assessment and how to prepare. </p> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> |
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.