complete story 13.1

This commit is contained in:
Naser Mansour
2026-01-04 22:34:05 +02:00
parent 37d9276a2c
commit b5ef8f9d28
3 changed files with 181 additions and 12 deletions
@@ -7,7 +7,7 @@
'text-sm px-2 py-1 rounded transition-colors min-h-[32px] flex items-center',
'bg-active text-white font-bold' => app()->getLocale() === 'ar',
'text-off-white hover:text-cta hover:bg-active-hover' => app()->getLocale() !== 'ar' && $variant === 'dark',
'text-body/70 hover:text-body hover:bg-active-hover' => app()->getLocale() !== 'ar' && $variant === 'light',
'text-primary hover:text-cta-hover hover:bg-primary/10' => app()->getLocale() !== 'ar' && $variant === 'light',
])
data-test="language-switch-ar"
>
@@ -15,7 +15,7 @@
</a>
<span @class([
'text-cta/50' => $variant === 'dark',
'text-body/30' => $variant === 'light',
'text-primary/50' => $variant === 'light',
])>|</span>
<a
href="{{ route('language.switch', 'en') }}"
@@ -23,7 +23,7 @@
'text-sm px-2 py-1 rounded transition-colors min-h-[32px] flex items-center',
'bg-active text-white font-bold' => app()->getLocale() === 'en',
'text-off-white hover:text-cta hover:bg-active-hover' => app()->getLocale() !== 'en' && $variant === 'dark',
'text-body/70 hover:text-body hover:bg-active-hover' => app()->getLocale() !== 'en' && $variant === 'light',
'text-primary hover:text-cta-hover hover:bg-primary/10' => app()->getLocale() !== 'en' && $variant === 'light',
])
data-test="language-switch-en"
>