diff options
author | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-01 22:11:05 -0700 |
---|---|---|
committer | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2024-02-01 22:11:05 -0700 |
commit | d19084665195cb20e62ba77ab9cf46d800b3975b (patch) | |
tree | 7ec34f86ceb54f5fabf77afd114b4d8eb6bd8b7d /src/scenes/title.tsx | |
parent | 2b2ed28e2d5e5f1bec6543d18907e7cca46faac0 (diff) | |
download | compiling-the-lambda-calculus-d19084665195cb20e62ba77ab9cf46d800b3975b.tar.gz compiling-the-lambda-calculus-d19084665195cb20e62ba77ab9cf46d800b3975b.zip |
add xkcd and basic transitions
Diffstat (limited to 'src/scenes/title.tsx')
-rw-r--r-- | src/scenes/title.tsx | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/scenes/title.tsx b/src/scenes/title.tsx new file mode 100644 index 0000000..775e9ec --- /dev/null +++ b/src/scenes/title.tsx @@ -0,0 +1,36 @@ +import { Img, Txt, Layout, makeScene2D } from "@motion-canvas/2d"; +import { beginSlide } from "@motion-canvas/core"; +import { theme } from "../theme"; + +import xkcd from "../../public/img/xkcd.png"; + +export default makeScene2D(function* (view) { + yield view.add( + <> + <Layout + layout + direction="column" + textAlign="center" + alignItems="center" + gap={100} + > + <Txt fontFamily={theme.font} fill={theme.text.hex}> + Compiling The Lambda Calculus{" "} + <Txt fontFamily={theme.font} fill={theme.blue.hex}> + {"=> λ"} + </Txt> + </Txt> + <Img scale={1.4} src={xkcd}></Img> + <Txt + fontFamily={theme.font} + fill={theme.flamingo.hex} + fontStyle="italic" + fontSize={40} + > + #2453 + </Txt> + </Layout> + </> + ); + yield* beginSlide("Title"); +}); |