feat: improve SEO, index /gallery and bump age

This commit is contained in:
2026-09-28 21:53:14 +02:00
parent 05eb29ad8b
commit bc3d5cd703
7 changed files with 77 additions and 10 deletions

10
app/utils/birthday.ts Normal file
View File

@@ -0,0 +1,10 @@
export const BIRTHDAY_DAY = 25;
export const BIRTHDAY_MONTH = 4;
export const BIRTHDAY_YEAR = 2002;
export const getAge = (now = new Date()) => {
const hadBirthdayThisYear =
now.getMonth() > BIRTHDAY_MONTH - 1 ||
(now.getMonth() === BIRTHDAY_MONTH - 1 && now.getDate() >= BIRTHDAY_DAY);
return now.getFullYear() - BIRTHDAY_YEAR - (hadBirthdayThisYear ? 0 : 1);
};