Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

style: magic-link page

Brad Barbine5a20e575d5f
diff --git a/apps/erp/app/routes/_public+/magic-link.tsx b/apps/erp/app/routes/_public+/magic-link.tsx
index 4fd666b151..783fc4651d 100644
--- a/apps/erp/app/routes/_public+/magic-link.tsx
+++ b/apps/erp/app/routes/_public+/magic-link.tsx
@@ -1,15 +1,6 @@
import { SUPABASE_URL } from "@carbon/auth";
-import { Button as _Button, Heading as _Heading, VStack } from "@carbon/react";
+import { Button, Heading, VStack } from "@carbon/react";
import { useNavigate, useSearchParams } from "@remix-run/react";
-import { AnimatePresence, motion } from "framer-motion";
-
-const Heading = motion(_Heading);
-const Button = motion(_Button);
-
-const fade = {
- initial: { opacity: 0 },
- animate: { opacity: 1 },
-};
export default function ConfirmMagicLink() {
const [params] = useSearchParams();
@@ -26,37 +17,23 @@ export default function ConfirmMagicLink() {
};
return (
- <AnimatePresence>
- <VStack spacing={4} className="max-w-lg items-center text-center">
- <motion.img
- initial={{ opacity: 0, scale: 0.4 }}
- animate={{ opacity: 1, scale: 1 }}
- transition={{ duration: 1, ease: "easeInOut" }}
- src="/carbon-logo-mark.svg"
- alt="Carbon Logo"
- className="w-24 mb-3"
- />
-
- <Heading
- {...fade}
- transition={{ duration: 0.8, ease: "easeInOut", delay: 0.5 }}
- size="h3"
- className="m-0"
- >
- Magic Link Authentication
- </Heading>
-
- <Button
- {...fade}
- transition={{ duration: 0.8, ease: "easeInOut", delay: 0.5 }}
- size="lg"
- onClick={() => {
- window.location.href = getConfirmationURL(token);
- }}
- >
- Log In
- </Button>
- </VStack>
- </AnimatePresence>
+ <>
+ <div className="flex justify-center mb-4">
+ <img src="/carbon-logo-mark.svg" alt="Carbon Logo" className="w-36" />
+ </div>
+ <div className="rounded-lg md:bg-card md:border md:border-border md:shadow-lg p-8 w-[380px]">
+ <VStack spacing={4} className="items-center justify-center">
+ <Heading size="h3">Let's build something 🚀</Heading>
+ <Button
+ size="lg"
+ onClick={() => {
+ window.location.href = getConfirmationURL(token);
+ }}
+ >
+ Log In
+ </Button>
+ </VStack>
+ </div>
+ </>
);
}