|
| 1 | + |
| 2 | +import Head from 'next/head' |
| 3 | + |
| 4 | + |
| 5 | +export default function Header(props) { |
| 6 | + |
| 7 | + |
| 8 | + return ( |
| 9 | + |
| 10 | + <Head> |
| 11 | + <title>{props.title || "Sauveur"}</title> |
| 12 | + <link rel="shortcut icon" type="image/jpg" href="/images/favicon.jpg" /> |
| 13 | + <meta name="description" content={props.desc || "Digital Transformation for small business"} /> |
| 14 | + <meta name="author" content="Rawk" /> |
| 15 | + <meta name='viewport' content='width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no' /> |
| 16 | + |
| 17 | + <meta property="og:type" content="website" /> |
| 18 | + <meta property="og:title" content={props.title || "Sauveur"} /> |
| 19 | + <meta property="og:description" content={props.desc || "Digital Transformation for small business"} /> |
| 20 | + <meta |
| 21 | + property="og:image" |
| 22 | + content={props.image|| "https://devuniversity.github.io/dot/card.jpg"} |
| 23 | + /> |
| 24 | + <meta property="og:url" content="https://sauveur.xyz" /> |
| 25 | + |
| 26 | + <link rel="apple-touch-icon" href="/images/icon_alt.png"></link> |
| 27 | + <meta name="theme-color" content="#317EFB"/> |
| 28 | + |
| 29 | + |
| 30 | + <meta name="mobile-web-app-capable" content="yes"/> |
| 31 | + <meta name="apple-mobile-web-app-capable" content="yes"/> |
| 32 | + <meta name="apple-mobile-web-app-status-bar-style" content="default"/> |
| 33 | + <meta name="apple-mobile-web-app-title" content={props.title}/> |
| 34 | + |
| 35 | + {/* Global site tag (gtag.js) - Google Analytics */} |
| 36 | + <script async src={`https://www.googletagmanager.com/gtag/js?id=${props.tag || "" }`}></script> |
| 37 | + <script async src="/scripts/ga.js"> |
| 38 | + gtag('config', `${props.tag || "" }`); |
| 39 | + </script> |
| 40 | + <link href="/manifest.json" rel="manifest"></link> |
| 41 | + {/* <script src="https://cdn.jsdelivr.net/npm/@shopify/[email protected]/lib/sortable.js"></script> */} |
| 42 | + |
| 43 | + {props.children} |
| 44 | + </Head> |
| 45 | + |
| 46 | + ) |
| 47 | +} |
0 commit comments