feat(courses): add type, search, and pricing filters to org landing page

- Add Types section to the Filter sidebar with all 4 course types
- Add full-text search input centered in the hero (title + description)
- Add Pricing section (Free / Paid) based on course cost
- Compact hero prop across all 10 themes to halve vertical padding
- Children snippet support in all hero themes for the search input
- All filters are URL-driven (?types=, ?search=, ?tags=, ?pricing=)
- Full-stack: validation schema, DB queries, service, API route, server load, UI
This commit is contained in:
Rotimi Best
2026-07-01 10:36:53 +01:00
parent 8d2f2a6d2d
commit 78a2b85ad3
27 changed files with 464 additions and 97 deletions
@@ -3741,7 +3741,13 @@
"filters": {
"title": "Filtrer efter tags",
"help": "Vælg et eller flere tags for at filtrere kurser",
"empty": "Ingen tags tilgængelige endnu"
"empty": "Ingen tags tilgængelige endnu",
"tags_title": "Tags",
"types_title": "Typer",
"search_placeholder": "Søg efter kurser...",
"pricing_title": "Prissætning",
"pricing_free": "Gratis",
"pricing_paid": "Betalt"
}
},
"tags_admin": {
@@ -3741,7 +3741,13 @@
"filters": {
"title": "Nach Tags filtern",
"help": "Wählen Sie einen oder mehrere Tags aus, um Kurse zu filtern",
"empty": "Noch keine Tags verfügbar"
"empty": "Noch keine Tags verfügbar",
"tags_title": "Schlagworte",
"types_title": "Typen",
"search_placeholder": "Kurse suchen...",
"pricing_title": "Preise",
"pricing_free": "Kostenlos",
"pricing_paid": "Bezahlt"
}
},
"tags_admin": {
@@ -1218,9 +1218,15 @@
"subtitle": "Browse all published courses",
"clear_filters": "Clear Filters",
"filters": {
"title": "Filter by Tags",
"help": "Select one or more tags to filter courses",
"empty": "No tags available yet"
"title": "Filter",
"help": "Filter courses by type, tags, or search by name",
"tags_title": "Tags",
"types_title": "Types",
"pricing_title": "Pricing",
"pricing_free": "Free",
"pricing_paid": "Paid",
"empty": "No tags available yet",
"search_placeholder": "Search courses..."
},
"empty": {
"title": "No courses found",
@@ -3741,7 +3741,13 @@
"filters": {
"title": "Filtrar por etiquetas",
"help": "Seleccione una o más etiquetas para filtrar cursos",
"empty": "Aún no hay etiquetas disponibles"
"empty": "Aún no hay etiquetas disponibles",
"tags_title": "Etiquetas",
"types_title": "Tipos",
"search_placeholder": "Buscar cursos...",
"pricing_title": "Precios",
"pricing_free": "Gratis",
"pricing_paid": "Pagado"
}
},
"tags_admin": {
@@ -3741,7 +3741,13 @@
"filters": {
"title": "Filtrer par balises",
"help": "Sélectionnez une ou plusieurs balises pour filtrer les cours",
"empty": "Aucun tag disponible pour l'instant"
"empty": "Aucun tag disponible pour l'instant",
"tags_title": "Balises",
"types_title": "Espèces",
"search_placeholder": "Rechercher des cours...",
"pricing_title": "Tarifs",
"pricing_free": "Gratuit",
"pricing_paid": "Payé"
}
},
"tags_admin": {
@@ -3741,7 +3741,13 @@
"filters": {
"title": "टैग द्वारा फ़िल्टर करें",
"help": "पाठ्यक्रमों को फ़िल्टर करने के लिए एक या अधिक टैग चुनें",
"empty": "अभी तक कोई टैग उपलब्ध नहीं है"
"empty": "अभी तक कोई टैग उपलब्ध नहीं है",
"tags_title": "टैग",
"types_title": "प्रकार",
"search_placeholder": "पाठ्यक्रम खोजें...",
"pricing_title": "मूल्य निर्धारण",
"pricing_free": "निःशुल्क",
"pricing_paid": "भुगतान किया गया"
}
},
"tags_admin": {
@@ -3741,7 +3741,13 @@
"filters": {
"title": "Filtruj według tagów",
"help": "Wybierz jeden lub więcej tagów, aby filtrować kursy",
"empty": "Brak dostępnych tagów"
"empty": "Brak dostępnych tagów",
"tags_title": "Tagi",
"types_title": "Typy",
"search_placeholder": "Wyszukaj kursy...",
"pricing_title": "Ceny",
"pricing_free": "Bezpłatny",
"pricing_paid": "Płatny"
}
},
"tags_admin": {
@@ -3741,7 +3741,13 @@
"filters": {
"title": "Filtrar por tags",
"help": "Selecione uma ou mais tags para filtrar cursos",
"empty": "Nenhuma tag disponível ainda"
"empty": "Nenhuma tag disponível ainda",
"tags_title": "Etiquetas",
"types_title": "Tipos",
"search_placeholder": "Pesquisar cursos...",
"pricing_title": "Preços",
"pricing_free": "Grátis",
"pricing_paid": "Pago"
}
},
"tags_admin": {
@@ -3741,7 +3741,13 @@
"filters": {
"title": "Фильтровать по тегам",
"help": "Выберите один или несколько тегов, чтобы отфильтровать курсы.",
"empty": "Тегов пока нет"
"empty": "Тегов пока нет",
"tags_title": "Теги",
"types_title": "Типы",
"search_placeholder": "Искать курсы...",
"pricing_title": "Цены",
"pricing_free": "Бесплатно",
"pricing_paid": "Платный"
}
},
"tags_admin": {
@@ -3741,7 +3741,13 @@
"filters": {
"title": "Lọc theo thẻ",
"help": "Chọn một hoặc nhiều thẻ để lọc các khóa học",
"empty": "Chưa có thẻ nào"
"empty": "Chưa có thẻ nào",
"tags_title": "Thẻ",
"types_title": "Các loại",
"search_placeholder": "Tìm kiếm khóa học...",
"pricing_title": "Định giá",
"pricing_free": "miễn phí",
"pricing_paid": "Đã trả tiền"
}
},
"tags_admin": {