added meta tags to daily call (#961)
This commit is contained in:
parent
59e25ad04e
commit
12f72e0283
2 changed files with 26 additions and 14 deletions
|
@ -1,9 +1,12 @@
|
||||||
import DailyIframe from "@daily-co/daily-js";
|
import DailyIframe from "@daily-co/daily-js";
|
||||||
import { getSession } from "next-auth/client";
|
import { getSession } from "next-auth/client";
|
||||||
|
import Head from "next/head";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import React, { useEffect } from "react";
|
import React, { useEffect } from "react";
|
||||||
|
|
||||||
|
import { HeadSeo } from "@components/seo/head-seo";
|
||||||
|
|
||||||
import prisma from "../../lib/prisma";
|
import prisma from "../../lib/prisma";
|
||||||
|
|
||||||
export default function JoinCall(props, session) {
|
export default function JoinCall(props, session) {
|
||||||
|
@ -50,20 +53,29 @@ export default function JoinCall(props, session) {
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ zIndex: 2, position: "relative" }}>
|
<>
|
||||||
<Link href="/">
|
<HeadSeo title="Video Conference" description="Join the video call" />
|
||||||
<img
|
<Head>
|
||||||
className="hidden sm:inline-block z-10 fixed w-auto h-5"
|
<meta property="og:type" content="website" />
|
||||||
src="https://cal.com/logo-white.svg"
|
<meta property="og:image" content="https://cal.com/video-og-image.png" />
|
||||||
alt="Cal.com Logo"
|
<meta property="twitter:card" content="summary_large_image" />
|
||||||
style={{
|
<meta property="twitter:image" content="https://cal.com/video-og-image.png" />
|
||||||
top: 46,
|
</Head>
|
||||||
left: 24,
|
<div style={{ zIndex: 2, position: "relative" }}>
|
||||||
}}
|
<Link href="/">
|
||||||
/>
|
<img
|
||||||
</Link>
|
className="hidden sm:inline-block z-10 fixed w-auto h-5"
|
||||||
{JoinCall}
|
src="https://cal.com/logo-white.svg"
|
||||||
</div>
|
alt="Cal.com Logo"
|
||||||
|
style={{
|
||||||
|
top: 46,
|
||||||
|
left: 24,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
{JoinCall}
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
BIN
public/video-og-image.png
Normal file
BIN
public/video-og-image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 401 KiB |
Loading…
Reference in a new issue