-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,743 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
body { | ||
background-color: #444; | ||
color: #fff; | ||
} | ||
|
||
h1 { | ||
font-family: monospace; | ||
} | ||
|
||
#terminal { | ||
font-family: monospace; | ||
} | ||
|
||
.input-line { | ||
display: flex; | ||
} | ||
|
||
.input-line > * { | ||
flex: 1; | ||
} | ||
|
||
.input-line > .prompt { | ||
flex: 0; | ||
padding-right: 0.5rem; | ||
} | ||
|
||
.output { | ||
padding-bottom: 0.5rem; | ||
} | ||
|
||
.input { | ||
color: #ffa; | ||
} | ||
|
||
.output { | ||
color: #afa; | ||
white-space: pre; | ||
} | ||
|
||
form { | ||
display: flex; | ||
} | ||
|
||
input { | ||
flex: 1; | ||
font-family: monospace; | ||
background-color: #444; | ||
color: #fff; | ||
border: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Episode 8 - Terminal App</title> | ||
<link href="app.css" rel="stylesheet" type="text/css" /> | ||
</head> | ||
<body> | ||
<h1>Very amazing terminal app</h1> | ||
<div id="terminal"> | ||
<div id="history"> | ||
<div class="input-line"> | ||
<span class="prompt">$</span> | ||
<span class="input">uname -a</span> | ||
</div> | ||
<div class="output">Darwin pallas 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64</div> | ||
|
||
<div class="input-line"> | ||
<span class="prompt">$</span> | ||
<span class="input">date</span> | ||
</div> | ||
<div class="output">Sun 1 Aug 2021 15:53:55 BST</div> | ||
</div> | ||
|
||
<div class="input-line"> | ||
<span class="prompt">$</span> | ||
<form> | ||
<input type="text" autofocus /> | ||
</form> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
let { app, BrowserWindow } = require("electron") | ||
|
||
function createWindow() { | ||
let win = new BrowserWindow({}) | ||
win.maximize() | ||
win.loadFile("index.html") | ||
} | ||
|
||
app.on("ready", createWindow) | ||
|
||
app.on("window-all-closed", () => { | ||
app.quit() | ||
}) |
Oops, something went wrong.