diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-13 20:00:02 -0700 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-13 20:00:02 -0700 |
commit | 0c476e92e1807928ffb30864126076ef4c6a0821 (patch) | |
tree | a4992161ce4b6203edffb5d78533e9c73e61e6f1 /src/scenes/generalized.tsx | |
parent | 512c245466fad78106a046c1ea6233acdcc3e4de (diff) | |
download | compiling-the-lambda-calculus-0c476e92e1807928ffb30864126076ef4c6a0821.tar.gz compiling-the-lambda-calculus-0c476e92e1807928ffb30864126076ef4c6a0821.zip |
Diffstat (limited to 'src/scenes/generalized.tsx')
-rw-r--r-- | src/scenes/generalized.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scenes/generalized.tsx b/src/scenes/generalized.tsx index 67cbb31..a3cc841 100644 --- a/src/scenes/generalized.tsx +++ b/src/scenes/generalized.tsx @@ -1,4 +1,4 @@ -import { Layout, Txt, makeScene2D } from "@motion-canvas/2d"; +import { Layout, makeScene2D } from "@motion-canvas/2d"; import { Direction, all, @@ -11,7 +11,7 @@ import { FunctionBox } from "../components/function_box"; import { PEOPLE, Person, PersonI } from "../components/person"; import { CardI, daysUntilNextDate } from "./birthday_letters"; -const valentineCardFn = (person: PersonI): CardI => { +export const valentineCardFn = (person: PersonI): CardI => { const valentinesDay = new Date("02/14/2024"); const message = `Dear, ${person.name}\n.` + @@ -21,7 +21,7 @@ const valentineCardFn = (person: PersonI): CardI => { return { message, deliverInDays }; }; -const birthdayCardFn = (person: PersonI): CardI => { +export const birthdayCardFn = (person: PersonI): CardI => { const age = new Date().getFullYear() - person.birthday.getFullYear(); const ending = ({ 1: "st", 2: "nd", 3: "rd" } as Record<number, string>)[ |