Add full SEO optimization for Spanglish social and language events

- Add comprehensive metadata to root layout with Open Graph, Twitter cards
- Create dynamic sitemap.ts for all pages and events
- Create robots.ts with proper allow/disallow rules
- Add JSON-LD Event structured data to event detail pages
- Add page-specific metadata to events, community, contact, FAQ pages
- Add FAQ structured data schema
- Update footer with local SEO text for Asunción, Paraguay
- Add web manifest for mobile SEO
- Create 404 page with proper noindex
- Optimize image alt text and add lazy loading
- Add NEXT_PUBLIC_SITE_URL env variable
- Add about/ folder to gitignore
This commit is contained in:
root
2026-01-30 21:05:25 +00:00
parent d0ea55dc5b
commit 47ba754f05
40 changed files with 2659 additions and 420 deletions

View File

@@ -270,6 +270,14 @@ export const paymentOptionsApi = {
// Media API
export const mediaApi = {
getAll: (relatedType?: string, relatedId?: string) => {
const params = new URLSearchParams();
if (relatedType) params.set('relatedType', relatedType);
if (relatedId) params.set('relatedId', relatedId);
const query = params.toString();
return fetchApi<{ media: Media[] }>(`/api/media${query ? `?${query}` : ''}`);
},
upload: async (file: File, relatedId?: string, relatedType?: string) => {
const token = typeof window !== 'undefined'
? localStorage.getItem('spanglish-token')
@@ -488,6 +496,8 @@ export interface PaymentOptionsConfig {
cashEnabled: boolean;
cashInstructions?: string | null;
cashInstructionsEs?: string | null;
// Booking settings
allowDuplicateBookings?: boolean;
}
export interface User {