-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test for
EmbedCard
with and without author image
- Loading branch information
1 parent
3a71e6a
commit 8a93428
Showing
3 changed files
with
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
title: Test Embed Page | ||
description: Description | ||
layout: layout-pane.njk | ||
order: 16 | ||
draft: true | ||
ignoreInSitemap: true | ||
--- | ||
|
||
{% from "_embed-card.njk" import embedCard %} | ||
|
||
{% from "_cookie-banner.njk" import cookieBanner %} | ||
|
||
## Test Page | ||
|
||
{% set html %} | ||
|
||
<p class="govuk-body">You'll need to accept cookies to watch the videos on this page.</p> | ||
<p class="govuk-body">If you don't want to accept cookies, the videos and transcripts are also available on YouTube.</p> | ||
{% endset %} | ||
|
||
{% set acceptHtml %} | ||
|
||
<p class="govuk-body">You’ve accepted campaign cookies. You can <a class="govuk-link" href="/cookies/">change your cookie settings</a> at any time.</p> | ||
{% endset %} | ||
|
||
{% set rejectHtml %} | ||
|
||
<p class="govuk-body">You’ve rejected campiagn cookies. You can <a class="govuk-link" href="/cookies/">change your cookie settings</a> at any time.</p> | ||
{% endset %} | ||
|
||
{% call cookieBanner({ | ||
html: html, | ||
acceptHtml: acceptHtml, | ||
rejectHtml: rejectHtml, | ||
category: "campaign", | ||
classes: "app-campaign-cookie-banner govuk-!-padding-right-5 govuk-!-padding-left-5 govuk-!-margin-bottom-5", | ||
title: "Accept additional cookies to watch videos of Design System Day" | ||
}) %}{% endcall %} | ||
|
||
{% call embedCard({ | ||
ytId: "x91MPoITQ3I", | ||
transcriptHref: "https://www.google.com", | ||
authorImgSrc: "/images/yt-thumb-example.jpg", | ||
title: "Test Video" | ||
}) %} | ||
{% endcall %} |
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