Skip to content

Commit

Permalink
add document in EY landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
asmega committed Nov 19, 2024
1 parent 2ae34b0 commit eab49bf
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/assets/stylesheets/components/document.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.document {
display: flex;
gap: 20px;
font-size: 1.6875rem;
margin-bottom: 30px;
}

.document-icon {
display: block;
width: auto;
max-width: 99px;
height: 140px;
border: rgba(11, 12, 12, .1);
outline: 5px solid rgba(11, 12, 12, .1);
background: #fff;
box-shadow: 0 2px 2px rgba(11, 12, 12, .4);
fill: #b1b4b6;
stroke: #b1b4b6;
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@

<h4 class="govuk-heading-s">Documents</h4>

<%= render partial: "shared/document", locals: { title_text: "Privacy notice", title_url: "https://www.gov.uk/government/publications/privacy-information-education-providers-workforce-including-teachers/5a254207-a566-44f7-ac77-6ba59fd26e04#using-your-data-to-support-learning-including-apprenticeships" } %>

<h3 class="govuk-heading-m">Information from your organisation</h3>

<p class="govuk-body">
Expand Down
11 changes: 11 additions & 0 deletions app/views/shared/_document.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div class="document">
<div>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 99 140" width="99" height="140" class="document-icon" aria-hidden="true">
<path d="M12 12h75v27H12zM12 59h9v9h-9zM12 77h9v9h-9zM12 95h9v9h-9zM12 113h9v9h-9zM30 59h57v9H30zM30 77h39v9H30zM30 95h57v9H30zM30 113h48v9H30z" stroke-width="0"></path>
</svg>
</div>

<div>
<%= govuk_link_to title_text, title_url %>
</div>
</div>

0 comments on commit eab49bf

Please sign in to comment.