Skip to content

Commit

Permalink
SWED-2249 style showroom
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenraphti committed Oct 4, 2023
1 parent f32da08 commit 7de3af1
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 39 deletions.
58 changes: 34 additions & 24 deletions src/App/Playbook/content/Showroom/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ const Showroom = () => (
<picture>
<source
type="image/avif"
srcSet={`${basename}img/documentation/playbook/playbook-showroom-5.avif`}
srcSet={`${basename}img/documentation/playbook/playbook-showroom-4.avif`}
/>
<img
className=""
src={`${basename}img/documentation/playbook/playbook-showroom-5.png`}
src={`${basename}img/documentation/playbook/playbook-showroom-4.png`}
alt="illustration swedbankpay playbook showroom"
style={{ "aspect-ratio": "710 / 351" }}
style={{ "aspect-ratio": "230 / 149" }}
/>
</picture>
</div>
Expand Down Expand Up @@ -78,13 +78,13 @@ const Showroom = () => (
<picture>
<source
type="image/avif"
srcSet={`${basename}img/documentation/playbook/playbook-showroom-4.avif`}
srcSet={`${basename}img/documentation/playbook/playbook-showroom-5.avif`}
/>
<img
className=""
src={`${basename}img/documentation/playbook/playbook-showroom-4.png`}
src={`${basename}img/documentation/playbook/playbook-showroom-5.png`}
alt="illustration swedbankpay playbook showroom"
style={{ "aspect-ratio": "230 / 149" }}
style={{ "aspect-ratio": "710 / 351" }}
/>
</picture>
</div>
Expand Down Expand Up @@ -155,32 +155,42 @@ const Showroom = () => (
</div>
<div className="row mt-4">
<div className="col-sm">
<picture>
<video
playsInline
autoPlay
muted
loop
style={{ "aspect-ratio": "178 / 318" }}
poster={`${basename}img/documentation/playbook/playbook-showroom-9.avif`}
>
<source
type="image/avif"
srcSet={`${basename}img/documentation/playbook/playbook-showroom-9.avif`}
src={`${basename}img/documentation/playbook/playbook-showroom-9.av1`}
type="video/av1"
/>
<img
className=""
src={`${basename}img/documentation/playbook/playbook-showroom-9.png`}
alt="illustration swedbankpay playbook showroom"
loading="lazy"
<source
src={`${basename}img/documentation/playbook/playbook-showroom-9.mp4`}
type="video/mp4"
/>
</picture>
</video>
</div>
<div className="col-sm">
<picture>
<video
playsInline
autoPlay
muted
loop
style={{ "aspect-ratio": "145 / 318" }}
poster={`${basename}img/documentation/playbook/playbook-showroom-10.avif`}
>
<source
type="image/avif"
srcSet={`${basename}img/documentation/playbook/playbook-showroom-10.avif`}
src={`${basename}img/documentation/playbook/playbook-showroom-10.av1`}
type="video/av1"
/>
<img
className=""
src={`${basename}img/documentation/playbook/playbook-showroom-10.png`}
alt="illustration swedbankpay playbook showroom"
loading="lazy"
<source
src={`${basename}img/documentation/playbook/playbook-showroom-10.mp4`}
type="video/mp4"
/>
</picture>
</video>
</div>
<div className="col-sm">
<picture>
Expand Down
33 changes: 18 additions & 15 deletions src/less/documentation-swedbankpay.less
Original file line number Diff line number Diff line change
Expand Up @@ -743,26 +743,29 @@
gap: var(--gap);
justify-content: space-between;

.col-sm {
> div {
padding-left: 0;
padding-right: 0;
}

img,
video {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 2px;
}
img,
video {
width: 100%;
object-fit: cover;
border-radius: 2px;
}

video {
max-width: 100%;
max-height: 100%;
img {
height: 100%;
}

@media (max-width: @screen-sm-min) {
height: auto;
width: 100%;
}
video {
max-width: 100%;
max-height: 100%;

@media (max-width: @screen-sm-min) {
height: auto;
width: 100%;
}
}
}
Expand Down

0 comments on commit 7de3af1

Please sign in to comment.