1
1
import type { NextPage } from "next" ;
2
2
import { useState } from "react" ;
3
- import Head from "next/head" ;
4
3
import { Innovate , Spaceship , Streamline } from "@carbon/pictograms-react" ;
5
4
// import LiteYouTubeEmbed from "react-lite-youtube-embed";
6
5
7
6
import Hero from "components/Hero" ;
7
+ import Head from "components/Head" ;
8
8
import Callout , { CalloutBody , CalloutHeading } from "components/Callout" ;
9
9
import Lightbox from "components/Lightbox" ;
10
10
import { TwoColumn , TwoColumnFeature } from "components/TwoColumn" ;
@@ -19,43 +19,16 @@ const Home: NextPage = () => {
19
19
const [ lightboxOpen , setLightboxOpen ] = useState ( false ) ;
20
20
return (
21
21
< >
22
- < Head >
23
- < title > IBM Research | CodeFlare</ title >
24
- < meta name = "description" content = "CodeFlare by IBM Research" />
25
- < meta
26
- name = "description"
27
- content = "Let your AI and ML teams innovate where it matters. We‘ll handle the rest."
28
- />
29
-
30
- { /* <!-- Facebook Meta Tags --> */ }
31
- < meta property = "og:url" content = "https://codeflare.dev" />
32
- < meta property = "og:type" content = "website" />
33
- < meta property = "og:title" content = "IBM Research | CodeFlare" />
34
- < meta
35
- property = "og:description"
36
- content = "Let your AI and ML teams innovate where it matters. We‘ll handle the rest."
37
- />
38
- < meta property = "og:image" content = "https://i.imgur.com/keyAdnw.png" />
39
-
40
- { /* <!-- Twitter Meta Tags --> */ }
41
- < meta name = "twitter:card" content = "summary_large_image" />
42
- < meta property = "twitter:domain" content = "codeflare.dev" />
43
- < meta property = "twitter:url" content = "https://codeflare.dev" />
44
- < meta name = "twitter:title" content = "IBM Research | CodeFlare" />
45
- < meta
46
- name = "twitter:description"
47
- content = "Let your AI and ML teams innovate where it matters. We‘ll handle the rest."
48
- />
49
- < meta
50
- name = "twitter:image"
51
- content = "https://i.imgur.com/keyAdnw.png"
52
- > </ meta >
53
- < link rel = "icon" href = "/favicon.ico" />
54
- </ Head >
22
+ < Head />
55
23
< Hero setLightboxOpen = { setLightboxOpen } src = { heroImage } />
56
24
< Lightbox open = { lightboxOpen } setOpen = { setLightboxOpen } >
57
25
< video
58
26
onEnded = { ( ) => setLightboxOpen ( false ) }
27
+ onPlay = { ( ) => {
28
+ if ( ( window as any ) . plausible ) {
29
+ ( window as any ) . plausible ( "Video played" ) ;
30
+ }
31
+ } }
59
32
preload = "auto"
60
33
autoPlay
61
34
playsInline
0 commit comments