Skip to content

Commit

Permalink
Add OG images and meta description (wintercg#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed May 9, 2022
1 parent 45ffffd commit 5649624
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/** @jsxFrag Fragment */
import { serve } from "https://deno.land/[email protected]/http/server.ts";
import { serveDir } from "https://deno.land/[email protected]/http/file_server.ts";
import { h, ssr } from "https://crux.land/[email protected]";
import { Fragment, h, Helmet, ssr } from "https://crux.land/[email protected]";

import work from "./data/work.json" assert { type: "json" };

Expand Down Expand Up @@ -244,11 +244,29 @@ function Faq() {
);
}
const DESCRIPTION =
"The Web-interoperable Runtimes Community Group aims to provide a space for JS runtimes to collaborate on API interoperability.";
function Layout(props) {
return (
<div class="mx-auto px-4 py-8 max-w-screen-md">
{props.children}
</div>
<>
<Helmet>
<title>WinterCG</title>
<link
rel="shortcut icon"
href="/static/logo.svg"
type="image/svg+xml"
/>
<meta name="description" content={DESCRIPTION} />
<meta name="og:title" content="WinterCG" />
<meta name="og:description" content={DESCRIPTION} />
<meta name="og:image" content="https://wintercg.org/static/cover.png" />
<meta name="og:url" content="https://wintercg.org" />
</Helmet>
<div class="mx-auto px-4 py-8 max-w-screen-md">
{props.children}
</div>
</>
);
}
Expand Down Expand Up @@ -388,7 +406,10 @@ function Footer() {
<footer class="mt-16 text-center border-t-1 border-gray-100 p-4">
<p class="text-sm text-gray-600">
Copyright © WinterCG. This work is licensed under the{" "}
<a href="http:https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document">
<a
href="http:https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document"
class="hover:underline"
>
W3C Software and Document License
</a>.
</p>
Expand Down
Binary file added static/cover.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5649624

Please sign in to comment.