From 65f8477678749be4506756b35d20ab793dc58dc4 Mon Sep 17 00:00:00 2001 From: developomp Date: Tue, 4 Jul 2023 11:39:21 +0900 Subject: [PATCH] feat(main): add real-time fractional age counter --- apps/main/src/constants.ts | 5 +++ apps/main/src/routes/+page.svelte | 59 ++++++++++++++++++++++--------- 2 files changed, 47 insertions(+), 17 deletions(-) diff --git a/apps/main/src/constants.ts b/apps/main/src/constants.ts index d1ca4f9..09732f8 100644 --- a/apps/main/src/constants.ts +++ b/apps/main/src/constants.ts @@ -1 +1,6 @@ export const discordInviteLink = "https://discord.gg/aQqamSCUcS" + +// my birthday :D +export const birthYear = 2002 +export const birthMonth = 7 +export const birthDate = 30 diff --git a/apps/main/src/routes/+page.svelte b/apps/main/src/routes/+page.svelte index 460f2e4..d9ae1c1 100644 --- a/apps/main/src/routes/+page.svelte +++ b/apps/main/src/routes/+page.svelte @@ -1,32 +1,57 @@ - Who am I? - I am a {myAge()} years old college student studying computer science in - Seoul, South Korea. + I am a {age.toFixed(8)} years old college student studying computer science + in Seoul, South Korea.