init
This commit is contained in:
BIN
assets/.DS_Store
vendored
Normal file
BIN
assets/.DS_Store
vendored
Normal file
Binary file not shown.
9
assets/css/style.scss
Normal file
9
assets/css/style.scss
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
---
|
||||
|
||||
@import "mixins";
|
||||
@import "config";
|
||||
@import "normalize";
|
||||
@import "opine";
|
||||
@import "snackbar";
|
||||
@import "syntax";
|
30
assets/docker-compose.yaml
Normal file
30
assets/docker-compose.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
# end user version of docker-compose
|
||||
version: '3'
|
||||
services:
|
||||
jekyll-serve:
|
||||
container_name: jekyll-serve
|
||||
image: jekyll/jekyll
|
||||
command: jekyll serve --future --draft --force_polling --livereload
|
||||
environment:
|
||||
JEKYLL_ENV: local
|
||||
ports:
|
||||
- 4000:4000
|
||||
- 35729:35729
|
||||
volumes:
|
||||
- .:/srv/jekyll
|
||||
|
||||
jekyll:
|
||||
container_name: jekyll
|
||||
image: jekyll/jekyll
|
||||
entrypoint: jekyll
|
||||
environment:
|
||||
JEKYLL_ENV: local
|
||||
volumes:
|
||||
- .:/srv/jekyll
|
||||
|
||||
bundle:
|
||||
container_name: jekyll
|
||||
image: jekyll/jekyll
|
||||
entrypoint: bundle
|
||||
volumes:
|
||||
- .:/srv/jekyll
|
4
assets/favicon/README.md
Normal file
4
assets/favicon/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
README
|
||||
======
|
||||
|
||||
Source: https://favicon.io/favicon-generator/
|
BIN
assets/favicon/android-chrome-192x192.png
Executable file
BIN
assets/favicon/android-chrome-192x192.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
BIN
assets/favicon/android-chrome-512x512.png
Executable file
BIN
assets/favicon/android-chrome-512x512.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
assets/favicon/apple-touch-icon.png
Executable file
BIN
assets/favicon/apple-touch-icon.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
BIN
assets/favicon/favicon-16x16.png
Executable file
BIN
assets/favicon/favicon-16x16.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 312 B |
BIN
assets/favicon/favicon-32x32.png
Executable file
BIN
assets/favicon/favicon-32x32.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 485 B |
BIN
assets/favicon/favicon.ico
Executable file
BIN
assets/favicon/favicon.ico
Executable file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
1
assets/favicon/site.webmanifest
Executable file
1
assets/favicon/site.webmanifest
Executable file
@ -0,0 +1 @@
|
||||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|
BIN
assets/fonts/BreeSerif-Regular-Pw.woff2
Normal file
BIN
assets/fonts/BreeSerif-Regular-Pw.woff2
Normal file
Binary file not shown.
BIN
assets/fonts/BreeSerif-Regular.woff2
Normal file
BIN
assets/fonts/BreeSerif-Regular.woff2
Normal file
Binary file not shown.
28
assets/js/clipboard.js
Normal file
28
assets/js/clipboard.js
Normal file
@ -0,0 +1,28 @@
|
||||
// by github.com/rzen
|
||||
// attach to code blocks, copy to clipboard on click
|
||||
window.addEventListener('load', function () {
|
||||
// TODO: move to a js module
|
||||
let showSnackbar = text => {
|
||||
let sbEl = document.getElementById("snackbar");
|
||||
|
||||
sbEl.className = 'show';
|
||||
sbEl.innerText = text;
|
||||
setTimeout(_ => sbEl.className = sbEl.className.replace('show', ''), 3000);
|
||||
}
|
||||
|
||||
let getCodeEl = el => el.querySelector('.rouge-code pre');
|
||||
|
||||
let makeClipboardCopyFn = el => ev => {
|
||||
navigator.clipboard.writeText((getCodeEl(el) || el).innerText)
|
||||
.finally(_ => showSnackbar('Copied to clipboard!'));
|
||||
}
|
||||
|
||||
let configCodeBlock = (el) => {
|
||||
if (!getCodeEl(el)) return; // skip inline code (TODO: should we?)
|
||||
el.title = 'Click to copy';
|
||||
el.style.cursor = 'pointer';
|
||||
el.addEventListener('click', makeClipboardCopyFn(el));
|
||||
}
|
||||
|
||||
document.querySelectorAll('.highlighter-rouge').forEach(el => configCodeBlock(el));
|
||||
});
|
40
assets/js/slides.js
Normal file
40
assets/js/slides.js
Normal file
@ -0,0 +1,40 @@
|
||||
window.addEventListener('load', function () {
|
||||
var slideIndex = 1;
|
||||
showSlides(slideIndex);
|
||||
|
||||
// Next/previous controls
|
||||
function plusSlides(n) {
|
||||
showSlides(slideIndex += n);
|
||||
}
|
||||
|
||||
// Thumbnail image controls
|
||||
function currentSlide(n) {
|
||||
showSlides(slideIndex = n);
|
||||
}
|
||||
|
||||
function showSlides(n) {
|
||||
var i;
|
||||
var slides = document.getElementsByClassName("slide");
|
||||
var dots = document.getElementsByClassName("dot");
|
||||
if (n > slides.length) {slideIndex = 1}
|
||||
if (n < 1) {slideIndex = slides.length}
|
||||
for (i = 0; i < slides.length; i++) {
|
||||
slides[i].style.display = "none";
|
||||
}
|
||||
// for (i = 0; i < dots.length; i++) {
|
||||
// dots[i].className = dots[i].className.replace(" active", "");
|
||||
// }
|
||||
slides[slideIndex-1].style.display = "block";
|
||||
// dots[slideIndex-1].className += " active";
|
||||
}
|
||||
|
||||
var slides = document.getElementsByClassName("slide");
|
||||
for (i = 0; i < slides.length; i++) {
|
||||
slides[i].style.cursor = 'pointer';
|
||||
slides[i].addEventListener('click', function (el) {
|
||||
plusSlides(1);
|
||||
console.log(el)
|
||||
});
|
||||
}
|
||||
|
||||
});
|
19
assets/js/snackbar.js
Normal file
19
assets/js/snackbar.js
Normal file
@ -0,0 +1,19 @@
|
||||
// WIP
|
||||
Snackbar = {
|
||||
snackBar: null,
|
||||
|
||||
init: function () {
|
||||
this.snackBar = document.createElement('div');
|
||||
this.snackBar.id = 'snackbar';
|
||||
},
|
||||
|
||||
showSnackbar: function (text) {
|
||||
let sbEl = document.getElementById("snackbar");
|
||||
|
||||
sbEl.className = 'show';
|
||||
sbEl.innerText = text;
|
||||
setTimeout(_ => sbEl.className = sbEl.className.replace('show', ''), 3000);
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('load', Snackbar.init);
|
Reference in New Issue
Block a user