Skip to content

Commit c75d321

Browse files
committed
add link preview to website
1 parent b8c287c commit c75d321

File tree

3 files changed

+48
-47
lines changed

3 files changed

+48
-47
lines changed

assets/logo.png

15.7 KB
Loading

assets/logo.svg

Lines changed: 37 additions & 35 deletions
Loading

index.html

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
66
<title>blobs</title>
77
<script src="https://unpkg.com/blobs/v2"></script>
8+
<meta property="og:url" content="https://blobs.dev" />
9+
<meta property="og:type" content="website" />
10+
<meta property="og:title" content="blobs" />
11+
<meta property="og:description" content="Random blob generator" />
12+
<meta property="og:image" content="https://blobs.dev/assets/logo.png" />
813
</head>
914
<body>
1015
<style>
@@ -66,18 +71,12 @@
6671
if (!mobileElem) return;
6772
console.log(window.innerWidth);
6873

69-
mobileElem.innerHTML = blobs2.svg(
70-
{
71-
seed: Math.random(),
72-
extraPoints: 4,
73-
randomness: 6,
74-
size: Math.min(600, window.innerWidth - 100),
75-
},
76-
{
77-
stroke: "black",
78-
strokeWidth: -10,
79-
},
80-
);
74+
mobileElem.innerHTML = blobs2.svg({
75+
seed: Math.random(),
76+
extraPoints: 4,
77+
randomness: 6,
78+
size: Math.min(600, window.innerWidth - 100),
79+
});
8180
}
8281

8382
refresh();

0 commit comments

Comments
 (0)