-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial push. * Rebuild * Add `og:video` if post is featured and has video.
- Loading branch information
Showing
19 changed files
with
222 additions
and
91 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
layout: error | ||
title: Error | ||
image: /assets/img/og.png | ||
--- |
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
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,43 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ page.lang | default: site.lang | default: 'en' }}"> | ||
<head> | ||
{% include head.html %} | ||
</head> | ||
<body style="overflow: hidden"> | ||
{% include header.html %} | ||
<video | ||
autoplay | ||
muted | ||
loop | ||
playsinline | ||
poster="/assets/video/about-banner.jpg" | ||
class="error-video" | ||
> | ||
<source src="/assets/video/about-banner.mp4" type="video/mp4" /> | ||
<source src="/assets/video/about-banner.ogv" type="video/ogv" /> | ||
<source src="/assets/video/about-banner.webm" type="video/webm" /> | ||
</video> | ||
|
||
<div class="error-content"> | ||
<img src="/assets/img/error.gif" alt="Where am I?" draggable="false" /> | ||
<h1 id="error-title"></h1> | ||
<a href="/" class="button" data-variant="call-to-action">Go home</a> | ||
</div> | ||
|
||
<script> | ||
document.addEventListener("DOMContentLoaded", function () { | ||
var messages = [ | ||
"Somehow you found yourself somewhere you shouldn't be!", | ||
"You’ve wandered outside the festival grounds!", | ||
"Too much partying, you’ve lost your way!", | ||
"Dude, you're in the wrong tent!", | ||
"Seems like you took too much special K, and have dissociated!", | ||
]; | ||
var randomIndex = Math.floor(Math.random() * messages.length); | ||
var randomMessage = messages[randomIndex]; | ||
|
||
document.getElementById("error-title").innerText = randomMessage; | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ page.lang | default: site.lang | default: 'en' }}"> | ||
<head> | ||
{% include head.html %} | ||
{% include head.html %} {% if page.featured and page.video %} | ||
<meta | ||
property="og:video" | ||
content="{{ site.url }}/assets/video/events/{{ page.title | slugify }}.mp4" | ||
/> | ||
{% endif %} | ||
<script src="https://unpkg.com/[email protected]/dist/color.js"></script> | ||
<script | ||
async | ||
|
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
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
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,28 @@ | ||
.error-video, | ||
.error-content { | ||
width: 100vw; | ||
width: 100dvw; | ||
height: 100vh; | ||
height: 100dvh; | ||
} | ||
|
||
.error-video { | ||
object-fit: cover; | ||
position: absolute; | ||
inset: 0; | ||
z-index: -1; | ||
} | ||
|
||
.error-content { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
row-gap: 1rem; | ||
text-align: center; | ||
text-wrap: balance; | ||
padding-top: max(var(--page-padding), env(safe-area-inset-top)); | ||
padding-left: max(var(--page-padding), env(safe-area-inset-left)); | ||
padding-right: max(var(--page-padding), env(safe-area-inset-right)); | ||
padding-bottom: max(var(--page-padding), env(safe-area-inset-bottom)); | ||
} |
Oops, something went wrong.