-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ER-809 New home page with hero (#939)
* New home page with hero * Adjust mobile UI and specs * Mobile home page padding * Adjust styles * Home prompt left spacing * Responsive image and grey box spacing * - flash alert bottom margin - external privacy policy * Only hide mobile legend for formative questions
- Loading branch information
1 parent
f91c9aa
commit bc65de8
Showing
15 changed files
with
120 additions
and
62 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
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,3 @@ | ||
- if debug? | ||
pre.debug_dump | ||
= configuration_summary_list |
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,21 @@ | ||
.govuk-grid-row class='govuk-!-margin-top-9' | ||
.govuk-grid-column-two-thirds | ||
|
||
h1.govuk-heading-xl class='govuk-!-margin-bottom-4' | ||
= service_name | ||
|
||
p.govuk-body-l | ||
= t('home.hero') | ||
|
||
= govuk_button_link_to course_overview_path, class: 'govuk-button--start govuk-!-margin-bottom-4' do | ||
- if current_user | ||
| Learn more | ||
- else | ||
| Learn more and enrol | ||
p.govuk-visually-hidden on the course | ||
|
||
svg.govuk-button__start-icon xmlns='http://www.w3.org/2000/svg' width='17.5' height='19' viewBox='0 0 33 40' aria-hidden='true' focusable='false' | ||
path fill='currentColor' d='M0 0h13l20 20-20 20H0l20-20z' | ||
|
||
.govuk-grid-column-one-third class='govuk-!-text-align-right' | ||
= m('home.thumb') |
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,42 +1,30 @@ | ||
- content_for :page_title do | ||
= html_title t('home.title') | ||
|
||
= render 'learning/cms_debug' | ||
|
||
- if debug? | ||
pre.debug_dump | ||
= configuration_summary_list | ||
|
||
.govuk-grid-row | ||
.govuk-grid-column-full | ||
.light-grey-box | ||
.govuk-grid-row | ||
.govuk-grid-column-two-thirds | ||
= m('home.hero', service_name: service_name) | ||
|
||
= govuk_button_link_to course_overview_path, class: 'govuk-button--start govuk-!-margin-bottom-4' do | ||
- if current_user | ||
| Learn more | ||
- else | ||
| Learn more and enrol | ||
p.govuk-visually-hidden on the course | ||
- content_for :hero do | ||
= render 'hero' | ||
|
||
svg.govuk-button__start-icon xmlns='http://www.w3.org/2000/svg' width='17.5' height='19' viewBox='0 0 33 40' aria-hidden='true' focusable='false' | ||
path fill='currentColor' d='M0 0h13l20 20-20 20H0l20-20z' | ||
|
||
.govuk-grid-column-one-third class='govuk-!-text-align-right' | ||
= m('home.thumb') | ||
= render 'learning/cms_debug' | ||
= render 'debug' | ||
|
||
.govuk-grid-row | ||
.govuk-grid-column-one-half | ||
= m('home.about') | ||
= m('home.about', headings_start_with: 'xl') | ||
|
||
- unless current_user | ||
.govuk-grid-column-one-half | ||
.light-grey-box | ||
= m('home.login') | ||
.light-grey-box.enrol-box | ||
= m('home.login', headings_start_with: 'xl') | ||
|
||
.govuk-button-group | ||
= govuk_button_link_to 'Sign in', new_user_session_path | ||
.white-space-pre-wrap= ' or ' | ||
= govuk_link_to 'create an account', new_user_registration_path | ||
|
||
.prompt.prompt-home | ||
.govuk-grid-row | ||
.govuk-grid-column-one-quarter | ||
i.fa-2x.fa-solid.fa-circle-info aria-describedby='info icon' | ||
|
||
.govuk-grid-column-three-quarters | ||
= m('home.prompt', headings_start_with: 'xl') |
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