Static public site for Think Ahead Technologies GmbH, built on Astro 4.0 and deployed in 🇬🇧 English and 🇩🇪 German using Netlify.
node.js v20
andnpm
- Install the project using npm.
npm install
- Run the local development environment. This will create a server on localhost:4321.
npm run dev
- Set up the pre-commit validation hook.
(cd .git/hooks && ln -s ../../.githooks/pre-commit pre-commit)
- This hook will check formatting, and ensure no translations are missed.
- To fix formatting, run:
npm run format
- To fix translations, manually modify the English and German locale files.
- To verify nothing has been missed, you can run:
npm run i18n:check
- This will also be executed automatically by the above pre-commit hook.
- To verify nothing has been missed, you can run:
The site is deployed automatically on a push to the main
branch (the primary site) and preview
branch (also viewable live). The build is run on a Netlify docker image.
When resizing images, limiting them to their dimensions on the page (e.g. 768px for an illustration image on the Who we are page), and Quality of 60%. Thus:
convert source-image.jpg -resize 768x -quality 60 output-image.jpg