import re # Read the home page with open('app/page.tsx', 'r') as f: content = f.read() # Add ArrowRight import if missing if 'ArrowRight' not in content: content = content.replace('import Link from \'next/link\';', 'import Link from \'next/link\';\nimport { ArrowRight } from \'lucide-react\';') # Modify services section to add internal links services_section_pattern = r'(?i).*?' services_replacement = ''' {/* Services Section */}

Our Vending Machine Services

Rocky Mountain Vending provides comprehensive vending machine solutions across Utah

Vending Machine Repairs

Expert repair and maintenance services for all vending machine types

Learn More

Vending Machine Parts

Quality replacement parts and components for all major brands

Shop Parts

Vending Machine Moving

Professional relocation and installation services

Moving Services
{/* Original Services Section - Replace with above */''' # Try to replace existing services section content = re.sub(services_section_pattern, services_replacement, content, flags=re.DOTALL | re.IGNORECASE) # Write the modified content with open('app/page.tsx', 'w') as f: f.write(content) print("✅ Successfully added internal links to Home page!")