Skip to content

Commit fb367b1

Browse files
committed
Add 5 small improvements: viewport meta tag, basic styling, enhanced comments, improved .gitignore, and window title
1 parent 8a0c7d9 commit fb367b1

File tree

5 files changed

+19
-1
lines changed

5 files changed

+19
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
node_modules
2+
.DS_Store
3+
*.log
4+
dist/
5+
build/

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
56
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
67
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
78
<link href="./styles.css" rel="stylesheet">

main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ function createWindow () {
77
const mainWindow = new BrowserWindow({
88
width: 800,
99
height: 600,
10+
title: 'Minimal Repro',
1011
webPreferences: {
1112
preload: path.join(__dirname, 'preload.js')
1213
}

renderer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
* available in this process because `nodeIntegration` is turned off and
55
* `contextIsolation` is turned on. Use the contextBridge API in `preload.js`
66
* to expose Node.js functionality from the main process.
7+
*
8+
* Add your renderer process code here.
79
*/

styles.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
/* styles.css */
22

3-
/* Add styles here to customize the appearance of your app */
3+
body {
4+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
5+
padding: 20px;
6+
max-width: 800px;
7+
margin: 0 auto;
8+
}
9+
10+
h1 {
11+
color: #333;
12+
margin-bottom: 20px;
13+
}

0 commit comments

Comments
 (0)