This website is build with Astro, Tailwind and is based on the Astro template web3Templates.
All the code is inside src folder:
assetscontains standard images for the websitecomponentscontains all the principal components of the website. Each.astrofile here is an ELEMENT of the webpages, like the Footer or the Container.contentcontains theblogfolder in which are collected the.mdwith the articles and theteamfolder in which are collected the.mdwith the Team descriptionlayoutscontains the.astrofiles for the style of all the pages and the blog, which is a little bit different because it dynamically loop over the articles inblogfolderpagescontains all the websites pages. Adding a new file here means adding a new page to the websiteutilscontains random js code.
To add new blog articles, just add a new .md in the blog folder following using the same header you can find in the first article.
~$ npm install
~$ npm run devCreate an .env file in the root folder and the variable:
PUBLIC_WEB3FORM_KEY="your-web3form-key-to-test-the-contact-form"
Automatic spellcheck on all the .md files (i.e. all the blog posts) is done via Husky and Cspell.
To manually spellcheck run the same script used by Husky:
npm run spellcheck
If you have a false positive, the word may not be known by Cspell. Add the word to the project-words.txt file to make the spellchecker ignore it.
To check also .astro files, update the script in the package.json with cspell \"**/*.{md,astro}\".
The project uses Astro Icon. Follow the instructions and use your own svg or the icons from Iconify - Unicons. You can also easily install new icon sets.
Deployment is handled by GitHub Actions through .github/workflows/deploy.yaml.