feat: login form as a client component, theme toggle

This commit is contained in:
2025-07-17 16:49:46 +04:00
parent 0de352c323
commit 39b4d36a82
44 changed files with 14445 additions and 1 deletions

View File

@ -0,0 +1,8 @@
export default function getFlagEmoji(countryCode: string) {
const FLAG_CODE_OFFSET = 127397;
const codePoints = countryCode
.toUpperCase()
.split("")
.map(char => FLAG_CODE_OFFSET + char.charCodeAt(0));
return String.fromCodePoint(...codePoints);
}