From 0c476e92e1807928ffb30864126076ef4c6a0821 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Tue, 13 Feb 2024 20:00:02 -0700 Subject: add all the stuff --- src/scenes/generalized.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/scenes/generalized.tsx') 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)[ -- cgit v1.2.3-70-g09d2