diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0989bd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# Generated files +package/generated* + +# Ignore installed npm modules +node_modules/ + +# Ignore build tool output, e.g. code coverage +.nyc_output/ +coverage/ + +# Ignore API documentation +api-docs/ + +# Ignore folders from source code editors +.vscode +.idea + +# Ignore eleventy output when doing manual tests +_site/ + +package-lock.json + +# Ignore test files +.cache +test/stubs-layout-cache/_includes/*.js diff --git a/_includes/layouts/home.njk b/_includes/layouts/home.njk new file mode 100644 index 0000000..23f63a6 --- /dev/null +++ b/_includes/layouts/home.njk @@ -0,0 +1,25 @@ +--- +title: lauka (dot) net +--- + + + + + + + + + {{ title }} + + + + + + + + + {{ content | safe }} + + diff --git a/css/main.css b/css/main.css new file mode 100644 index 0000000..68e006f --- /dev/null +++ b/css/main.css @@ -0,0 +1,93 @@ +a, body, h1, h2, html, li, p, span, strong, u, ul { + margin: 0; + padding: 0; + border: 0; + font: inherit; + vertical-align: baseline +} + +body { + font-family: Consolas, monaco, monospace; + font-size: 130%; + line-height: 1.4; + margin: 3% 5%; + max-width: 50em; + background: #303030; + color: #c1c1c1; +} + +ul { + list-style-type: none; + margin-left: 1rem; +} + +ul>li:before { + content: "-"; + position: absolute; + margin-left: -1.1rem; +} + +a { + text-decoration: none; + color: cyan +} + +p { + margin-bottom: .75rem +} + +h1, +h2 { + line-height: 100%; + margin-top: 2rem; + margin-bottom: 1rem; + color: #c2f486; +} + +h1:before { + content: "# "; + content: "# "/ ""; +} + +h1:after { + content: "-----"; + content: "-----"/ ""; + display: block; +} + +h2:before { + content: "## "; + content: "## "/ ""; +} + +strong { + font-weight: 700; +} + +strong:before { + content: "**"; + content: "**"/ ""; +} + +strong:after { + content: "**"; + content: "**"/ ""; +} + +@media (prefers-color-scheme: light) { + body { + background: #edf4f9; + color: #40302f; + } + + a { + color: #172b73; + text-decoration: underline; + } + + h1, + h2 { + color: #40302f; + font-weight: bold; + } +} diff --git a/index.njk b/index.njk new file mode 100644 index 0000000..ebcfefa --- /dev/null +++ b/index.njk @@ -0,0 +1,6 @@ +--- +layout: layouts/home.njk +title: lauka (dot) net +--- +# {{ title }} +## diff --git a/package.json b/package.json new file mode 100644 index 0000000..699183a --- /dev/null +++ b/package.json @@ -0,0 +1,23 @@ +{ + "name": "www-lauka-net-11ty", + "version": "1.0.0", + "description": "Source code of my personal website", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/lauralani/www-lauka-net-11ty.git" + }, + "keywords": [], + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/lauralani/www-lauka-net-11ty/issues" + }, + "homepage": "https://github.com/lauralani/www-lauka-net-11ty#readme", + "devDependencies": { + "@11ty/eleventy": "^1.0.1" + } +}