diff --git a/src/index.css b/src/index.css new file mode 100644 index 0000000..f240d2f --- /dev/null +++ b/src/index.css @@ -0,0 +1,6 @@ +body { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; + margin: auto; + max-width: 38rem; + padding: 2rem; + } diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..348de0b --- /dev/null +++ b/src/index.html @@ -0,0 +1,33 @@ + + + + + Hello World! + + + + + + +

💖 Hello World!

+

Welcome to your Electron application.

+ + + + + diff --git a/src/renderer.js b/src/renderer.js new file mode 100644 index 0000000..4a35347 --- /dev/null +++ b/src/renderer.js @@ -0,0 +1,31 @@ +/** + * This file will automatically be loaded by webpack and run in the "renderer" context. + * To learn more about the differences between the "main" and the "renderer" context in + * Electron, visit: + * + * https://electronjs.org/docs/tutorial/application-architecture#main-and-renderer-processes + * + * By default, Node.js integration in this file is disabled. When enabling Node.js integration + * in a renderer process, please be aware of potential security implications. You can read + * more about security risks here: + * + * https://electronjs.org/docs/tutorial/security + * + * To enable Node.js integration in this file, open up `main.js` and enable the `nodeIntegration` + * flag: + * + * ``` + * // Create the browser window. + * mainWindow = new BrowserWindow({ + * width: 800, + * height: 600, + * webPreferences: { + * nodeIntegration: true + * } + * }); + * ``` + */ + +import './index.css'; + +console.log('👋 This message is being logged by "renderer.js", included via webpack');