Skip to content

Commit

Permalink
base
Browse files Browse the repository at this point in the history
  • Loading branch information
oguh43 committed Jul 20, 2022
1 parent d8a1206 commit ce827b1
Show file tree
Hide file tree
Showing 8 changed files with 3,396 additions and 0 deletions.
Binary file added build/icon.ico
Binary file not shown.
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>
<link rel="stylesheet" href="./main.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap" rel="stylesheet">
</head>

<body>
<p>Launching ITkids obedy</p>
<div id="control"></div>

<label for="download" id="download-label"></label>

<progress id="download" max="100" value="0"></progress>

<script src="./update.js"></script>
</body>

</html>
33 changes: 33 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const { app, BrowserWindow } = require('electron');

function createWindow() {
const win = new BrowserWindow({
height: 200,
width: 600,
webPreferences: {
nodeIntegration: true,
enableRemoteModule: true
},
frame: false,
maximizable: false,
minimizable: false,
title: 'ITkids obedy',
});

win.setTitle('ITkids obedy');
win.loadFile('./index.html');
}

app.whenReady().then(createWindow);

app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit();
}
});

app.on('activate', () => {
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
});
37 changes: 37 additions & 0 deletions main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
body{
background: #1a1a1a;
color: white;
}

#control{
-webkit-app-region: drag;
width: 100%;
height: 100vh;
z-index: 99;
top: 0;
left: 0;
position: absolute;
background: transparent;
}

#download{
position: absolute;
bottom: 15px;
width: 80%;
left: 10%;
height: 25px;
}

#download-label{
position: absolute;
top: 20vh;
width: 97%;
text-align: center;
font-size: 48px;
font-family: 'Montserrat', sans-serif;
font-weight: 300;
}
p{
font-family: 'Montserrat', sans-serif;
font-weight: 300;
}
Loading

0 comments on commit ce827b1

Please sign in to comment.