src/app/components/AmpIframe/__snapshots__/index.test.tsx.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`VJ include container on Amp should render an amp-iframe with an image placeholder 1`] = `
@media (max-width: 14.9375rem) {
.emotion-0 {
padding: 0 0.5rem;
margin-left: 0%;
}
}
@media (min-width: 15rem) and (max-width: 24.9375rem) {
.emotion-0 {
padding: 0 0.5rem;
margin-left: 0%;
}
}
@media (min-width: 25rem) and (max-width: 37.4375rem) {
.emotion-0 {
padding: 0 1rem;
margin-left: 0%;
}
}
@media (min-width: 37.5rem) and (max-width: 62.9375rem) {
.emotion-0 {
padding: 0 1rem;
margin-left: 0%;
}
}
@media (min-width: 63rem) and (max-width: 79.9375rem) {
.emotion-0 {
margin-left: 20%;
}
}
@media (min-width: 80rem) {
.emotion-0 {
margin-left: 40%;
}
}
@supports (display: grid) {
.emotion-0 {
display: block;
width: initial;
margin: 0;
}
@media (max-width: 14.9375rem) {
.emotion-0 {
grid-template-columns: repeat(6, 1fr);
grid-column-end: span 6;
padding: 0 0.5rem;
grid-column-start: 1;
}
}
@media (min-width: 15rem) and (max-width: 24.9375rem) {
.emotion-0 {
grid-template-columns: repeat(6, 1fr);
grid-column-end: span 6;
padding: 0 0.5rem;
grid-column-start: 1;
}
}
@media (min-width: 25rem) and (max-width: 37.4375rem) {
.emotion-0 {
grid-template-columns: repeat(6, 1fr);
grid-column-end: span 6;
padding: 0 1rem;
grid-column-start: 1;
}
}
@media (min-width: 37.5rem) and (max-width: 62.9375rem) {
.emotion-0 {
grid-template-columns: repeat(5, 1fr);
grid-column-end: span 5;
padding: 0 1rem;
grid-column-start: 1;
}
}
@media (min-width: 63rem) and (max-width: 79.9375rem) {
.emotion-0 {
grid-template-columns: repeat(5, 1fr);
grid-column-end: span 5;
grid-column-start: 2;
}
}
@media (min-width: 80rem) {
.emotion-0 {
grid-template-columns: repeat(10, 1fr);
grid-column-end: span 10;
grid-column-start: 5;
}
}
}
.emotion-2 {
background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 1) 75%, rgba(255, 255, 255, 0) 100%);
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
-webkit-justify-content: center;
justify-content: center;
}
.emotion-2::after {
background-color: #FFFFFF;
border-top: 0.125rem solid #222222;
content: "";
display: block;
height: 50%;
left: 0;
position: absolute;
top: 0;
width: 100%;
z-index: -10;
}
.emotion-3 {
font-family: ReithSans,Helvetica,Arial,sans-serif;
font-style: normal;
font-weight: 700;
font-size: 0.9375rem;
line-height: 1.25rem;
background-color: #222222;
border: 0.0625rem solid transparent;
color: #FFFFFF;
cursor: pointer;
display: block;
padding: 0.5rem 1rem;
}
@media (min-width: 20rem) and (max-width: 37.4375rem) {
.emotion-3 {
font-size: 1rem;
line-height: 1.25rem;
}
}
@media (min-width: 37.5rem) {
.emotion-3 {
font-size: 1rem;
line-height: 1.25rem;
}
}
.emotion-3:focus,
.emotion-3:hover {
-webkit-text-decoration: underline;
text-decoration: underline;
}
<div>
<div
class="emotion-0 emotion-1"
dir="ltr"
>
<amp-iframe
height="360"
layout="responsive"
resizable=""
sandbox="allow-scripts allow-same-origin allow-top-navigation-by-user-activation allow-forms"
src="https://news.files.bbci.co.uk/include/newsspec/21841-green-diet/gahuza/app/amp?responsive=true&newsapps=true&app-image=https://news.files.bbci.co.uk/vj/live/idt-images/image-slider-asdf/app_launcher_ws_640_7ania.png&app-clickable=true&-clickable=true&-image-height=360&-image-width=640&-image=https://news.files.bbci.co.uk/vj/live/idt-images/image-slider-asdf/app_launcher_ws_640_7ania.png"
width="640"
>
<div
class="emotion-2"
overflow=""
>
<button
class="emotion-3"
type="button"
>
Show more
</button>
</div>
<amp-img
layout="fill"
placeholder="true"
src="https://news.files.bbci.co.uk/vj/live/idt-images/image-slider-asdf/app_launcher_ws_640_7ania.png"
/>
</amp-iframe>
</div>
</div>
`;