Skip to content

Commit

Permalink
Generate embed media previews for link sharing 馃敆
Browse files Browse the repository at this point in the history
  • Loading branch information
Kezzsim committed Dec 18, 2023
1 parent 7f3782e commit b65c14c
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 6 deletions.
Binary file added images/previews/oembed_json.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/previews/square.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 24 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
<title>abandoned.ai - lost space preservation</title>
<head itemscope itemtype="https://schema.org/WebPage">
<title>abandoned.ai - Never say goodbye</title>
<!-- Link Card Preview metadata -->
<meta name="description" content="A 3D Digital archive of abandoned spaces made using machine learning." />
<meta itemprop="name" content="abandoned.ai | Never say goodbye" />
<meta itemprop="description"
content="A 3D Digital archive of abandoned spaces made using machine learning. Explorable in the browser or Virtual Reality clients." />
<meta itemprop="image" content="/images/previews/square.png" />
<link rel="alternate" type="application/json+oembed" href="https://abandoned.ai/oembed_link.json"
title="abandoned.ai" />

<meta property="og:type" content="website">
<meta property="og:url" content="https://abandoned.ai/">
<meta property="og:title" content="abandoned.ai | Never say goodbye">
<meta property="og:description"
content="A 3D Digital archive of abandoned spaces made using machine learning. Explorable in the browser or Virtual Reality clients.">
<meta property="og:image"
content="https://abandoned.ai/images/previews/square.png">

<!-- Performance and compatability metadata -->
<meta charset="utf-8" />
<meta name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
Expand Down Expand Up @@ -270,7 +288,7 @@ <h2 class="nohf">Never say goodbye</h2>
</div>

</details>

</div>

<div id="progress"></div>
Expand Down Expand Up @@ -299,9 +317,9 @@ <h2 class="nohf">Never say goodbye</h2>
<!-- Only load the fancy title animation on desktop please -->
<script>
if (navigator.maxTouchPoints === 0) {
var logoCanvas = document.getElementById("logo");
logoCanvas.style.display = "block";
document.write('<script src="./title_animation.js"><\/script>');
var logoCanvas = document.getElementById("logo");
logoCanvas.style.display = "block";
document.write('<script src="./title_animation.js"><\/script>');
}
</script>

Expand Down
11 changes: 11 additions & 0 deletions oembed_link.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "1.0",
"type": "link",
"title": "abandoned.ai - Till depth do us part",
"author_name": "Kari Barry",
"provider_name": "abandoned.ai",
"provider_url": "https://abandoned.ai",
"thumbnail_url": "https://abandoned.ai/images/previews/oembed_json.png",
"thumbnail_width": 1200,
"thumbnail_height": 630
}

0 comments on commit b65c14c

Please sign in to comment.