fix: use Union Jack (UK flag) instead of England flag for English language
This commit is contained in:
@@ -4,11 +4,22 @@ import { Language, setLanguage, useLanguage } from '@/lib/i18n';
|
||||
|
||||
function Flag({ language }: { language: Language }) {
|
||||
if (language === 'en') {
|
||||
// Union Jack (UK flag) - simplified but recognizable
|
||||
return (
|
||||
<svg width="24" height="16" viewBox="0 0 24 16" fill="none" aria-hidden="true">
|
||||
<rect width="24" height="16" fill="white" />
|
||||
<rect x="0" y="6" width="24" height="4" fill="#CE1124" />
|
||||
<rect x="10" y="0" width="4" height="16" fill="#CE1124" />
|
||||
<svg width="24" height="16" viewBox="0 0 60 30" fill="none" aria-hidden="true">
|
||||
{/* Blue background */}
|
||||
<rect width="60" height="30" fill="#012169"/>
|
||||
{/* White diagonal saltire (St Andrew) */}
|
||||
<path d="M0 0L60 30M60 0L0 30" stroke="white" strokeWidth="6"/>
|
||||
{/* Red diagonal saltire (St Patrick) - offset */}
|
||||
<path d="M0 0L30 15M60 0L30 15" stroke="#C8102E" strokeWidth="2"/>
|
||||
<path d="M60 30L30 15M0 30L30 15" stroke="#C8102E" strokeWidth="2"/>
|
||||
{/* White cross (St George + St Andrew) */}
|
||||
<rect x="25" y="0" width="10" height="30" fill="white"/>
|
||||
<rect x="0" y="10" width="60" height="10" fill="white"/>
|
||||
{/* Red cross (St George) */}
|
||||
<rect x="27" y="0" width="6" height="30" fill="#C8102E"/>
|
||||
<rect x="0" y="12" width="60" height="6" fill="#C8102E"/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user