@@ -8,6 +8,8 @@ import { TABS, TabId } from './slider/tabs-config';
8
8
const title = 'React Native Awesome Slider' ;
9
9
const description =
10
10
'A versatile, responsive react native abd web Slider component.' ;
11
+ const baseUrl = process . env . NEXT_PUBLIC_SITE_URL || 'https://slider.0xalt.xyz/' ;
12
+ const ogImage = `${ baseUrl } /og-image.png` ;
11
13
12
14
export const IndexPage = ( ) => {
13
15
const [ activeTab , setActiveTab ] = useState < TabId > ( TABS [ 1 ] . id ) ;
@@ -25,13 +27,13 @@ export const IndexPage = () => {
25
27
< meta property = "og:title" content = { title } />
26
28
< meta property = "og:description" content = { description } />
27
29
< meta property = "og:type" content = "website" />
28
- < meta property = "og:image" content = "/og-image.png" />
30
+ < meta property = "og:image" content = { ogImage } />
29
31
< meta property = "og:image:width" content = "1200" />
30
32
< meta property = "og:image:height" content = "630" />
31
33
< meta name = "twitter:card" content = "summary_large_image" />
32
34
< meta name = "twitter:title" content = { title } />
33
35
< meta name = "twitter:description" content = { description } />
34
- < meta name = "twitter:image" content = "/og-image.png" />
36
+ < meta name = "twitter:image" content = { ogImage } />
35
37
</ Head >
36
38
< div className = "flex flex-col items-center justify-center relative overflow-hidden min-h-screen bg-[#0A0A0A]" >
37
39
< div className = "absolute inset-0 bg-[linear-gradient(to_right,#ffffff0f_1px,transparent_1px),linear-gradient(to_bottom,#ffffff0f_1px,transparent_1px)] bg-[size:24px_24px]" />
0 commit comments