| 1 | import React, {Component} from 'react'; |
| 2 | |
| 3 | import './Chrome.css'; |
| 4 | |
| 5 | export default class Chrome extends Component { |
| 6 | render() { |
| 7 | const assets = this.props.assets; |
| 8 | return ( |
| 9 | <html lang="en"> |
| 10 | <head> |
| 11 | <meta charSet="utf-8" /> |
| 12 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 13 | <link rel="shortcut icon" href="favicon.ico" /> |
| 14 | <link rel="stylesheet" href={assets['main.css']} /> |
| 15 | <link rel="preconnect" href="https://fonts.googleapis.com" /> |
| 16 | <link |
| 17 | rel="preconnect" |
| 18 | href="https://fonts.gstatic.com" |
| 19 | crossOrigin="" |
| 20 | /> |
| 21 | <link |
| 22 | href="https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap" |
| 23 | rel="stylesheet" |
| 24 | /> |
| 25 | <title>{this.props.title}</title> |
| 26 | </head> |
| 27 | <body> |
| 28 | <noscript |
| 29 | dangerouslySetInnerHTML={{ |
| 30 | __html: `<b>Enable JavaScript to run this app.</b>`, |
| 31 | }} |
| 32 | /> |
| 33 | {this.props.children} |
| 34 | <script |
| 35 | dangerouslySetInnerHTML={{ |
| 36 | __html: `assetManifest = ${JSON.stringify(assets)};`, |
| 37 | }} |
| 38 | /> |
| 39 | </body> |
| 40 | </html> |
| 41 | ); |
| 42 | } |
| 43 | } |