11-migrate-careers-db #12

Merged
giacchetta merged 8 commits from 11-migrate-careers-db into main 2025-08-20 19:23:09 -03:00
Showing only changes of commit 8c17c0e2ee - Show all commits

View File

@ -2,6 +2,7 @@
import type { Courses } from '../../../types/codyops-courses';
import type { Careers } from '../../../types/codyops-careers';
import { toSnakeCase, fromSnakeCase } from '../../../utils';
import { slugifyCourse } from '../../../utils/text';
type Props = {
career: Careers;
@ -82,9 +83,9 @@ const groupedCourses = career.courses?.reduce((acc, courseItem) => {
<i class="bi bi bi-arrow-right"></i>
</div>
<div class="flex-grow-1 ms-2">
<span class="small text-white"
<a href={`/cursos/${slugifyCourse(course.name+'-'+course.level)}/`} class="small text-white"
>{course.name}
<span class="badge bg-course text-dark rounded-pill ms-1">{course.level}</span></span
<span class="badge bg-course text-dark rounded-pill ms-1">{course.level}</span></a
>
</div>
</div>