rht02242200

This commit is contained in:
Rao 2025-02-24 22:00:30 +08:00
parent 05b62881ef
commit ad61c5207b
1 changed files with 5 additions and 1 deletions

View File

@ -128,11 +128,15 @@ const CoursesSection: React.FC<CoursesSectionProps> = ({
<Tag
key={category}
color={selectedCategory === category ? 'blue' : 'default'}
onClick={() => setSelectedCategory(category)}
onClick={() => {
setSelectedCategory(category)
console.log(category)
}}
className={`px-6 py-2 text-base cursor-pointer rounded-full transition-all duration-300 ${selectedCategory === category
? 'bg-blue-600 text-white shadow-lg'
: 'bg-white text-gray-600 hover:bg-gray-100'
}`}
>
{category}
</Tag>