@ -28,7 +28,7 @@ const roles: RoleOption[] = [
{
{
value : 'individual' ,
value : 'individual' ,
label : 'Privatperson' ,
label : 'Privatperson' ,
description : 'Privatperson ' ,
description : 'Private Nutzung ' ,
icon : User ,
icon : User ,
color : 'text-purple-600' ,
color : 'text-purple-600' ,
enabled : true ,
enabled : true ,
@ -36,21 +36,21 @@ const roles: RoleOption[] = [
{
{
value : 'educator' ,
value : 'educator' ,
label : 'Pädagoge' ,
label : 'Pädagoge' ,
description : 'Pädagoge ' ,
description : 'Lehrkräfte und Schulen ' ,
icon : GraduationCap ,
icon : GraduationCap ,
color : 'text-orange-500' ,
color : 'text-orange-500' ,
enabled : false ,
enabled : true ,
badge : 'Demnächst' ,
/ / b a d g e : ' D e m n ä c h s t ' ,
} ,
{
value : 'company' ,
label : 'Firma' ,
description : 'Geschäftskunden' ,
icon : Building2 ,
color : 'text-blue-600' ,
enabled : true ,
/ / b a d g e : ' D e m n ä c h s t ' ,
} ,
} ,
/ / {
/ / v a l u e : ' c o m p a n y ' ,
/ / l a b e l : ' F i r m a ' ,
/ / d e s c r i p t i o n : ' F i r m a ' ,
/ / i c o n : B u i l d i n g 2 ,
/ / c o l o r : ' t e x t - b l u e - 6 0 0 ' ,
/ / e n a b l e d : f a l s e ,
/ / b a d g e : ' D e m n ä c h s t ' ,
/ / } ,
]
]
/ / C u r r e n t r o l e - w i l l c o m e f r o m u s e r s e s s i o n l a t e r
/ / C u r r e n t r o l e - w i l l c o m e f r o m u s e r s e s s i o n l a t e r
@ -100,11 +100,17 @@ function switchRole(role: UserRole) {
< div class = "flex-1 flex flex-col gap-1" >
< div class = "flex-1 flex flex-col gap-1" >
< span class = "text-sm font-semibold" > { { role . label } } < / span >
< span class = "text-sm font-semibold" > { { role . label } } < / span >
< span class = "text-sm text-muted-foreground group-hover:text-foreground/80 transition-colors" > { {
< span class = "text-sm text-muted-foreground group-hover:text-foreground group-data-[highlighted]:text-accent-foreground transition-colors" > { {
role . description } } < / span >
role . description } } < / span >
< / div >
< / div >
< Check v -if = " currentRole = = = role.value " class = "h-5 w-5 text-green-600 flex-shrink-0" / >
<!-- High - contrast checkmark for colorblind accessibility -- >
< div v-if ="currentRole === role.value" class="relative flex-shrink-0" >
<!-- Background circle for contrast -- >
< div class = "absolute inset-0 bg-white dark:bg-gray-900 rounded-full opacity-90" > < / div >
<!-- Checkmark icon with high contrast -- >
< Check class = "h-5 w-5 text-gray-900 dark:text-white relative z-10" / >
< / div >
< Badge v-if ="role.badge" variant="secondary" class="text-xs px-2 py-0.5 flex-shrink-0" >
< Badge v-if ="role.badge" variant="secondary" class="text-xs px-2 py-0.5 flex-shrink-0" >
{ { role . badge } }
{ { role . badge } }
@ -115,7 +121,7 @@ function switchRole(role: UserRole) {
< div class = "px-3 py-2.5 text-sm text-muted-foreground" >
< div class = "px-3 py-2.5 text-sm text-muted-foreground" >
< p class = "leading-relaxed" >
< p class = "leading-relaxed" >
💡 Weitere Rollen werden in Kürze verfügbar sei n.
💡 Die Rolle bestimmt , welche Produkte und Konditionen dir angezeigt werde n.
< / p >
< / p >
< / div >
< / div >
< / DropdownMenuContent >
< / DropdownMenuContent >