Skip to content

think-ahead-technologies/site

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo Think Ahead public website

Static public site for Think Ahead Technologies GmbH, built on Astro 4.0 and deployed in 🇬🇧 English and 🇩🇪 German using Netlify.


Homepage preview

Netlify Status License: GPL v3 Maintained Known Vulnerabilities

Usage

Prerequisites

  • node.js v20 and npm

Setup

  • 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.

Deployment

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.

Images

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

Releases

No releases published

Packages

No packages published

Languages

  • Astro 76.1%
  • TypeScript 15.4%
  • JavaScript 6.6%
  • Other 1.9%