Add static assets and update build scripts (#8)

* Add static assets and update build scripts

* Add logo to header and revamp header styling
This commit is contained in:
Scott Trinh 2021-01-05 21:18:52 -05:00 committed by GitHub
parent 150ca36734
commit 9429008155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View File

@ -28,7 +28,7 @@ jobs:
${{ runner.os }}-node-
- run: npm ci
- run: npm run build
- run: npm run prod
- name: Deploy
uses: peaceiris/actions-gh-pages@v3

View File

@ -5,8 +5,10 @@
"main": "index.js",
"scripts": {
"clean": "rm -rf docs && mkdir -p docs/styles",
"dev": "npm run clean && postcss src/styles/global.css > docs/styles/global.css && eleventy --serve",
"build": "npm run clean && NODE_ENV=production postcss src/styles/global.css > docs/styles/global.css && eleventy",
"static": "cp -r static docs",
"build": "npm run clean && npm run static && postcss src/styles/global.css > docs/styles/global.css",
"dev": "npm run build && eleventy --serve",
"prod": "NODE_ENV=production npm run build && eleventy",
"format": "prettier --write src ./*.js ./.*.js"
},
"keywords": [],

View File

@ -3,8 +3,9 @@ layout: base.html
title: The KDL Document Language
---
<header class="py-10 bg-gray-300">
<h1 class="text-4xl text-center">The KDL Document Language</h1>
<header class="pt-20 pb-10 px-4">
<img src="./static/logo.svg" class="mx-auto h-20">
<h1 class="text-2xl text-center">The KDL Document Language</h1>
</header>
{% include partials/description.md %}

1
static/logo.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 11 KiB