docs: structure clean & showcase

This commit is contained in:
jean-emmanuel 2019-03-29 09:43:58 +01:00
parent f97a2cf0ba
commit e99b41d208
7 changed files with 22 additions and 12 deletions

1
.gitignore vendored
View file

@ -10,4 +10,3 @@ app/server/*
app/package.json
package-lock.json
*.pyc
resources/site

View file

@ -1 +1,3 @@
theme/styles.css
site/*
!site/.htaccess

View file

@ -7,7 +7,7 @@
"doc": "docs"
},
"scripts": {
"build": "node scripts/build-css && mkdocs build && rsync -a --copy-links site_misc/ site/"
"build": "node scripts/build-css && mkdocs build"
},
"author": "",
"license": "ISC",

View file

@ -44,7 +44,7 @@ pre, code {
display: block;
z-index: 2;
position: relative;
// cursor: pointer;
cursor: pointer;
}
.icon-play {
@ -56,13 +56,17 @@ pre, code {
margin-top:-$size/2;
width: $size;
height: $size;
border-bottom:$size/2 solid transparent;
border-top:$size/2 solid transparent;
border-left:$size solid #fff;
opacity: 0.75;
border-radius: 100%;
box-shadow: 0 0 20px 0 rgba(black, 0.2);
filter: saturate(0);
transition: filter 1s;
pointer-events: none;
}
&:hover .icon-play {
filter: saturate(1);
}
#showcase-frame {
z-index: 1;
opacity: 0;

View file

@ -1,9 +1,9 @@
<div id="jumbotron-showcase">
<!-- <iframe id="showcase-frame" allowfullscreen></iframe>
<div class="icon-play"></div> -->
<iframe id="showcase-frame" allowfullscreen></iframe>
<img src="{{ "img/logo.svg"|url }}" class="icon-play"/>
<img src="{{ config.extra.screenshot|url }}" id="jumbotron-img"/>
</div>
<!-- <script>
<script>
var frame = document.getElementById('showcase-frame'),
play = document.getElementById('jumbotron-img')
@ -29,4 +29,4 @@ play.onclick = function(){
load()
}
</script> -->
</script>

View file

@ -34,7 +34,12 @@ class Ipc extends EventEmitter {
this.socket.send('["pong"]')
})
this.open()
try {
this.open()
} catch(e) {
console.warn('Could not open a WebSocket connection')
console.log(e)
}
}