Clean and beautiful design for a landscapist/landscaper, gardener, or arborist website alternatively. Standard structure of 6 pages: Home, About, Works, Services, Contact, and Error page.
Use of AOS libraries for animations on scroll. Styling with SASS for a clearer, maintainable and efficient development. Contact form functions with Web3Forms.
- Astro Framework
- TypeScript
- SASS
- AOS (Animate on Scroll)
- Web3Forms
Copy the command below with the link:
git clone https://github.com/MartinXCVI/landscapist.git
cd landscapistnpm installFirst, get your Web3Forms key here. Then create a .env file in the root directory and configure the following variable:
WEB3_FORMS_API_KEY=<Your_Web3Forms_API_Key_Here>
- Update
src/config/site.config.tswith your business information - Update
src/config/env.tsto add more environment variables - Customize colors in
src/sass/includes/_colors.scss
All routes are centrally managed in src/config/routes.config.ts.
- Define the route:
// src/config/routes.config.ts
export const routes = {
// ...existing routes
newPage: {
label: 'New Page',
href: '/new-page',
description: 'Description for SEO',
},
}- Add to navigation:
nav: [
// ...existing routes
{ label: routes.newPage.label, href: routes.newPage.href },
]- Create the page:
src/pages/new-page.astro
That's it! The route is now available throughout the site.
npm run devAll commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
npm run styles |
Compile .sass and .scss files to .css files |
- Astro official documentation
- TypeScript official documentation
- Astro Discord server
- SASS official documentation
- AOS repository
- Web3Forms official documentation
"Leaf" icon created by Roundicons - Flaticon
This project is licensed under the MIT License.
