[slug].astro dynamic routing.astro fileBoth approaches work together seamlessly.
Create a new file: src/pages/industries/{industry-name}.astro
Example: src/pages/industries/construction.astro
---
import IndustryLayout from '../../layouts/IndustryLayout.astro';
import { caseStudyImages, testimonialHeadshots } from '../../lib/images';
const stats = [
{
value: '60%',
label: 'Time Savings',
icon: '⏱️',
description: 'Description of the stat'
}
// Add 3-4 stats
];
const features = [
{
title: 'Feature Name',
description: 'Feature description',
icon: '📊',
benefits: [
'Benefit 1',
'Benefit 2'
]
}
// Add 4-6 features
];
const caseStudies = [
{
title: 'Case Study Title',
description: 'Description',
image: caseStudyImages.manufacturing,
metrics: ['Metric 1', 'Metric 2', 'Metric 3'],
client: 'Client Name',
industry: 'Industry Name'
}
// Add 1-2 case studies
];
const testimonials = [
{
quote: "Testimonial quote",
author: "Name",
role: "Title",
company: "Company",
image: testimonialHeadshots.kevin
}
// Add 1-2 testimonials
];
const faqs = [
{
question: 'Question?',
answer: 'Answer'
}
// Add 4-6 FAQs
];
---
<IndustryLayout
title="Industry Name"
description="Hero description"
stats={stats}
features={features}
caseStudies={caseStudies}
testimonials={testimonials}
faqs={faqs}
ctaTitle="Custom CTA Title"
ctaDescription="Custom CTA description"
ctaButtonText="Schedule a Consultation"
ctaButtonLink="/contact"
ctaSecondaryButtonText="Explore Solutions"
ctaSecondaryButtonLink="/automations"
/>
Edit src/pages/industries/index.astro:
Add to standaloneIndustries array:
const standaloneIndustries = [
{
name: 'Construction',
slug: 'construction',
description: 'Transform your construction business...'
},
{
name: 'Your New Industry', // Add this
slug: 'your-industry-slug',
description: 'Brief description for the card'
}
];
Add to appropriate category:
const categories = {
'Technology & Digital': ['Cybersecurity', 'Telecommunications'],
'Healthcare & Life Sciences': ['Healthcare'],
'Financial & Professional': ['Financial Services', 'Legal Services'],
'Commerce & Services': ['Retail & E-commerce', 'Hospitality & Tourism'],
'Industrial & Manufacturing': ['Manufacturing', 'Energy & Utilities', 'Agriculture', 'Construction', 'Your New Industry'],
'Media & Creative': ['Media & Entertainment', 'Marketing & Advertising']
};
Visit:
http://localhost:4321/industries - Should show your industry in the listhttp://localhost:4321/industries/your-slug - Should show your custom pageFastest way to create a new industry page:
Copy existing page:
cp src/pages/industries/construction.astro src/pages/industries/new-industry.astro
Edit the new file - customize stats, features, FAQs, title, description
Add to standaloneIndustries array in index.astro
Add to appropriate category in index.astro
Done!
When working with AI, you can say:
“Create a new standalone industry page for [Industry Name]. Use the construction page as a template. Add it to the [Category Name] category on the industries index page.”
Or:
“Update the [Industry Name] page to add a new feature about [Feature Description]“
Available images from src/lib/images.ts:
caseStudyImages.healthcarecaseStudyImages.manufacturingtestimonialHeadshots.kevintestimonialHeadshots.chuck[slug].astro file still handles Supabase industries