A simple landing page built with 11ty and Tailwind CSS.
Other versions
Requirements:
All other dependencies are either linked from a CDN or included in this repository.
Setup:
cd
into the root foldernpm install
npm run serve
http://localhost:8080
Basic configuration:
./.eleventy.js
./tailwind.config.js
./netlify.toml
CSS is built via PostCSS and based on ./src/_includes/css/_page.css
. Building CSS gets triggered by ./src/css/page.11ty.js
and Tailwind's config is set to JIT (see: Tailwind docs)
Please note that this CSS build does not include the normalize.css
file used for the 2 regular pages (imprint, privacy) - a minified production version is stored in ./src/static/css
and gets included in the build by default.
Change Content:
Page content is stored in
./src/
imprint.md
privacy.md
./src/sections/
./src/_data/features.json
Change Templates/Layout:
Page structure and templates are stored in ./src/_layouts/
and can be edited there.
Best have a look at ./layouts/base.njk
first to understand how it all comes together - the page itself is constructed from partial templates stored in ./src/includes/
and each section has a corresponding template file (section.**.njk
) stored there.
index.njk
in ./src/
arranges everything, meaning that sections can be added/re-ordered/removed/... there.
Change images:
Images are stored in ./static/img/
; everything in there can be considered a placeholder that should eventually be replaced with your actual production images.