Skip to content
/ AstroFlow Public template

Modern Astro.js template for logistics and manufacturing companies. Built with React, Tailwind CSS, and TypeScript.

License

Notifications You must be signed in to change notification settings

sudeep2003/AstroFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AstroFlow - Logistics & Manufacturing Website Template

A modern, professional Astro.js template for logistics, manufacturing, and supply chain companies. Built with React, Tailwind CSS, and TypeScript.

Astro React TypeScript Tailwind CSS

πŸ–ΌοΈ Preview

Website Screenshot

AstroFlow Website Preview

Performance & Speed

Performance Metrics

✨ Features

  • πŸš€ Built with Astro - Fast, modern static site generation
  • βš›οΈ React Components - Interactive components with React
  • 🎨 Tailwind CSS 4 - Modern utility-first styling
  • πŸ“± Fully Responsive - Mobile-first design
  • β™Ώ Accessible - Built with accessibility in mind
  • 🎯 SEO Optimized - Meta tags and semantic HTML
  • 🎭 Smooth Animations - Powered by Motion library
  • 🎨 Modern UI - Beautiful gradient designs and components

πŸ“¦ Pages Included

  • Home - Hero section, features, stats, testimonials
  • Capabilities - Service offerings showcase
  • Use Cases - Industry-specific solutions
  • Facilities - Location and facility information
  • Request Quote (RFQ) - Contact form for quotes
  • Documentation - Resources and guides

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/astroflow.git
cd astroflow
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Open http://localhost:4321 in your browser

πŸ“ Configuration

Site Configuration

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;

Form Integration

The RFQ form (src/components/react/RFQForm.tsx) currently logs form data to the console. To integrate with a backend:

  1. Option 1: Form Service (Recommended for static sites)

  2. Option 2: Custom API

    • Create an API endpoint
    • Update the form submission handler

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
  }
};

πŸ› οΈ Available Scripts

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

πŸ“ Project Structure

/
β”œβ”€β”€ 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

🎨 Customization

Colors

The template uses Tailwind CSS. Customize colors in src/styles/global.css or update Tailwind config.

Images

Replace placeholder images in src/assets/ with your own. The template includes stock photos as placeholders.

Content

  • Update text content in component files
  • Modify navigation in src/config/site.ts
  • Update facility information in src/pages/facilities.astro
  • Customize testimonials in src/components/home/Testimonials.astro

🚒 Deployment

Build for Production

npm run build

This creates a dist/ folder with your static site.

Deploy to Vercel

Deploy with Vercel

Deploy to Netlify

Deploy to Netlify

Other Platforms

The dist/ folder can be deployed to any static hosting service:

  • GitHub Pages
  • Cloudflare Pages
  • AWS S3 + CloudFront
  • Any static hosting provider

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

🀝 Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

⭐ Show Your Support

If you find this template useful, please give it a star on GitHub!

πŸ“§ Support

For questions or support, please open an issue on GitHub.


Built with ❀️ using Astro