---
import WidgetWrapper from '~/components/ui/WidgetWrapper.astro';
import Headline from '~/components/ui/Headline.astro';
import { Icon } from 'astro-icon/components';
import type { Steps as Props } from '~/types';
const {
title = await Astro.slots.render('title'),
subtitle = await Astro.slots.render('subtitle'),
tagline = await Astro.slots.render('tagline'),
items = [],
id,
isDark = false,
classes = {},
bg = await Astro.slots.render('bg'),
} = Astro.props;
// Function to get the appropriate icon and gradient based on education level
const getEducationStyle = (title: string) => {
const titleLower = title.toLowerCase();
if (titleLower.includes('bachelor')) {
return {
icon: 'tabler:school',
gradient: 'from-blue-500 to-indigo-600',
badgeIcon: 'tabler:book-2',
completed: false
};
} else if (titleLower.includes('associate')) {
return {
icon: 'tabler:certificate',
gradient: 'from-green-500 to-teal-600',
badgeIcon: 'tabler:check',
completed: true
};
} else {
return {
icon: 'tabler:graduation',
gradient: 'from-purple-500 to-pink-600',
badgeIcon: 'tabler:check',
completed: true
};
}
};
---