From cc0699f095c495bbd5905e65c74b379616a845a2 Mon Sep 17 00:00:00 2001 From: shockrahwow Date: Fri, 17 Apr 2020 18:46:05 -0700 Subject: [PATCH] new directory structure and starting settings pages --- freechat-client/main.js | 4 +++- freechat-client/{ => src/pages}/index.html | 7 ++++--- freechat-client/src/pages/settings.html | 12 +++++++++++ freechat-client/src/sass/settings.scss | 24 ++++++++++++++++++++++ 4 files changed, 43 insertions(+), 4 deletions(-) rename freechat-client/{ => src/pages}/index.html (78%) create mode 100644 freechat-client/src/pages/settings.html create mode 100644 freechat-client/src/sass/settings.scss diff --git a/freechat-client/main.js b/freechat-client/main.js index 28b3d75..ec99b8a 100644 --- a/freechat-client/main.js +++ b/freechat-client/main.js @@ -6,11 +6,13 @@ function createWin() { let win = new BrowserWindow({ width: 800, height: 600, + minWidth: 640, + minHeight: 480, webPreferences: { nodeIntegration: true } }) - win.loadFile('index.html'); + win.loadFile('./src//pages/index.html'); if(process.platform !== 'darwin') { win.removeMenu(); } diff --git a/freechat-client/index.html b/freechat-client/src/pages/index.html similarity index 78% rename from freechat-client/index.html rename to freechat-client/src/pages/index.html index cb04351..af10837 100644 --- a/freechat-client/index.html +++ b/freechat-client/src/pages/index.html @@ -2,12 +2,13 @@ - - + + Freechat

Freechat login

+

@@ -17,4 +18,4 @@
- \ No newline at end of file + diff --git a/freechat-client/src/pages/settings.html b/freechat-client/src/pages/settings.html new file mode 100644 index 0000000..dadbe04 --- /dev/null +++ b/freechat-client/src/pages/settings.html @@ -0,0 +1,12 @@ + + + + + + + Settings + + +

this is the settings page

+ + diff --git a/freechat-client/src/sass/settings.scss b/freechat-client/src/sass/settings.scss new file mode 100644 index 0000000..6965ca1 --- /dev/null +++ b/freechat-client/src/sass/settings.scss @@ -0,0 +1,24 @@ +@import 'general'; + +$text-color: white; + +label { + color: $text-color; +} + +h1 { + color: $text-color; + display: block; +} +.center { + margin: 0 auto; + text-align: center; +} +::placeholder { + color: $back-grey; +} + +input { + margin-top: 0.5em; + margin-bottom: 0.5em; +}