feat: replace language selector text/globe with country flag icons

This commit is contained in:
TerryM
2026-05-28 10:27:47 +08:00
parent f7d62bff6e
commit 3825c4ec2f
8 changed files with 135 additions and 24 deletions

View File

@@ -0,0 +1,25 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_4220_10209)">
<mask id="mask0_4220_10209" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="-1" width="24" height="25">
<path d="M12 23.9785C18.6274 23.9785 24 18.6059 24 11.9785C24 5.3511 18.6274 -0.0214844 12 -0.0214844C5.37258 -0.0214844 0 5.3511 0 11.9785C0 18.6059 5.37258 23.9785 12 23.9785Z" fill="white"/>
</mask>
<g mask="url(#mask0_4220_10209)">
<path d="M0 0H24V24.048H0V0Z" fill="#CB2026"/>
<path d="M0 22.332H24V24.0497H0V22.332Z" fill="white"/>
<path d="M0 18.8965H24V20.6142H0V18.8965Z" fill="white"/>
<path d="M0 15.4609H24V17.1786H0V15.4609Z" fill="white"/>
<path d="M0 12.0254H24V13.7431H0V12.0254Z" fill="white"/>
<path d="M0 8.58984H24V10.3076H0V8.58984Z" fill="white"/>
<path d="M0 5.1543H24V6.872H0V5.1543Z" fill="white"/>
<path d="M0 1.71875H24V3.43648H0V1.71875Z" fill="white"/>
<path d="M0 -0.0214844H15.1638V13.742H0V-0.0214844Z" fill="#21205F"/>
<path d="M7.13106 4.41406C5.14942 4.41406 3.54102 6.01709 3.54102 7.99217C3.54102 9.96725 5.14942 11.5703 7.13106 11.5703C7.84698 11.5703 8.51401 11.3608 9.07426 11.0004C8.74801 11.1129 8.39787 11.1746 8.03338 11.1746C6.27625 11.1746 4.85014 9.75315 4.85014 8.00185C4.85014 6.25047 6.27625 4.82914 8.03338 4.82914C8.4217 4.82914 8.79368 4.8985 9.13786 5.02553C8.56486 4.63961 7.87417 4.41406 7.13106 4.41406Z" fill="#FFCD05"/>
<path d="M13.085 9.85617L11.5728 9.06714L12.0198 10.682L11.0084 9.33121L10.6929 10.9753L10.3825 9.33021L9.36676 10.6779L9.81901 9.06453L8.3043 9.84899L9.42949 8.58669L7.71582 8.65249L9.2912 7.99139L7.71793 7.32549L9.43144 7.39643L8.31018 6.13079L9.82237 6.91981L9.3753 5.30502L10.3868 6.65577L10.7023 5.01172L11.0126 6.65675L12.0284 5.30903L11.5761 6.92243L13.0908 6.13797L11.9656 7.40027L13.6793 7.33446L12.104 7.99559L13.6772 8.66147L11.9637 8.59053L13.085 9.85617Z" fill="#FFCD05"/>
</g>
</g>
<defs>
<clipPath id="clip0_4220_10209">
<rect width="24" height="24" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB