setFlipped(!flipped)}
+ onKeyDown={(e) => e.key === " " && setFlipped(!flipped)}
+ tabIndex={0}
+ role="button"
+ aria-label="Flip card"
+ >
+
+ {/* Front */}
+
+
+ {/* Back */}
+
+
+
+ {/* Tailwind can't handle these directly */}
+
+
+ );
+}
+
+/*
+USAGE (Vite + Tailwind):
+
+
-
-
-
+
);
}
diff --git a/frontend/studia/src/pages/Landing.tsx b/frontend/studia/src/pages/Landing.tsx
index 66371d7..f80337c 100644
--- a/frontend/studia/src/pages/Landing.tsx
+++ b/frontend/studia/src/pages/Landing.tsx
@@ -1,27 +1,42 @@
+import { useEffect } from "react";
+import { useAuth } from "../components/AuthContext";
+import Card from "../components/Card"
+
export default function Landing({ onLogin }: { onLogin: () => void }) {
+ const {token} = useAuth();
+
+ useEffect(() => {
+ console.log(token)
+ }, []);
+
return (
-
Cardify
+
Studia
Learn smarter with flashcards & spaced repetition
{["HTTP", "JWT", "REST"].map(t => (
-
-
{t}
-
Sample definition
-
+ //
+ //
{t}
+ //
Sample definition
+ //
+
))}
-
-
+ ) :
+ (
+
+ ) }
);