feat: homepage font (#145)

* feat: new fonts file

* chore: apply geist

* chore: use relaway font for 'I want to learn'

* chore: config font geist

* feat(util): suffle array

* feat: add geist
This commit is contained in:
Aslam
2024-09-07 01:48:51 +07:00
committed by GitHub
parent e7bd9a9d42
commit 3fe1f8012b
7 changed files with 30 additions and 12 deletions

View File

@@ -25,6 +25,15 @@ export const searchSafeRegExp = (inputValue: string) => {
return new RegExp(escapedChars.join(".*"), "i")
}
export function shuffleArray<T>(array: T[]): T[] {
const shuffled = [...array]
for (let i = shuffled.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1))
;[shuffled[i], shuffled[j]] = [shuffled[j], shuffled[i]]
}
return shuffled
}
export * from "./urls"
export * from "./slug"
export * from "./keyboard"