Skip to content

Commit

Permalink
pew!
Browse files Browse the repository at this point in the history
  • Loading branch information
kaliumxyz committed May 4, 2017
1 parent 43e1802 commit 30572fc
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</head>
<body>
<main>
</main>
</main>
<h1>press space or tap the screen</h1>
<div class='center'>
<ul class='options terminal'>
Expand Down
Binary file added app/style.css
Binary file not shown.
Binary file modified assets/css/style.css
Binary file not shown.
12 changes: 8 additions & 4 deletions assets/sass/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ html, body, canvas
overflow: hidden
font-family: 'Roboto Mono', monospace

@keyframes blink
0% background: rgba(255,105,180,0.8)
50% background: transparent
100% background: rgba(255,105,180,0.8)

@keyframes blink
0%
background: rgba(255,10,180,0.8)
50%
background: transparent
100%
background: rgba(255,105,180,0.8)

main
position: fixed
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function createWindow() {

//win.setIgnoreMouseEvents(true)

win.loadURL(`file://${__dirname}/asap/index.html`)
win.loadURL(`file://${__dirname}/app/index.html`)

// Opens the DevTools.
// win.webContents.openDevTools()
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "asap",
"description": "pewpewpew",
"main": "main.js",
"main": "index.js",
"author": "kalium",
"license": "MIT",
"dependencies": {
Expand All @@ -12,7 +12,8 @@
"nodemon": "^1.11.0"
},
"scripts": {
"build-css": "node-sass --include-path sass assets\\sass\\* assets\\css\\",
"watch-css": "nodemon -e sass -x \"npm run build-css\""
"build-css": "node-sass --include-path sass style.sass style.css",
"watch-css": "nodemon -e sass -x \"npm run build-css\"",
"start": "electron ."
}
}
69 changes: 69 additions & 0 deletions style.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
html, body, canvas
margin: 0
padding: 0
overflow: hidden
font-family: 'Roboto Mono', monospace

@keyframes blink
0% background: rgba(255,105,180,0.8)
50% background: transparent
100% background: rgba(255,105,180,0.8)

main
position: fixed
width: 540px
left: calc(50% - 260px)


h1
width: 100%
top: 80px
position: fixed
text-align: center
user-select: none

.center
top: 280px
position: fixed
width: 100%

.options
background: black
color: white
margin: 0 auto
padding: 10px
width: 540px
user-select: none

.option
padding: 0
margin: 0

.active
background: white
color: black

.cursor
padding: 0
animation: 1s blink step-end infinite

code
position: fixed
top: 0
left: 0
z-index: 2
background: white
min-width: 200px
min-height: 40px

.menu
position: fixed
list-style: none
top: 0
left: 0
z-index: 2
background: white
min-height: 40px

ul
list-style: none

0 comments on commit 30572fc

Please sign in to comment.