new directory structure and starting settings pages

This commit is contained in:
shockrahwow 2020-04-17 18:46:05 -07:00
parent 0b607a7e64
commit cc0699f095
4 changed files with 43 additions and 4 deletions

View File

@ -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();
}

View File

@ -2,12 +2,13 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<link rel="stylesheet" href="./resources/css/pure.css"/>
<link rel="stylesheet" href="./src/css/welcome.css"/>
<link rel="stylesheet" href="../resources/css/pure.css"/>
<link rel="stylesheet" href="../src/css/welcome.css"/>
<title>Freechat</title>
</head>
<body>
<h1 class="center">Freechat login</h1>
<script src="../js/local-auth.js"></script>
<form class="pure-form center">
<fieldset>
<input id="domainname" type="text" placeholder="Domain: freechat.io"><br>
@ -17,4 +18,4 @@
</fieldset>
</form>
</body>
</html>
</html>

View File

@ -0,0 +1,12 @@
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<link rel="stylesheet" href="../resources/css/pure.css"/>
<link rel="stylesheet" href="../src/css/settings.css"/>
<title>Settings</title>
</head>
<body>
<p>this is the settings page</p>
</body>
</html>

View File

@ -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;
}