A modern, responsive website template for hardware tools and construction services, built with Astro, Tailwind CSS, and featuring a stunning red-to-blue gradient design theme.
- Modern Gradient Theme: Beautiful red-to-blue gradient color scheme throughout
- Fully Responsive: Optimized for all device sizes from mobile to desktop
- Dark/Light Mode: Complete theme switching with system preference detection
- Glass Morphism Effects: Modern backdrop blur and transparency effects
- Smooth Animations: Enhanced user experience with fade-in and hover effects
- Lightning Fast: Built with Astro for optimal performance
- SEO Optimized: Meta tags, structured data, and sitemap included
- Image Optimization: Automatic image compression and format conversion
- Accessibility: WCAG compliant with proper ARIA labels and keyboard navigation
- Multi-language Support: English and French localization ready
- Component-Based: Modular Astro components for easy customization
- TypeScript: Full type safety throughout the codebase
- Tailwind CSS: Utility-first CSS framework for rapid development
- Responsive Navigation: Mobile-first navbar with hamburger menu
- Mobile-First: Optimized for smallest screens first
- Breakpoint System: Custom responsive utilities for all screen sizes
- Flexible Layouts: Grid and flexbox layouts that adapt seamlessly
- Touch-Friendly: Large touch targets and mobile-optimized interactions
- Node.js 18+
- npm or yarn package manager
-
Clone the repository
git clone <your-repo-url> cd torque-craft
-
Install dependencies
npm install
-
Start development server
npm run dev
-
Open your browser Navigate to
http://localhost:4321
# Build the project
npm run build
# Preview the build
npm run previewtorque-craft/
βββ public/ # Static assets
β βββ images/ # Image files
β βββ favicon.ico # Site favicon
βββ src/
β βββ components/ # Reusable components
β β βββ sections/ # Page sections
β β βββ ui/ # UI components
β β βββ BrandLogo.astro
β βββ content/ # Content collections
β β βββ blog/ # Blog posts
β β βββ products/ # Product data
β β βββ insights/ # Insights content
β βββ data_files/ # Configuration data
β βββ layouts/ # Page layouts
β βββ pages/ # Route pages
β βββ styles/ # Global styles
β βββ utils/ # Utility functions
βββ astro.config.mjs # Astro configuration
βββ tailwind.config.js # Tailwind configuration
βββ package.json # Dependencies
The project uses a red-to-blue gradient theme. To customize colors, edit:
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
// Add your custom colors here
}
}
}
}Replace the logo by editing src/components/BrandLogo.astro:
<!-- Update the SVG content with your logo -->
<svg xmlns="http://www.w3.org/2000/svg" ...>
<!-- Your logo SVG content -->
</svg>- Products: Edit files in
src/content/products/ - Blog Posts: Add/edit files in
src/content/blog/ - Site Info: Update
src/data_files/constants.ts
The template supports multiple languages:
- English (default):
/ - French:
/fr/
To add a new language:
- Create translation files in
src/utils/[language]/ - Add content files in
src/content/[collection]/[language]/ - Update
astro.config.mjswith the new locale
/* Custom breakpoints */
xs: '320px' /* Extra small devices */
sm: '640px' /* Small devices */
md: '768px' /* Medium devices */
lg: '1024px' /* Large devices */
xl: '1280px' /* Extra large devices */
2xl: '1536px' /* 2X large devices */# Development
npm run dev # Start dev server
npm run build # Build for production
npm run preview # Preview production build
# Maintenance
npm run astro check # Check for issues
npm run astro sync # Sync content types- Navbar: Responsive navigation with mobile hamburger menu
- Footer: Multi-column footer with links and social media
- Hero Section: Eye-catching hero with gradient background
- Features: Showcase product/service features
- Pricing: Flexible pricing cards
- Testimonials: Customer reviews and ratings
- FAQ: Expandable question/answer sections
- Buttons: Primary and secondary CTA buttons
- Cards: Product and blog post cards
- Forms: Contact and newsletter forms
- Icons: SVG icon system
- Connect your GitHub repository to Vercel
- Vercel will automatically detect Astro and configure build settings
- Deploy with zero configuration
- Netlify: Works out of the box
- GitHub Pages: Requires static adapter
- Self-hosted: Build and serve the
dist/folder
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Astro: For the amazing static site generator
- Tailwind CSS: For the utility-first CSS framework
- Preline UI: For UI components and interactions
- Unsplash: For beautiful stock photography
If you have any questions or need help with customization:
- π§ Email: support@torquecraft.com
- π Issues: GitHub Issues
- π Documentation: Astro Docs
Built with β€οΈ using Astro, Tailwind CSS, and modern web technologies.