Template used for pages on fwdekker.com https://static.fwdekker.com/lib/template/
Go to file
Florine W. Dekker a6faa1ebe8
Bump dependencies
2023-12-01 13:01:41 +01:00
src Correctly load dark theme if dark is preferred 2022-12-17 19:20:12 +01:00
.editorconfig Set up basic template 2020-05-02 23:02:42 +02:00
.gitattributes Set up basic template 2020-05-02 23:02:42 +02:00
.gitignore Fix footer overlap 2020-05-03 18:58:08 +02:00
Gruntfile.js Bundle modules together into one 2022-11-20 21:18:46 +01:00
LICENSE Update dependencies 2022-02-17 16:00:42 +01:00
README.md Rename container sidebar class 2022-11-23 12:13:38 +01:00
package-lock.json Bump dependencies 2023-12-01 13:01:41 +01:00
package.json Bump dependencies 2023-12-01 13:01:41 +01:00
tsconfig.json Additionally export storage.js from Minesweeper 2022-03-26 19:33:42 +01:00


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.



Setting up

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


# 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