Add first src files

This commit is contained in:
Daniel_I_Am 2022-05-26 11:48:29 +02:00
parent 0545a2b764
commit 5a5741db59
5 changed files with 44 additions and 0 deletions

10
src/404.pug Normal file
View File

@ -0,0 +1,10 @@
doctype html
html(lang="en")
head
title Error
style.
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; }
body
h1 An error occurred
p Sorry, the page you are looking does not exist.

13
src/50x.pug Normal file
View File

@ -0,0 +1,13 @@
doctype html
html(lang="en")
head
title Error
style.
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto; font-family: Tahoma, Verdana, Arial, sans-serif; }
body
h1 An error occurred
p Sorry, the page you are looking for is currently unavailable.<br>Please try again later.
p If you are the system administrator of this resource then you should check the error log for details.
p
em Faithfully yours, nginx.

12
src/data/snippets.json Normal file
View File

@ -0,0 +1,12 @@
[
{
"title": "Seconds since last pacman sync",
"slug": "seconds-since-last-pacman-sync",
"snippet": "echo $(expr $(date +%s) - $(grep -rn -A 1 %INSTALLDATE% /var/lib/pacman/local/*/desc | grep -oP '\\d{10,}$' | sort | tail -1))",
"tags": [
"archlinux",
"linux",
"pacman"
]
}
]

6
src/index.pug Normal file
View File

@ -0,0 +1,6 @@
doctype html
html(lang='en')
head
title Portfolio - Daniel de Cloet
body
span#out

3
src/js/app.js Normal file
View File

@ -0,0 +1,3 @@
const snippets = require('../data/snippets.json');
console.log(snippets);