-
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.
* Update dfe-alpha to dfe-frontend and update width declaration * Styling and comment update * Chevron update * Small styling updates * Update based on PR comments * Card update * Edits * More edits * Update due to deprecation warning * Move head content into partial * Update class so it highlights correctly when on specific page --------- Co-authored-by: Peter David Hamilton <[email protected]>
- Loading branch information
1 parent
8fe828e
commit 7594339
Showing
20 changed files
with
1,509 additions
and
29,757 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { initAll } from 'govuk-frontend'; | ||
initAll(); | ||
|
||
import '@hotwired/turbo-rails'; | ||
|
||
import './controllers'; | ||
|
||
import $ from 'jquery'; | ||
import { initAll } from 'govuk-frontend'; | ||
|
||
document.addEventListener('turbo:load', function() { | ||
initAll(); | ||
}) |
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,5 +1,10 @@ | ||
import { Application } from '@hotwired/stimulus' | ||
import Reveal from 'stimulus-reveal-controller' | ||
import Reveal from '@stimulus-components/reveal' | ||
|
||
const application = Application.start() | ||
|
||
application.register('reveal', Reveal) | ||
|
||
application.debug = true | ||
window.Stimulus = application | ||
export { application } |
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 @@ | ||
title= [t('service.name'), yield(:page_title).presence].compact.join(' : ') | ||
|
||
= csrf_meta_tags | ||
= csp_meta_tag | ||
|
||
= tag.meta content: 'text/html; charset=UTF-8', 'http-equiv': 'Content-Type' | ||
= render 'layouts/analytics_header' | ||
= render 'layouts/hotjar' | ||
|
||
= tag.meta content: 'width=device-width,initial-scale=1', name: 'viewport' | ||
= tag.meta name: 'robots', content: 'noindex,nofollow' unless Rails.application.live? | ||
= tag.meta property: 'og:image', content: image_path('hfeyp_opengraph.png') | ||
= tag.meta name: 'description', content: @page&.meta_description if @page&.meta_description.present? | ||
|
||
= csrf_meta_tags | ||
= tag.meta name: 'theme-color', content: '#0b0c0c' | ||
|
||
= favicon_link_tag image_path('dfe_favicon.ico') | ||
|
||
= stylesheet_link_tag 'application', 'data-turbo-track': 'reload' | ||
|
||
= javascript_include_tag 'application', 'data-turbo-track': 'reload', defer: true | ||
|
||
= yield :head |
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
Oops, something went wrong.