mirror of
https://github.com/soconnor0919/beenvoice.git
synced 2026-02-05 08:16:31 -05:00
feat: Implement a new dashboard shell with animated background, refactor dashboard data fetching into a dedicated API route, and introduce new UI components.**
This commit is contained in:
7
src/lib/gravatar.ts
Normal file
7
src/lib/gravatar.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createHash } from "crypto";
|
||||
|
||||
export function getGravatarUrl(email: string, size = 200) {
|
||||
const trimmedEmail = email.trim().toLowerCase();
|
||||
const hash = createHash("sha256").update(trimmedEmail).digest("hex");
|
||||
return `https://www.gravatar.com/avatar/${hash}?s=${size}&d=mp`;
|
||||
}
|
||||
Reference in New Issue
Block a user