From 0c476e92e1807928ffb30864126076ef4c6a0821 Mon Sep 17 00:00:00 2001
From: Elizabeth Hunt <elizabeth.hunt@simponic.xyz>
Date: Tue, 13 Feb 2024 20:00:02 -0700
Subject: add all the stuff

---
 src/scenes/pros_cons.tsx | 61 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 src/scenes/pros_cons.tsx

(limited to 'src/scenes/pros_cons.tsx')

diff --git a/src/scenes/pros_cons.tsx b/src/scenes/pros_cons.tsx
new file mode 100644
index 0000000..508c7bc
--- /dev/null
+++ b/src/scenes/pros_cons.tsx
@@ -0,0 +1,61 @@
+import { Img, Layout, Txt, makeScene2D } from "@motion-canvas/2d";
+import {
+  Direction,
+  beginSlide,
+  createRef,
+  slideTransition,
+} from "@motion-canvas/core";
+import { theme } from "../theme";
+
+const PROS = [
+  "readbility, reasoning",
+  "concurrency",
+  "no side effects",
+  "computers and math!",
+];
+
+const CONS = ["more computation", "higher learning curve"];
+
+export default makeScene2D(function* (view) {
+  const pros = createRef<Txt>();
+  const cons = createRef<Txt>();
+
+  view.add(
+    <Layout direction="row" justifyContent="center" gap={300} layout>
+      <Layout direction="column" justifyContent="end">
+        <Txt fontSize={30} fontFamily={theme.font} fill={theme.green.hex}>
+          PROS :)
+        </Txt>
+        <Txt
+          ref={pros}
+          fontSize={30}
+          fontFamily={theme.font}
+          fill={theme.text.hex}
+        ></Txt>
+      </Layout>
+      <Layout direction="column" justifyContent="start">
+        <Txt fontSize={30} fontFamily={theme.font} fill={theme.red.hex}>
+          CONS :(
+        </Txt>
+        <Txt
+          ref={cons}
+          fontSize={30}
+          fontFamily={theme.font}
+          fill={theme.text.hex}
+        ></Txt>
+      </Layout>
+    </Layout>,
+  );
+  yield* slideTransition(Direction.Right);
+  yield* beginSlide("layout pros and cons");
+
+  for (const pro of PROS) {
+    yield* pros().text(pros().text() + "\n\n+ " + pro, 0.5);
+    yield* beginSlide("pro - " + pro);
+  }
+
+  for (const con of CONS) {
+    yield* cons().text(cons().text() + "\n\n- " + con, 0.5);
+    yield* beginSlide("con - " + con);
+  }
+});
-- 
cgit v1.2.3-70-g09d2

