Template used for pages on fwdekker.com https://static.fwdekker.com/lib/template/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
Florine W. Dekker a1d3384e32
Update dependencies
3 weeks ago
src Correctly load dark theme if dark is preferred 3 months ago
.editorconfig Set up basic template 3 years ago
.gitattributes Set up basic template 3 years ago
.gitignore Fix footer overlap 3 years ago
Gruntfile.js Bundle modules together into one 4 months ago
LICENSE Update dependencies 1 year ago
README.md Rename container sidebar class 4 months ago
package-lock.json Update dependencies 3 weeks ago
package.json Update dependencies 3 weeks ago
tsconfig.json Additionally export storage.js from Minesweeper 12 months ago

README.md

FWDekker Template

The base template for pages on fwdekker.com.

Contains utilities for

  • settings up header, footer, and navigation,
  • interacting with local storage (and an in-memory variant for testing), and
  • form validation.

Simply import template.js and template.css to get it working. All JavaScript functionalities are exposed using the window.fwdekker object.

Some functionalities are automatically executed after configuring some <meta> tags in the HTML. For example, set <meta name="fwd:nav:target" content="#nav" /> to automatically put the navigation bar in the #nav element. All meta-tag behaviour is opt-in.

Read the files' individual documentation for more information.

Development

Requirements

Setting up

# Install dependencies (only needed once)
$> npm ci

Building

# Build the tool in `dist/` for development
$> npm run dev
# Same as above, but automatically rerun it whenever files are changed
$> npm run dev:server
# Build the tool in `dist/` for deployment
$> npm run deploy