added meta tags to daily call (#961)

This commit is contained in:
Peer Richelsen 2021-10-15 00:08:14 +01:00 committed by GitHub
parent 59e25ad04e
commit 12f72e0283
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 14 deletions

View File

@ -1,9 +1,12 @@
import DailyIframe from "@daily-co/daily-js";
import { getSession } from "next-auth/client";
import Head from "next/head";
import Link from "next/link";
import { useRouter } from "next/router";
import React, { useEffect } from "react";
import { HeadSeo } from "@components/seo/head-seo";
import prisma from "../../lib/prisma";
export default function JoinCall(props, session) {
@ -50,20 +53,29 @@ export default function JoinCall(props, session) {
}, []);
return (
<div style={{ zIndex: 2, position: "relative" }}>
<Link href="/">
<img
className="hidden sm:inline-block z-10 fixed w-auto h-5"
src="https://cal.com/logo-white.svg"
alt="Cal.com Logo"
style={{
top: 46,
left: 24,
}}
/>
</Link>
{JoinCall}
</div>
<>
<HeadSeo title="Video Conference" description="Join the video call" />
<Head>
<meta property="og:type" content="website" />
<meta property="og:image" content="https://cal.com/video-og-image.png" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:image" content="https://cal.com/video-og-image.png" />
</Head>
<div style={{ zIndex: 2, position: "relative" }}>
<Link href="/">
<img
className="hidden sm:inline-block z-10 fixed w-auto h-5"
src="https://cal.com/logo-white.svg"
alt="Cal.com Logo"
style={{
top: 46,
left: 24,
}}
/>
</Link>
{JoinCall}
</div>
</>
);
}

BIN
public/video-og-image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 KiB