A modern, professional Astro.js template for logistics, manufacturing, and supply chain companies. Built with React, Tailwind CSS, and TypeScript.
git clone https://github.com/yourusername/astroflow.git
cd astroflow
npm install
npm run dev
Update src/config/site.ts with your information:
export const SITE = {
title: 'Your Company Name', // TODO: Replace with your company name
description: 'Your company description', // TODO: Update with your description
url: 'https://yourdomain.com', // TODO: Replace with your actual domain
author: 'Your Company Name', // TODO: Replace with your company name
} as const;
export const SOCIAL_LINKS = {
linkedin: 'https://linkedin.com/company/yourcompany', // TODO: Replace with your LinkedIn
twitter: 'https://twitter.com/yourcompany', // TODO: Replace with your Twitter
facebook: 'https://facebook.com/yourcompany', // TODO: Replace with your Facebook
} as const;
The RFQ form (src/components/react/RFQForm.tsx) currently logs form data to the console. To integrate with a backend:
Option 1: Form Service (Recommended for static sites)
handleSubmit function in RFQForm.tsxOption 2: Custom API
Example with Formspree:
const handleSubmit = async (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
const formData = new FormData(e.currentTarget);
const response = await fetch('https://formspree.io/f/YOUR_FORM_ID', {
method: 'POST',
body: formData,
headers: { 'Accept': 'application/json' }
});
if (response.ok) {
// Show success message
}
};
| 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 |
/ ├── public/ │ └── favicon.svg ├── src/ │ ├── assets/ # Images and static assets │ ├── components/ # Reusable components │ │ ├── home/ # Home page components │ │ ├── react/ # React interactive components │ │ └── ui/ # UI components │ ├── config/ # Configuration files │ ├── layouts/ # Page layouts │ ├── pages/ # Astro pages (routes) │ ├── styles/ # Global styles │ └── utils/ # Utility functions ├── astro.config.mjs # Astro configuration ├── package.json └── tsconfig.json
The template uses Tailwind CSS. Customize colors in src/styles/global.css or update Tailwind config.
Replace placeholder images in src/assets/ with your own. The template includes stock photos as placeholders.
src/config/site.tssrc/pages/facilities.astrosrc/components/home/Testimonials.astronpm run build
This creates a dist/ folder with your static site.
The dist/ folder can be deployed to any static hosting service:
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
If you find this template useful, please give it a star on GitHub!
For questions or support, please open an issue on GitHub.
Built with ❤️ using Astro