Skip to content

Commit

Permalink
Live photo fun
Browse files Browse the repository at this point in the history
  • Loading branch information
nqst committed May 2, 2024
1 parent 15baf91 commit 3e90d6f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion css/main.css

Large diffs are not rendered by default.

Binary file added i/video/amsterdam.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added i/video/amsterdam.mp4
Binary file not shown.
6 changes: 6 additions & 0 deletions lists/countries.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
<main class="main">
<div class="container container--full">
<header class="page-header">
<figure class="page-header__figure">
<video class="page-header__video" poster="/i/video/amsterdam.jpg" autoplay loop muted playsinline>
<source src="/i/video/amsterdam.mp4" type="video/mp4">
</video>
</figure>

<h1 class="page-header__title">Країни, де я був <span class="title-counter">{{ site.data.countries | size }}</span></h1>
</header>

Expand Down
12 changes: 12 additions & 0 deletions src/css/partials/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,18 @@ figure.figure--wide,
line-height: 1.45;
text-wrap: balance;
}

&__figure {
margin: 0 0 2em;
width: 100%;
max-width: 640px;
}

&__video {
width: 100%;
height: auto;
border-radius: 5px;
}
}

.item-locked {
Expand Down

0 comments on commit 3e90d6f

Please sign in to comment.