Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
style: update login and sign up flow ui to v3 components
Scott Wilsonab587bb6565c
diff --git a/frontend/src/components/auth/AuthPageBackground.tsx b/frontend/src/components/auth/AuthPageBackground.tsxnew file mode 100644index 0000000000..775a072256--- /dev/null+++ b/frontend/src/components/auth/AuthPageBackground.tsx@@ -0,0 +1,91 @@+/* eslint-disable react/no-array-index-key */+export const AuthPageBackground = () => (+ <div className="pointer-events-none absolute inset-0 flex flex-1 items-center justify-center overflow-hidden">+ <svg+ viewBox="0 0 800 800"+ className="h-[900px] w-[900px] opacity-[0.06]"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ >+ <circle cx="400" cy="400" r="380" stroke="white" strokeWidth="2" />+ <circle cx="400" cy="400" r="370" stroke="white" strokeWidth="0.5" />+ {Array.from({ length: 24 }).map((_, i) => {+ const angle = (i * 15 * Math.PI) / 180;+ const x = 400 + 375 * Math.cos(angle);+ const y = 400 + 375 * Math.sin(angle);+ return <circle key={`bolt-${i}`} cx={x} cy={y} r="4" fill="white" />;+ })}+ <circle cx="400" cy="400" r="300" stroke="white" strokeWidth="1.5" />+ <circle cx="400" cy="400" r="290" stroke="white" strokeWidth="0.5" />+ {Array.from({ length: 60 }).map((_, i) => {+ const angle = (i * 6 * Math.PI) / 180;+ const innerR = i % 5 === 0 ? 280 : 285;+ const x1 = 400 + innerR * Math.cos(angle);+ const y1 = 400 + innerR * Math.sin(angle);+ const x2 = 400 + 290 * Math.cos(angle);+ const y2 = 400 + 290 * Math.sin(angle);+ return (+ <line+ key={`tick-${i}`}+ x1={x1}+ y1={y1}+ x2={x2}+ y2={y2}+ stroke="white"+ strokeWidth={i % 5 === 0 ? "1.5" : "0.5"}+ />+ );+ })}+ <circle cx="400" cy="400" r="200" stroke="white" strokeWidth="1" />+ <circle cx="400" cy="400" r="195" stroke="white" strokeWidth="0.3" />+ {Array.from({ length: 8 }).map((_, i) => {+ const angle = (i * 45 * Math.PI) / 180;+ const x1 = 400 + 200 * Math.cos(angle);+ const y1 = 400 + 200 * Math.sin(angle);+ const x2 = 400 + 300 * Math.cos(angle);+ const y2 = 400 + 300 * Math.sin(angle);+ return (+ <line+ key={`spoke-${i}`}+ x1={x1}+ y1={y1}+ x2={x2}+ y2={y2}+ stroke="white"+ strokeWidth="3"+ strokeLinecap="round"+ />+ );+ })}+ <circle cx="400" cy="400" r="100" stroke="white" strokeWidth="2" />+ <circle cx="400" cy="400" r="80" stroke="white" strokeWidth="0.5" />+ <circle cx="400" cy="400" r="15" fill="white" />+ <line+ x1="320"+ y1="400"+ x2="480"+ y2="400"+ stroke="white"+ strokeWidth="4"+ strokeLinecap="round"+ />+ <line+ x1="400"+ y1="320"+ x2="400"+ y2="480"+ stroke="white"+ strokeWidth="4"+ strokeLinecap="round"+ />+ <line x1="50" y1="50" x2="150" y2="50" stroke="white" strokeWidth="1" />+ <line x1="50" y1="50" x2="50" y2="150" stroke="white" strokeWidth="1" />+ <line x1="750" y1="50" x2="650" y2="50" stroke="white" strokeWidth="1" />+ <line x1="750" y1="50" x2="750" y2="150" stroke="white" strokeWidth="1" />+ <line x1="50" y1="750" x2="150" y2="750" stroke="white" strokeWidth="1" />+ <line x1="50" y1="750" x2="50" y2="650" stroke="white" strokeWidth="1" />+ <line x1="750" y1="750" x2="650" y2="750" stroke="white" strokeWidth="1" />+ <line x1="750" y1="750" x2="750" y2="650" stroke="white" strokeWidth="1" />+ </svg>+ </div>+);diff --git a/frontend/src/components/auth/AuthPageFooter.tsx b/frontend/src/components/auth/AuthPageFooter.tsxnew file mode 100644index 0000000000..f162a4c63f--- /dev/null+++ b/frontend/src/components/auth/AuthPageFooter.tsx@@ -0,0 +1,37 @@+export const AuthPageFooter = () => (+ <footer className="relative z-10 mt-[14px] py-6 text-center">+ <div className="mb-3 flex items-center justify-center gap-4">+ <a+ href="https://x.com/infisical"+ target="_blank"+ rel="noopener noreferrer"+ className="text-mineshaft-400 transition-colors hover:text-white"+ >+ <svg className="size-4" fill="currentColor" viewBox="0 0 24 24">+ <path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />+ </svg>+ </a>+ <a+ href="https://www.linkedin.com/company/infisical/"+ target="_blank"+ rel="noopener noreferrer"+ className="text-mineshaft-400 transition-colors hover:text-white"+ >+ <svg className="size-4" fill="currentColor" viewBox="0 0 24 24">+ <path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" />+ </svg>+ </a>+ <a+ href="https://www.youtube.com/@infisical_os"+ target="_blank"+ rel="noopener noreferrer"+ className="text-mineshaft-400 transition-colors hover:text-white"+ >+ <svg className="size-4" fill="currentColor" viewBox="0 0 24 24">+ <path d="M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" />+ </svg>+ </a>+ </div>+ <p className="text-xs text-mineshaft-400">© 2026 Infisical Inc. All rights reserved.</p>+ </footer>+);diff --git a/frontend/src/components/auth/CodeInputStep.tsx b/frontend/src/components/auth/CodeInputStep.tsxindex 499e2cd757..df30ec210d 100644--- a/frontend/src/components/auth/CodeInputStep.tsx+++ b/frontend/src/components/auth/CodeInputStep.tsx@@ -4,46 +4,51 @@ import ReactCodeInput from "react-code-input";import { useTranslation } from "react-i18next";import { Link } from "@tanstack/react-router";+import {+ Button,+ FieldError,+ UnstableCard,+ UnstableCardContent,+ UnstableCardHeader,+ UnstableCardTitle+} from "@app/components/v3";import { useSendVerificationEmail } from "@app/hooks/api";-import Error from "../basic/Error";-import { Button } from "../v2";--// The style for the verification code input-const props = {+// Matches v3 input theme: transparent bg, border (#2b2c30), foreground text (#ebebeb), ring on focus (#2d2f33)+const codeInputStyle = {inputStyle: {fontFamily: "monospace",margin: "4px",MozAppearance: "textfield",width: "55px",- borderRadius: "5px",+ borderRadius: "6px",fontSize: "24px",height: "55px",paddingLeft: "7",- backgroundColor: "#0d1117",- color: "white",- border: "1px solid #2d2f33",+ backgroundColor: "transparent",+ color: "#ebebeb",+ border: "1px solid #2b2c30",textAlign: "center",- outlineColor: "#8ca542",- borderColor: "#2d2f33"+ outlineColor: "#2d2f33",+ borderColor: "#2b2c30"}} as const;-const propsPhone = {+const codeInputStylePhone = {inputStyle: {fontFamily: "monospace",margin: "4px",MozAppearance: "textfield",width: "40px",- borderRadius: "5px",+ borderRadius: "6px",fontSize: "24px",height: "40px",paddingLeft: "7",- backgroundColor: "#0d1117",- color: "white",- border: "1px solid #2d2f33",+ backgroundColor: "transparent",+ color: "#ebebeb",+ border: "1px solid #2b2c30",textAlign: "center",- outlineColor: "#8ca542",- borderColor: "#2d2f33"+ outlineColor: "#2d2f33",+ borderColor: "#2b2c30"}} as const;@@ -90,72 +95,71 @@ export default function CodeInputStep({};return (- <div className="mx-auto h-full w-full pb-4 md:px-8">- <p className="text-md flex justify-center text-bunker-200">{t("signup.step2-message")}</p>- <p className="text-md my-1 flex justify-center font-medium text-bunker-200">{email} </p>- <div className="mx-auto hidden w-max min-w-[20rem] md:block">- <ReactCodeInput- name=""- inputMode="tel"- type="text"- fields={6}- onChange={setCode}- {...props}- className="mt-6 mb-2"- />- </div>- <div className="mx-auto mt-4 block w-max md:hidden">- <ReactCodeInput- name=""- inputMode="tel"- type="text"- fields={6}- onChange={setCode}- {...propsPhone}- className="mt-2 mb-2"- />- </div>- {codeError && <Error text={t("signup.step2-code-error")} />}- <div className="mx-auto mt-2 flex w-1/4 max-w-xs min-w-[20rem] flex-col items-center justify-center text-center text-sm md:max-w-md md:text-left lg:w-[19%]">- <div className="text-l w-full py-1 text-lg">- <Button- type="submit"- onClick={incrementStep}- size="sm"- isFullWidth- className="h-14"- colorSchema="primary"- variant="outline_bg"- isLoading={isCodeInputCheckLoading}- >- {" "}- {String(t("signup.verify"))}{" "}- </Button>- </div>- </div>- <div className="mx-auto flex max-h-24 w-full max-w-md flex-col items-center justify-center pt-2">- <div className="flex flex-row items-baseline gap-1 text-sm">- <span className="text-bunker-400">{t("signup.step2-resend-alert")}</span>- <div className="text-md mt-2 flex flex-row text-bunker-400">- <button disabled={isLoading} onClick={resendVerificationEmail} type="button">- <span className="cursor-pointer duration-200 hover:text-bunker-200 hover:underline hover:decoration-primary-700 hover:underline-offset-4">- {isResendingVerificationEmail- ? t("signup.step2-resend-progress")- : t("signup.step2-resend-submit")}- </span>- </button>+ <div className="mx-auto flex w-full flex-col items-center justify-center">+ <UnstableCard className="mx-auto w-full max-w-md items-stretch gap-0 p-6">+ <UnstableCardHeader className="mb-2 gap-2">+ <UnstableCardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text text-center text-[1.55rem] font-medium text-transparent">+ {t("signup.step2-message")}+ </UnstableCardTitle>+ </UnstableCardHeader>+ <UnstableCardContent>+ <p className="text-md my-1 flex justify-center font-medium text-foreground">{email}</p>+ <div className="mx-auto hidden w-max min-w-[20rem] md:block">+ <ReactCodeInput+ name=""+ inputMode="tel"+ type="text"+ fields={6}+ onChange={setCode}+ {...codeInputStyle}+ className="code-input-v3 mt-6 mb-2"+ />+ </div>+ <div className="mx-auto mt-4 block w-max md:hidden">+ <ReactCodeInput+ name=""+ inputMode="tel"+ type="text"+ fields={6}+ onChange={setCode}+ {...codeInputStylePhone}+ className="code-input-v3 mt-2 mb-2"+ />+ </div>+ {codeError && <FieldError>{t("signup.step2-code-error")}</FieldError>}+ <div className="mt-4 w-full">+ <Button+ type="submit"+ onClick={incrementStep}+ variant="project"+ size="lg"+ isFullWidth+ isPending={isCodeInputCheckLoading}+ isDisabled={isCodeInputCheckLoading}+ >+ {String(t("signup.verify"))}+ </Button>+ </div>+ <div className="mt-6 flex flex-col items-center gap-1 text-sm text-muted">+ <div className="flex flex-row items-baseline gap-1">+ <button disabled={isLoading} onClick={resendVerificationEmail} type="button">+ <span className="cursor-pointer duration-200 hover:text-label hover:underline hover:decoration-project/45 hover:underline-offset-2">+ {t("signup.step2-resend-alert")}{" "}+ {isResendingVerificationEmail+ ? t("signup.step2-resend-progress")+ : t("signup.step2-resend-submit")}+ </span>+ </button>+ </div>+ <Link+ to="/login"+ className="cursor-pointer duration-200 hover:text-label hover:underline hover:decoration-project/45 hover:underline-offset-2"+ >+ Have an account? Log in+ </Link></div>- </div>- <p className="pb-2 text-sm text-bunker-400">{t("signup.step2-spam-alert")}</p>- <p className="text-sm text-bunker-400">- <Link- to="/login"- className="cursor-pointer duration-200 hover:text-bunker-200 hover:underline hover:decoration-primary-700 hover:underline-offset-4"- >- Have an account? Log in- </Link>- </p>- </div>+ </UnstableCardContent>+ </UnstableCard></div>);}diff --git a/frontend/src/components/auth/EnterEmailStep.tsx b/frontend/src/components/auth/EnterEmailStep.tsxindex 01b7006d3b..d60b4f4c84 100644--- a/frontend/src/components/auth/EnterEmailStep.tsx+++ b/frontend/src/components/auth/EnterEmailStep.tsx@@ -3,10 +3,17 @@ import { useTranslation } from "react-i18next";import { Link } from "@tanstack/react-router";import { z } from "zod";+import {+ Button,+ FieldError,+ UnstableCard,+ UnstableCardContent,+ UnstableCardHeader,+ UnstableCardTitle,+ UnstableInput+} from "@app/components/v3";import { useSendVerificationEmail } from "@app/hooks/api";-import { Button, Input } from "../v2";-interface DownloadBackupPDFStepProps {incrementStep: () => void;email: string;@@ -53,54 +60,48 @@ export default function EnterEmailStep({};return (- <div>- <div className="mx-auto w-full md:px-6">- <p className="flex justify-center bg-linear-to-b from-white to-bunker-200 bg-clip-text text-xl font-medium text-transparent">- {t("signup.step1-start")}- </p>- <div className="m-auto mt-8 flex w-1/4 min-w-[20rem] flex-col items-center justify-center rounded-lg lg:w-1/6">- <Input- placeholder="Enter your email address..."- onChange={(e) => setEmail(e.target.value)}- value={email}- isRequired- autoComplete="username"- className="h-12"- />- {emailError && (- <p className="mt-1.5 ml-1.5 w-full text-left text-xs text-red-600">- Please enter a valid email.- </p>- )}- </div>- <div className="mx-auto mt-2 flex w-1/4 max-w-xs min-w-[20rem] flex-col items-center justify-center text-center text-sm md:max-w-md md:text-left lg:w-1/6">- <div className="text-l w-full py-1 text-lg">+ <div className="mx-auto flex w-full flex-col items-center justify-center">+ <UnstableCard className="mx-auto w-full max-w-sm items-stretch gap-0 p-6">+ <UnstableCardHeader className="mb-4 gap-4">+ <UnstableCardTitle className="ml-0.5 bg-linear-to-b from-white to-bunker-200 bg-clip-text text-[1.65rem] font-medium text-transparent">+ {t("signup.step1-start")}+ </UnstableCardTitle>+ </UnstableCardHeader>+ <UnstableCardContent>+ <div className="w-full">+ <UnstableInput+ placeholder="Enter your email address..."+ onChange={(e) => setEmail(e.target.value)}+ value={email}+ required+ autoComplete="username"+ className="h-10"+ isError={emailError}+ />+ {emailError && <FieldError>Please enter a valid email.</FieldError>}+ </div>+ <div className="mt-4 w-full"><Buttontype="submit"onClick={emailCheck}- size="sm"+ variant="project"+ size="lg"isFullWidth- className="h-14"- colorSchema="primary"- variant="outline_bg"- isLoading={isPending}isDisabled={isPending}+ isPending={isPending}>- {" "}- {String(t("signup.step1-submit"))}{" "}+ {String(t("signup.step1-submit"))}</Button></div>- </div>- </div>- <div className="mx-auto mt-2 mb-48 flex w-full max-w-md flex-col items-center justify-center pt-2 md:mb-16 md:pb-2">- <Link to="/login">- <button type="button" className="w-max pb-3 duration-200 hover:opacity-90">- <span className="cursor-pointer text-sm text-mineshaft-400 duration-200 hover:text-bunker-200 hover:underline hover:decoration-primary-700 hover:underline-offset-4">- {t("signup.already-have-account")}- </span>- </button>- </Link>- </div>+ <div className="mt-6 flex w-full justify-center text-sm text-muted">+ <Link to="/login">+ <span className="cursor-pointer duration-200 hover:text-label hover:underline hover:decoration-project/45 hover:underline-offset-2">+ {t("signup.already-have-account")}+ </span>+ </Link>+ </div>+ </UnstableCardContent>+ </UnstableCard></div>);}diff --git a/frontend/src/components/auth/InitialSignupStep.tsx b/frontend/src/components/auth/InitialSignupStep.tsxindex 88ca04692e..b1564e86f6 100644--- a/frontend/src/components/auth/InitialSignupStep.tsx+++ b/frontend/src/components/auth/InitialSignupStep.tsx@@ -1,15 +1,21 @@import { useTranslation } from "react-i18next";import { faGithub, faGitlab, faGoogle } from "@fortawesome/free-brands-svg-icons";-import { faEnvelope } from "@fortawesome/free-regular-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { Link } from "@tanstack/react-router";+import { CircleChevronRightIcon, Mail } from "lucide-react";import { RegionSelect } from "@app/components/navigation/RegionSelect";+import {+ Button,+ UnstableCard,+ UnstableCardAction,+ UnstableCardContent,+ UnstableCardHeader,+ UnstableCardTitle+} from "@app/components/v3";import { useServerConfig } from "@app/context";import { LoginMethod } from "@app/hooks/api/admin/types";-import { Button } from "../v2";-export default function InitialSignupStep({setIsSignupWithEmail}: {@@ -23,86 +29,121 @@ export default function InitialSignupStep({return (<div className="mx-auto flex w-full flex-col items-center justify-center">- <h1 className="mb-8 bg-linear-to-b from-white to-bunker-200 bg-clip-text text-center text-xl font-medium text-transparent">- {t("signup.initial-title")}- </h1>- <RegionSelect />- {shouldDisplaySignupMethod(LoginMethod.GOOGLE) && (- <div className="w-1/4 min-w-[20rem] rounded-md lg:w-1/6">- <Button- colorSchema="primary"- variant="solid"- onClick={() => {- window.open("/api/v1/sso/redirect/google");- window.close();- }}- leftIcon={<FontAwesomeIcon icon={faGoogle} className="mr-2" />}- className="mx-0 h-12 w-full"- >- {t("signup.continue-with-google")}- </Button>- </div>- )}- {shouldDisplaySignupMethod(LoginMethod.GITHUB) && (- <div className="mt-4 w-1/4 min-w-[20rem] rounded-md lg:w-1/6">- <Button- colorSchema="primary"- variant="outline_bg"- onClick={() => {- window.open("/api/v1/sso/redirect/github");- window.close();- }}- leftIcon={<FontAwesomeIcon icon={faGithub} className="mr-2" />}- className="mx-0 h-12 w-full"- >- Continue with GitHub- </Button>- </div>- )}- {shouldDisplaySignupMethod(LoginMethod.GITLAB) && (- <div className="mt-4 w-1/4 min-w-[20rem] rounded-md lg:w-1/6">- <Button- colorSchema="primary"- variant="outline_bg"- onClick={() => {- window.open("/api/v1/sso/redirect/gitlab");- window.close();- }}- leftIcon={<FontAwesomeIcon icon={faGitlab} className="mr-2" />}- className="mx-0 h-12 w-full"- >- Continue with GitLab- </Button>- </div>- )}- {shouldDisplaySignupMethod(LoginMethod.EMAIL) && (- <div className="mt-4 w-1/4 min-w-[20rem] rounded-md text-center lg:w-1/6">- <Button- colorSchema="primary"- variant="outline_bg"- onClick={() => {- setIsSignupWithEmail(true);- }}- leftIcon={<FontAwesomeIcon icon={faEnvelope} className="mr-2" />}- className="mx-0 h-12 w-full"+ <UnstableCard className="mx-auto w-full max-w-sm items-stretch gap-0 p-6">+ <UnstableCardHeader className="mb-4 gap-4">+ <UnstableCardTitle className="ml-0.5 bg-linear-to-b from-white to-bunker-200 bg-clip-text text-[1.65rem] font-medium text-transparent">+ {t("signup.initial-title")}+ </UnstableCardTitle>+ <UnstableCardAction className="-mr-2">+ <RegionSelect compact />+ </UnstableCardAction>+ </UnstableCardHeader>+ <UnstableCardContent>+ {shouldDisplaySignupMethod(LoginMethod.EMAIL) && (+ <div className="mt-2 w-full">+ <Button+ variant="project"+ size="lg"+ isFullWidth+ onClick={() => setIsSignupWithEmail(true)}+ >+ <Mail className="mr-2 size-4" />+ Continue with Email+ </Button>+ </div>+ )}+ {shouldDisplaySignupMethod(LoginMethod.GOOGLE) && (+ <div className="mt-2 w-full">+ <Button+ variant="outline"+ size="lg"+ isFullWidth+ onClick={() => {+ window.open("/api/v1/sso/redirect/google");+ window.close();+ }}+ >+ <FontAwesomeIcon icon={faGoogle} className="mr-2" />+ {t("signup.continue-with-google")}+ </Button>+ </div>+ )}+ {shouldDisplaySignupMethod(LoginMethod.GITHUB) && (+ <div className="mt-2 w-full">+ <Button+ variant="outline"+ size="lg"+ isFullWidth+ onClick={() => {+ window.open("/api/v1/sso/redirect/github");+ window.close();+ }}+ >+ <FontAwesomeIcon icon={faGithub} className="mr-2" />+ Continue with GitHub+ </Button>+ </div>+ )}+ {shouldDisplaySignupMethod(LoginMethod.GITLAB) && (+ <div className="mt-2 w-full">+ <Button+ variant="outline"+ size="lg"+ isFullWidth+ onClick={() => {+ window.open("/api/v1/sso/redirect/gitlab");+ window.close();+ }}+ >+ <FontAwesomeIcon icon={faGitlab} className="mr-2" />+ Continue with GitLab+ </Button>+ </div>+ )}+ <div className="mt-6 flex flex-row justify-center text-xs text-muted">+ <Link to="/login">+ <span className="cursor-pointer duration-200 hover:text-label hover:underline hover:decoration-project/45 hover:underline-offset-2">+ Already have an account? Log in+ </span>+ </Link>+ </div>+ <p className="mt-4 text-center text-xs text-muted">+ By signing up, you agree to our{" "}+ <a+ href="https://infisical.com/terms/cloud"+ target="_blank"+ rel="noopener noreferrer"+ className="cursor-pointer underline underline-offset-2 duration-200 hover:text-label hover:decoration-project/45"+ >+ Terms of Service+ </a>{" "}+ and{" "}+ <a+ href="https://infisical.com/privacy"+ target="_blank"+ rel="noopener noreferrer"+ className="cursor-pointer underline underline-offset-2 duration-200 hover:text-label hover:decoration-project/45"+ >+ Privacy Policy+ </a>+ .+ </p>+ <a+ href="https://infisical.com/talk-to-us?utm_source=signup&utm_medium=referral"+ target="_blank"+ rel="noopener noreferrer"+ className="mt-6 flex cursor-pointer items-center justify-between gap-3 rounded-lg border border-project/35 bg-project/5 px-4 py-3 transition-colors hover:border-project/40 hover:bg-project/10">- Continue with Email- </Button>- </div>- )}- <div className="mt-6 w-1/4 min-w-[20rem] px-8 text-center text-xs text-bunker-400 lg:w-1/6">- {t("signup.create-policy")}- </div>- <div className="mt-2 w-1/4 min-w-[20rem] px-8 text-center text-xs text-bunker-400 lg:w-1/4">- {t("signup.product-updates-notice")}- </div>- <div className="mt-2 flex flex-row text-xs text-bunker-400">- <Link to="/login">- <span className="cursor-pointer duration-200 hover:text-bunker-200 hover:underline hover:decoration-primary-700 hover:underline-offset-4">- {t("signup.already-have-account")}- </span>- </Link>- </div>+ <span className="min-w-0 flex-1 text-xs text-foreground/75">+ Have a complex company use case?{" "}+ <span className="font-medium">+ Get <span className="text-white/90">Enterprise grade</span> assistance+ </span>+ </span>+ <CircleChevronRightIcon className="size-4.5 opacity-75" />+ </a>+ </UnstableCardContent>+ </UnstableCard></div>);}diff --git a/frontend/src/components/auth/TeamInviteStep.tsx b/frontend/src/components/auth/TeamInviteStep.tsxindex c03229a33c..b85ffab0f4 100644--- a/frontend/src/components/auth/TeamInviteStep.tsx+++ b/frontend/src/components/auth/TeamInviteStep.tsx@@ -2,11 +2,19 @@ import { useState } from "react";import { useTranslation } from "react-i18next";import { useNavigate } from "@tanstack/react-router";+import {+ Button,+ TextArea,+ UnstableCard,+ UnstableCardContent,+ UnstableCardHeader,+ UnstableCardTitle+} from "@app/components/v3";import { useAddUsersToOrg } from "@app/hooks/api";import { useFetchServerStatus } from "@app/hooks/api/serverDetails";import { usePopUp } from "@app/hooks/usePopUp";-import { Button, EmailServiceSetupModal } from "../v2";+import { EmailServiceSetupModal } from "../v2";/*** This is the last step of the signup flow. People can optionally invite their teammates here.@@ -46,26 +54,20 @@ export default function TeamInviteStep(): JSX.Element {};return (- <div className="mx-auto mb-64 h-full w-max min-w-lg px-8 pb-4 md:mb-32">- <p className="flex justify-center bg-linear-to-b from-white to-bunker-200 bg-clip-text text-2xl font-medium text-transparent">- {t("signup.step5-invite-team")}- </p>- <p className="mt-4 mb-6 flex justify-center text-center text-bunker-400 md:mx-8">- {t("signup.step5-subtitle")}- </p>- <div className="mx-auto mb-6 w-max rounded-xl border border-mineshaft-500 bg-mineshaft-800 px-8 pt-6 pb-4 drop-shadow-xl">- <div>- <div className="pb-1 pl-1 text-sm font-medium text-bunker-300">- <span>Emails</span>- </div>- <textarea- className="ring-opacity-70 h-20 w-full min-w-120 rounded-md border border-mineshaft-500 bg-mineshaft-900/70 px-2 py-1 text-sm text-bunker-300 ring-primary-800 outline-hidden placeholder:text-bunker-400 focus:ring-2"+ <div className="mx-auto flex w-full flex-col items-center justify-center">+ <UnstableCard className="mx-auto w-full max-w-md items-stretch gap-0 p-6">+ <UnstableCardHeader className="mb-4 gap-2">+ <UnstableCardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text text-[1.65rem] font-medium text-transparent">+ {t("signup.step5-invite-team")}+ </UnstableCardTitle>+ </UnstableCardHeader>+ <UnstableCardContent className="flex flex-col gap-y-4">+ <TextArea+ className="min-h-20"value={emails}onChange={(e) => setEmails(e.target.value)}- placeholder="[email protected], [email protected]..."+ placeholder="[email protected], [email protected]"/>- </div>- <div className="mx-auto mt-2 flex w-full flex-row items-end justify-end text-sm md:mt-4 md:mb-2 md:max-w-md md:min-w-120"><ButtononClick={() => {if (serverDetails?.emailConfigured) {@@ -74,34 +76,22 @@ export default function TeamInviteStep(): JSX.Element {handlePopUpOpen("setUpEmail");}}}- size="sm"- // isFullWidth- className="h-10"- colorSchema="primary"- variant="solid"+ variant="project"+ size="lg"+ isFullWidth>- {" "}- {t("signup.step5-send-invites") ?? ""}{" "}+ {t("signup.step5-send-invites") ?? ""}</Button>- </div>- <EmailServiceSetupModal- isOpen={popUp.setUpEmail?.isOpen}- onOpenChange={(isOpen) => handlePopUpToggle("setUpEmail", isOpen)}- />- </div>- <div className="mx-auto mt-4 mb-2 flex max-h-24 max-w-max min-w-[20rem] flex-row items-center justify-center px-4 text-lg md:p-2">- <Button- onClick={redirectToHome}- size="sm"- isFullWidth- className="h-12"- colorSchema="secondary"- variant="outline"- >- {" "}- {t("signup.step5-skip") ?? "Skip"}{" "}- </Button>- </div>++ <Button onClick={redirectToHome} variant="outline" size="lg" isFullWidth>+ {t("signup.step5-skip") ?? "Skip"}+ </Button>+ </UnstableCardContent>+ </UnstableCard>+ <EmailServiceSetupModal+ isOpen={popUp.setUpEmail?.isOpen}+ onOpenChange={(isOpen) => handlePopUpToggle("setUpEmail", isOpen)}+ /></div>);}diff --git a/frontend/src/components/auth/UserInfoStep.tsx b/frontend/src/components/auth/UserInfoStep.tsxindex 021a7c231f..3e3fae40df 100644--- a/frontend/src/components/auth/UserInfoStep.tsx+++ b/frontend/src/components/auth/UserInfoStep.tsx@@ -1,17 +1,28 @@import { useState } from "react";import { useTranslation } from "react-i18next";-import { faXmark } from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { Eye, EyeOff, X } from "lucide-react";+import {+ Button,+ FieldError,+ InputGroup,+ InputGroupAddon,+ InputGroupInput,+ TextArea,+ UnstableCard,+ UnstableCardContent,+ UnstableCardHeader,+ UnstableCardTitle,+ UnstableIconButton,+ UnstableInput+} from "@app/components/v3";import { initProjectHelper } from "@app/helpers/project";import { completeAccountSignup, useSelectOrganization } from "@app/hooks/api/auth/queries";import { fetchOrganizations } from "@app/hooks/api/organization/queries";import { onRequestError } from "@app/hooks/api/reactQuery";-import InputField from "../basic/InputField";import checkPassword from "../utilities/checks/password/checkPassword";import SecurityClient from "../utilities/SecurityClient";-import { Button, Input } from "../v2";interface UserInfoStepProps {incrementStep: () => void;@@ -66,6 +77,7 @@ export default function UserInfoStep({}: UserInfoStepProps): JSX.Element {const [nameError, setNameError] = useState(false);const [organizationNameError, setOrganizationNameError] = useState(false);+ const [showPassword, setShowPassword] = useState(false);const [errors, setErrors] = useState<Errors>({});@@ -138,118 +150,113 @@ export default function UserInfoStep({};return (- <div className="mx-auto mb-36 h-full w-max rounded-xl md:mb-16 md:px-8">- <p className="text-medium mx-8 mb-6 flex justify-center bg-linear-to-b from-white to-bunker-200 bg-clip-text text-xl font-bold text-transparent md:mx-16">- {t("signup.step3-message")}- </p>- <div className="mx-auto mb-36 h-full w-max rounded-xl py-6 md:mb-16 md:border md:border-mineshaft-600 md:bg-mineshaft-800 md:px-8">- <div className="relative z-0 flex w-full min-w-[20rem] flex-col items-center justify-end rounded-lg py-2 lg:w-1/6">- <p className="mb-1 ml-1 w-full text-left text-sm font-medium text-bunker-300">- Your Name- </p>- <Input- placeholder="Jane Doe"- onChange={(e) => setName(e.target.value)}- value={name}- isRequired- autoComplete="given-name"- className="h-12"- />- {nameError && (- <p className="mt-1 ml-1 w-full text-left text-xs text-red-600">- Please, specify your name+ <div className="mx-auto flex w-full flex-col items-center justify-center">+ <UnstableCard className="mx-auto w-full max-w-sm items-stretch gap-0 p-6">+ <UnstableCardHeader className="mb-4 gap-2">+ <UnstableCardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text text-[1.65rem] font-medium text-transparent">+ {t("signup.step3-message")}+ </UnstableCardTitle>+ </UnstableCardHeader>+ <UnstableCardContent>+ <div className="flex w-full flex-col items-stretch py-2">+ <p className="mb-1 ml-1 text-sm font-medium text-bunker-300">Your Name</p>+ <UnstableInput+ placeholder="Jane Doe"+ onChange={(e) => setName(e.target.value)}+ value={name}+ required+ autoComplete="given-name"+ isError={nameError}+ />+ {nameError && <FieldError>Please, specify your name</FieldError>}+ </div>+ <div className="flex w-full flex-col items-stretch py-2">+ <p className="mb-1 ml-1 text-sm font-medium text-bunker-300">Organization Name</p>+ <UnstableInput+ placeholder="Infisical"+ onChange={(e) => setOrganizationName(e.target.value)}+ value={organizationName}+ maxLength={64}+ required+ isError={organizationNameError}+ />+ {organizationNameError && (+ <FieldError>Please, specify your organization name</FieldError>+ )}+ </div>+ <div className="flex w-full flex-col items-stretch py-2">+ <p className="mb-1 ml-1 text-sm font-medium text-bunker-300">+ Where did you hear about us? <span className="font-light">(optional)</span></p>- )}- </div>- <div className="relative z-0 flex w-full min-w-[20rem] flex-col items-center justify-end rounded-lg py-2 lg:w-1/6">- <p className="mb-1 ml-1 w-full text-left text-sm font-medium text-bunker-300">- Organization Name- </p>- <Input- placeholder="Infisical"- onChange={(e) => setOrganizationName(e.target.value)}- value={organizationName}- maxLength={64}- isRequired- className="h-12"- />- {organizationNameError && (- <p className="mt-1 ml-1 w-full text-left text-xs text-red-600">- Please, specify your organization name+ <TextArea+ placeholder=""+ onChange={(e) => setAttributionSource(e.target.value)}+ value={attributionSource}+ rows={2}+ />+ </div>+ <div className="flex w-full flex-col items-stretch py-2">+ <p className="mb-1 ml-1 text-sm font-medium text-bunker-300">+ {t("section.password.password")}</p>- )}- </div>- <div className="relative z-0 flex w-full min-w-[20rem] flex-col items-center justify-end rounded-lg py-2 lg:w-1/6">- <p className="mb-1 ml-1 w-full text-left text-sm font-medium text-bunker-300">- Where did you hear about us? <span className="font-light">(optional)</span>- </p>- <Input- placeholder=""- onChange={(e) => setAttributionSource(e.target.value)}- value={attributionSource}- className="h-12"- />- </div>- <div className="mt-2 flex max-h-60 w-full min-w-[20rem] flex-col items-center justify-center rounded-lg py-2 lg:w-1/6">- <InputField- label={t("section.password.password")}- onChangeHandler={async (pass: string) => {- setPassword(pass);- await checkPassword({- password: pass,- setErrors- });- }}- type="password"- value={password}- isRequired- error={Object.keys(errors).length > 0}- autoComplete="new-password"- id="new-password"- />- {Object.keys(errors).length > 0 && (- <div className="mt-4 flex w-full flex-col items-start rounded-md bg-white/5 px-2 py-2">- <div className="mb-2 text-sm text-gray-400">- {t("section.password.validate-base")}- </div>- {Object.keys(errors).map((key) => {- if (errors[key as keyof Errors]) {- return (- <div className="items-top ml-1 flex flex-row justify-start" key={key}>- <div>- <FontAwesomeIcon- icon={faXmark}- className="text-md mr-2.5 ml-0.5 text-red"- />+ <InputGroup className="h-10">+ <InputGroupInput+ value={password}+ onChange={async (e) => {+ setPassword(e.target.value);+ await checkPassword({ password: e.target.value, setErrors });+ }}+ type={showPassword ? "text" : "password"}+ placeholder="Enter a strong password..."+ required+ autoComplete="new-password"+ id="new-password"+ />+ <InputGroupAddon align="inline-end">+ <UnstableIconButton+ variant="ghost"+ size="xs"+ onClick={() => setShowPassword((prev) => !prev)}+ aria-label={showPassword ? "Hide password" : "Show password"}+ >+ {showPassword ? <EyeOff /> : <Eye />}+ </UnstableIconButton>+ </InputGroupAddon>+ </InputGroup>+ {Object.keys(errors).length > 0 && (+ <div className="mt-4 flex w-full flex-col items-start rounded-md border border-border bg-container px-3 py-2.5">+ <div className="mb-1 text-sm text-gray-400">+ {t("section.password.validate-base")}+ </div>+ {Object.keys(errors).map((key) => {+ if (errors[key as keyof Errors]) {+ return (+ <div className="items-top flex flex-row justify-start" key={key}>+ <X className="mt-0.5 mr-2 size-4 shrink-0 text-danger" />+ <p className="text-sm text-gray-400">{errors[key as keyof Errors]}</p></div>- <p className="text-sm text-gray-400">{errors[key as keyof Errors]}</p>- </div>- );- }-- return null;- })}- </div>- )}- </div>- <div className="mx-auto mt-2 flex w-1/4 max-w-xs min-w-[20rem] flex-col items-center justify-center text-center text-sm md:max-w-md md:text-left lg:w-[19%]">- <div className="text-l w-full py-1 text-lg">+ );+ }+ return null;+ })}+ </div>+ )}+ </div>+ <div className="mt-4 w-full"><Buttontype="submit"onClick={signupErrorCheck}- size="sm"+ variant="project"+ size="lg"isFullWidth- className="h-14"- colorSchema="primary"- variant="outline_bg"- isLoading={isLoading}+ isPending={isLoading}+ isDisabled={isLoading}>- {" "}- {String(t("signup.signup"))}{" "}+ {String(t("signup.signup"))}</Button></div>- </div>- </div>+ </UnstableCardContent>+ </UnstableCard></div>);}diff --git a/frontend/src/components/navigation/RegionSelect.tsx b/frontend/src/components/navigation/RegionSelect.tsxindex 68a0d45684..f310873178 100644--- a/frontend/src/components/navigation/RegionSelect.tsx+++ b/frontend/src/components/navigation/RegionSelect.tsx@@ -1,8 +1,6 @@-import { faCheck } from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { useLocation } from "@tanstack/react-router";-import { Modal, ModalContent, ModalTrigger, Select, SelectItem } from "@app/components/v2";+import { Select, SelectContent, SelectItem, SelectTrigger } from "@app/components/v3";import { isInfisicalCloud } from "@app/helpers/platform";enum Region {@@ -13,8 +11,12 @@ enum Region {const regions = [{value: Region.US,- label: "United States",- location: "Virginia, USA",+ label: "US",+ bullets: [+ "Fastest option if you are based in the US",+ "Data storage compliance for this region",+ "Hosted in Virginia, USA"+ ],flag: (<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-us" viewBox="0 0 640 480"><path fill="#bd3d44" d="M0 0h640v480H0" />@@ -37,8 +39,12 @@ const regions = [},{value: Region.EU,- label: "Europe",- location: "Frankfurt, Germany",+ label: "EU",+ bullets: [+ "Fastest option if you are based in Europe",+ "Data storage compliance for this region",+ "Hosted in Frankfurt, Germany"+ ],flag: (<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-eu" viewBox="0 0 512 512"><defs>@@ -72,10 +78,14 @@ const regions = [}];-export const RegionSelect = () => {+type RegionSelectProps = {+ compact?: boolean;+};++export const RegionSelect = ({ compact }: RegionSelectProps) => {const location = useLocation();- const handleRegionSelect = (value: Region) => {+ const handleRegionSelect = (value: string) => {window.location.assign(`https://${value}.infisical.com/${location.pathname}`);};@@ -86,60 +96,46 @@ export const RegionSelect = () => {if (!shouldDisplay) return null;const [subdomain] = window.location.host.split(".");-- // default to US if not euconst currentRegion = subdomain === Region.EU ? regions[1] : regions[0];return (- <div className="mb-8 flex flex-col items-center">- <Select- className="w-44"- onValueChange={handleRegionSelect}- defaultValue={currentRegion.value}- >- {regions.map(({ value, label, flag }) => (- <SelectItem value={value} key={value}>- <div className="flex items-center gap-2">- <div className="w-4">{flag}</div>- {label}- </div>- </SelectItem>- ))}- </Select>- <Modal>- <ModalTrigger asChild>- <button type="button" className="mt-1 text-right text-xs text-mineshaft-400 underline">- Help me pick a data region- </button>- </ModalTrigger>- <ModalContent- title="Infisical Cloud data regions"- subTitle="Select the closest region to you and your team. Contact Infisical if you need to migrate regions."+ <div className={compact ? "shrink-0" : "mb-8 flex flex-col items-center"}>+ <Select value={currentRegion.value} onValueChange={handleRegionSelect}>+ <SelectTrigger className={compact ? "w-20 gap-1 px-2" : "w-full max-w-md"}>+ <div className="flex items-center gap-2">+ <div className="h-4 w-5 shrink-0">{currentRegion.flag}</div>+ <span>{currentRegion.label}</span>+ </div>+ </SelectTrigger>+ <SelectContent+ position="popper"+ align="start"+ side="right"+ sideOffset={4}+ className="max-w-md min-w-[var(--radix-select-trigger-width)]">- {regions.map(({ value, label, location: regionLocation, flag }) => (- <div className="mb-6" key={value}>- <p className="font-medium">- <span className="mr-2 inline-block w-4">{flag}</span>- {value.toUpperCase()} Region- </p>- <ul className="mt-2 ml-6 flex flex-col gap-1">- <li>- <FontAwesomeIcon size="xs" className="mr-0.5 text-green" icon={faCheck} /> Fastest- option if you are based in {value === Region.US ? "the" : ""} {label}- </li>- <li>- <FontAwesomeIcon size="xs" className="mr-0.5 text-green" icon={faCheck} /> Data- storage compliance for this region- </li>- <li>- <FontAwesomeIcon size="xs" className="mr-0.5 text-green" icon={faCheck} /> Hosted- in {regionLocation}- </li>- </ul>- </div>+ {regions.map(({ value, label, bullets, flag }) => (+ <SelectItem+ checkIconClassName="top-3"+ value={value}+ key={value}+ className="overflow-visible whitespace-normal"+ >+ <div className="flex flex-col gap-2 py-1">+ <div className="flex items-center gap-2">+ <div className="h-4 w-5 shrink-0">{flag}</div>+ <span className="font-medium">{label}</span>+ </div>+ <ul className="ml-4 flex list-disc flex-col gap-1 text-sm text-mineshaft-300">+ {bullets.map((bullet) => (+ <li key={bullet}>{bullet}</li>+ ))}+ </ul>+ </div>+ </SelectItem>))}- </ModalContent>- </Modal>+ </SelectContent>+ </Select></div>);};diff --git a/frontend/src/components/utilities/checks/password/checkPassword.ts b/frontend/src/components/utilities/checks/password/checkPassword.tsindex e641421c6c..68d81b9a1f 100644--- a/frontend/src/components/utilities/checks/password/checkPassword.ts+++ b/frontend/src/components/utilities/checks/password/checkPassword.ts@@ -75,19 +75,19 @@ const checkPassword = async ({ password, setErrors }: CheckPasswordParams): Prom{name: "escapeChar",validator: (pwd: string) => !escapeCharRegex.test(pwd),- errorText: "No escape characters allowed."+ errorText: "No escape characters allowed"},{name: "lowEntropy",validator: (pwd: string) => !lowEntropyRegexes.some((regex) => regex.test(pwd)),- errorText: "Password contains personal info."+ errorText: "Password contains personal info"}];const isBreached = await checkIsPasswordBreached(password);if (isBreached) {- errors.breached = "Password was found in a data breach.";+ errors.breached = "Password was found in a data breach";}tests.forEach((test) => {diff --git a/frontend/src/components/v3/generic/Select/Select.tsx b/frontend/src/components/v3/generic/Select/Select.tsxindex 1ee626712a..010a41ecc5 100644--- a/frontend/src/components/v3/generic/Select/Select.tsx+++ b/frontend/src/components/v3/generic/Select/Select.tsx@@ -3,6 +3,7 @@import * as React from "react";import * as SelectPrimitive from "@radix-ui/react-select";import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";+import { twMerge } from "tailwind-merge";import { cn } from "../../utils";@@ -136,8 +137,9 @@ function SelectLabel({ className, ...props }: React.ComponentProps<typeof Selectfunction SelectItem({className,children,+ checkIconClassName,...props-}: React.ComponentProps<typeof SelectPrimitive.Item>) {+}: React.ComponentProps<typeof SelectPrimitive.Item> & { checkIconClassName?: string }) {return (<SelectPrimitive.Itemdata-slot="select-item"@@ -147,7 +149,12 @@ function SelectItem({)}{...props}>- <span className="pointer-events-none absolute right-2 flex size-4 items-center justify-center">+ <span+ className={twMerge(+ "pointer-events-none absolute right-2 flex size-4 items-center justify-center",+ checkIconClassName+ )}+ ><SelectPrimitive.ItemIndicator><CheckIcon className="pointer-events-none" /></SelectPrimitive.ItemIndicator>diff --git a/frontend/src/index.css b/frontend/src/index.cssindex 185e691aa0..1e284ee108 100644--- a/frontend/src/index.css+++ b/frontend/src/index.css@@ -472,3 +472,10 @@ input[type="number"]::-webkit-outer-spin-button {-webkit-appearance: none;margin: 0;}++/* v3-style focus ring for ReactCodeInput */+.code-input-v3 input:focus {+ outline: none;+ border-color: var(--color-ring) !important;+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-ring) 50%, transparent);+}diff --git a/frontend/src/pages/auth/LoginPage/LoginPage.tsx b/frontend/src/pages/auth/LoginPage/LoginPage.tsxindex 8071764965..5dc0e642ad 100644--- a/frontend/src/pages/auth/LoginPage/LoginPage.tsx+++ b/frontend/src/pages/auth/LoginPage/LoginPage.tsx@@ -3,6 +3,7 @@ import { Helmet } from "react-helmet";import { useTranslation } from "react-i18next";import { Link } from "@tanstack/react-router";+import { AuthPageBackground } from "@app/components/auth/AuthPageBackground";import { isLoggedIn } from "@app/hooks/api/reactQuery";import { InitialStep, SSOStep } from "./components";@@ -64,7 +65,8 @@ export const LoginPage = ({ isAdmin }: { isAdmin?: boolean }) => {};return (- <div className="flex max-h-screen min-h-screen flex-col justify-center overflow-y-auto bg-linear-to-tr from-mineshaft-600 via-mineshaft-800 to-bunker-700 px-6">+ <div className="relative flex max-h-screen min-h-screen flex-col justify-center overflow-y-auto bg-linear-to-tr from-card via-bunker-900 to-card px-6">+ <AuthPageBackground /><Helmet><title>{t("common.head-title", { title: t("login.title") })}</title><link rel="icon" href="/infisical.ico" />@@ -72,19 +74,21 @@ export const LoginPage = ({ isAdmin }: { isAdmin?: boolean }) => {<meta property="og:title" content={t("login.og-title") ?? ""} /><meta name="og:description" content={t("login.og-description") ?? ""} /></Helmet>- <Link to="/">- <div className="mt-20 mb-4 flex justify-center">- <img- src="/images/gradientLogo.svg"- style={{- height: "90px",- width: "120px"- }}- alt="Infisical logo"- />- </div>- </Link>- <div className="pb-28">{renderView()}</div>+ <div className="relative z-10 mb-[6%] flex flex-col items-center py-10">+ <Link to="/">+ <div className="mb-4 flex justify-center">+ <img+ src="/images/gradientLogo.svg"+ style={{+ height: "90px",+ width: "120px"+ }}+ alt="Infisical logo"+ />+ </div>+ </Link>+ {renderView()}+ </div></div>);};diff --git a/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsx b/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsxindex 6f2a363b38..f7bd59f6e5 100644--- a/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsx+++ b/frontend/src/pages/auth/LoginPage/components/InitialStep/InitialStep.tsx@@ -1,18 +1,29 @@import { FormEvent, useEffect, useRef, useState } from "react";import { useTranslation } from "react-i18next";import { faGithub, faGitlab, faGoogle } from "@fortawesome/free-brands-svg-icons";-import { faEye, faEyeSlash } from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import HCaptcha from "@hcaptcha/react-hcaptcha";import { Link, useNavigate } from "@tanstack/react-router";+import { Eye, EyeOff } from "lucide-react";import Error from "@app/components/basic/Error";import { RegionSelect } from "@app/components/navigation/RegionSelect";import { createNotification } from "@app/components/notifications";import attemptCliLogin from "@app/components/utilities/attemptCliLogin";import attemptLogin from "@app/components/utilities/attemptLogin";-import { Button, Input } from "@app/components/v2";-import { Badge } from "@app/components/v3";+import {+ Badge,+ Button,+ InputGroup,+ InputGroupAddon,+ InputGroupInput,+ UnstableCard,+ UnstableCardAction,+ UnstableCardContent,+ UnstableCardHeader,+ UnstableCardTitle,+ UnstableIconButton,+ UnstableInput+} from "@app/components/v3";import { envConfig } from "@app/config/env";import { useServerConfig } from "@app/context";import { useFetchServerStatus } from "@app/hooks/api";@@ -198,16 +209,24 @@ export const InitialStep = ({onSubmit={handleLogin}className="mx-auto flex w-full flex-col items-center justify-center">- <h1 className="mb-8 bg-linear-to-b from-white to-bunker-200 bg-clip-text text-center text-xl font-medium text-transparent">- Login to Infisical- </h1>- <RegionSelect />- {config.defaultAuthOrgAuthMethod === AuthMethod.SAML && (- <OrgLoginButton label="Continue with SAML" onClick={handleSaml} />- )}- {config.defaultAuthOrgAuthMethod === AuthMethod.OIDC && (- <OrgLoginButton label="Continue with OIDC" onClick={handleOidc} className="mt-2" />- )}+ <UnstableCard className="mx-auto w-full max-w-sm items-stretch gap-0 p-6">+ <UnstableCardHeader className="mb-8 gap-2">+ <UnstableCardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text text-[1.7rem] font-medium text-transparent">+ Log in to Infisical+ </UnstableCardTitle>+ <UnstableCardAction className="-mr-2">+ <RegionSelect compact />+ </UnstableCardAction>+ </UnstableCardHeader>+ <UnstableCardContent>+ {config.defaultAuthOrgAuthMethod === AuthMethod.SAML && (+ <OrgLoginButton label="Continue with SAML" onClick={handleSaml} />+ )}+ {config.defaultAuthOrgAuthMethod === AuthMethod.OIDC && (+ <OrgLoginButton label="Continue with OIDC" onClick={handleOidc} className="mt-2" />+ )}+ </UnstableCardContent>+ </UnstableCard></form>);}@@ -217,158 +236,168 @@ export const InitialStep = ({onSubmit={handleLogin}className="mx-auto flex w-full flex-col items-center justify-center">- <h1 className="mb-8 bg-linear-to-b from-white to-bunker-200 bg-clip-text text-center text-xl font-medium text-transparent">- Login to Infisical- </h1>- <RegionSelect />- {shouldDisplayLoginMethod(LoginMethod.SAML) && (- <OrgLoginButton- label="Continue with SAML"- onClick={handleSaml}- showLastUsed={isLastUsedMethod(LoginMethod.SAML)}- />- )}- {shouldDisplayLoginMethod(LoginMethod.OIDC) && (- <OrgLoginButton- label="Continue with OIDC"- onClick={handleOidc}- className="mt-2"- showLastUsed={isLastUsedMethod(LoginMethod.OIDC)}- />- )}- {shouldDisplayLoginMethod(LoginMethod.LDAP) && (- <OrgLoginButton- label="Continue with LDAP"- onClick={() => navigate({ to: "/login/ldap" })}- className="mt-2"- showLastUsed={isLastUsedMethod(LoginMethod.LDAP)}- />- )}- <div className="mt-2 flex w-1/4 min-w-[21.2rem] gap-2 md:min-w-[20.1rem] lg:w-1/6">- {shouldDisplayLoginMethod(LoginMethod.GOOGLE) && (- <SocialLoginButton- icon={faGoogle}- label={t("login.continue-with-google")}- onClick={() => handleSocialLogin(LoginMethod.GOOGLE)}- showLastUsed={isLastUsedMethod(LoginMethod.GOOGLE)}- />- )}- {shouldDisplayLoginMethod(LoginMethod.GITHUB) && (- <SocialLoginButton- icon={faGithub}- label="Continue with GitHub"- onClick={() => handleSocialLogin(LoginMethod.GITHUB)}- showLastUsed={isLastUsedMethod(LoginMethod.GITHUB)}- />- )}- {shouldDisplayLoginMethod(LoginMethod.GITLAB) && (- <SocialLoginButton- icon={faGitlab}- label="Continue with GitLab"- onClick={() => handleSocialLogin(LoginMethod.GITLAB)}- showLastUsed={isLastUsedMethod(LoginMethod.GITLAB)}- />- )}- </div>- {(!config.enabledLoginMethods ||- (shouldDisplayLoginMethod(LoginMethod.EMAIL) && config.enabledLoginMethods.length > 1)) && (- <div className="my-4 flex w-1/4 min-w-[20rem] flex-row items-center py-2 lg:w-1/6">- <div className="w-full border-t border-mineshaft-400/60" />- <span className="mx-2 text-xs text-mineshaft-200">or</span>- <div className="w-full border-t border-mineshaft-400/60" />- </div>- )}- {shouldDisplayLoginMethod(LoginMethod.EMAIL) && (- <>- <div className="w-1/4 min-w-[21.2rem] rounded-md text-center md:min-w-[20.1rem] lg:w-1/6">- <Input- value={email}- onChange={(e) => setEmail(e.target.value)}- type="email"- placeholder="Enter your email..."- isRequired- autoComplete="username"- className="h-10"- />- </div>- <div className="mt-2 w-1/4 min-w-[21.2rem] rounded-md text-center md:min-w-[20.1rem] lg:w-1/6">- <Input- value={password}- onChange={(e) => setPassword(e.target.value)}- type={showPassword ? "text" : "password"}- placeholder="Enter your password..."- isRequired- autoComplete="current-password"- id="current-password"- className="select:-webkit-autofill:focus h-10"- rightIcon={- <button- type="button"- onClick={() => setShowPassword((prev) => !prev)}- className="cursor-pointer text-gray-400"- aria-label={showPassword ? "Hide password" : "Show password"}+ <UnstableCard className="mx-auto w-full max-w-sm items-stretch gap-0 p-6">+ <UnstableCardHeader className="mb-4 gap-4">+ <UnstableCardTitle className="ml-0.5 bg-linear-to-b from-white to-bunker-200 bg-clip-text text-[1.65rem] font-medium text-transparent">+ Log in to Infisical+ </UnstableCardTitle>+ <UnstableCardAction className="-mr-2">+ <RegionSelect compact />+ </UnstableCardAction>+ </UnstableCardHeader>+ <UnstableCardContent>+ {shouldDisplayLoginMethod(LoginMethod.EMAIL) && (+ <>+ <div className="w-full">+ <UnstableInput+ value={email}+ onChange={(e) => setEmail(e.target.value)}+ type="email"+ placeholder="Enter your email..."+ required+ autoComplete="username"+ className="h-10"+ />+ </div>+ <div className="mt-2 w-full">+ <InputGroup className="h-10">+ <InputGroupInput+ value={password}+ onChange={(e) => setPassword(e.target.value)}+ type={showPassword ? "text" : "password"}+ placeholder="Enter your password..."+ required+ autoComplete="current-password"+ id="current-password"+ />+ <InputGroupAddon align="inline-end">+ <UnstableIconButton+ variant="ghost"+ size="xs"+ onClick={() => setShowPassword((prev) => !prev)}+ aria-label={showPassword ? "Hide password" : "Show password"}+ >+ {showPassword ? <EyeOff /> : <Eye />}+ </UnstableIconButton>+ </InputGroupAddon>+ </InputGroup>+ </div>+ {shouldShowCaptcha && envConfig.CAPTCHA_SITE_KEY && (+ <div className="mt-4 flex justify-center">+ <HCaptcha+ theme="dark"+ sitekey={envConfig.CAPTCHA_SITE_KEY}+ onVerify={(token) => setCaptchaToken(token)}+ ref={captchaRef}+ />+ </div>+ )}+ <div className="relative mt-4 w-full">+ <Button+ type="submit"+ variant="project"+ size="lg"+ isFullWidth+ isDisabled={(shouldShowCaptcha && captchaToken === "") || isLoading}+ isPending={isLoading}>- <FontAwesomeIcon size="sm" icon={showPassword ? faEyeSlash : faEye} />- </button>- }- />- </div>- {shouldShowCaptcha && envConfig.CAPTCHA_SITE_KEY && (- <div className="mt-4">- <HCaptcha- theme="dark"- sitekey={envConfig.CAPTCHA_SITE_KEY}- onVerify={(token) => setCaptchaToken(token)}- ref={captchaRef}- />+ Continue with Email+ </Button>+ {isLastUsedMethod(LoginMethod.EMAIL) && (+ <Badge variant="default" className="absolute -top-2 -right-2">+ Last used+ </Badge>+ )}+ </div>+ </>+ )}+ {(!config.enabledLoginMethods ||+ (shouldDisplayLoginMethod(LoginMethod.EMAIL) &&+ config.enabledLoginMethods.length > 1)) && (+ <div className="my-4 flex w-full flex-row items-center py-2">+ <div className="w-full border-t border-mineshaft-400/60" />+ <span className="mx-2 text-xs text-mineshaft-400">or</span>+ <div className="w-full border-t border-mineshaft-400/60" /></div>)}- <div className="relative mt-4 w-1/4 min-w-[21.2rem] rounded-md text-center md:min-w-[20.1rem] lg:w-1/6">- <Button- disabled={shouldShowCaptcha && captchaToken === ""}- type="submit"- size="sm"- isFullWidth- className="h-10"- colorSchema="primary"- variant="solid"- isLoading={isLoading}- >- Continue with Email- </Button>- {isLastUsedMethod(LoginMethod.EMAIL) && (- <Badge variant="default" className="absolute -top-2 -right-2 rounded-full">- Last used- </Badge>+ <div className="flex w-full gap-2">+ {shouldDisplayLoginMethod(LoginMethod.GOOGLE) && (+ <SocialLoginButton+ icon={faGoogle}+ label={t("login.continue-with-google")}+ onClick={() => handleSocialLogin(LoginMethod.GOOGLE)}+ showLastUsed={isLastUsedMethod(LoginMethod.GOOGLE)}+ />+ )}+ {shouldDisplayLoginMethod(LoginMethod.GITHUB) && (+ <SocialLoginButton+ icon={faGithub}+ label="Continue with GitHub"+ onClick={() => handleSocialLogin(LoginMethod.GITHUB)}+ showLastUsed={isLastUsedMethod(LoginMethod.GITHUB)}+ />+ )}+ {shouldDisplayLoginMethod(LoginMethod.GITLAB) && (+ <SocialLoginButton+ icon={faGitlab}+ label="Continue with GitLab"+ onClick={() => handleSocialLogin(LoginMethod.GITLAB)}+ showLastUsed={isLastUsedMethod(LoginMethod.GITLAB)}+ />)}</div>- </>- )}- {!isLoading && loginError && <Error text={t("login.error-login") ?? ""} />}- {config.allowSignUp &&- (shouldDisplayLoginMethod(LoginMethod.EMAIL) ||- shouldDisplayLoginMethod(LoginMethod.GOOGLE) ||- shouldDisplayLoginMethod(LoginMethod.GITHUB) ||- shouldDisplayLoginMethod(LoginMethod.GITLAB)) ? (- <div className="mt-6 flex flex-row text-sm text-bunker-400">- <Link to="/signup">- <span className="cursor-pointer duration-200 hover:text-bunker-200 hover:underline hover:decoration-primary-700 hover:underline-offset-4">- Don't have an account yet? {t("login.create-account")}- </span>- </Link>- </div>- ) : (- <div className="mt-4" />- )}- {shouldDisplayLoginMethod(LoginMethod.EMAIL) && (- <div className="mt-2 flex flex-row text-sm text-bunker-400">- <Link to="/account-recovery">- <span className="cursor-pointer duration-200 hover:text-bunker-200 hover:underline hover:decoration-primary-700 hover:underline-offset-4">- Recover your account- </span>- </Link>- </div>- )}+ {shouldDisplayLoginMethod(LoginMethod.SAML) && (+ <OrgLoginButton+ label="Continue with SAML"+ onClick={handleSaml}+ className="mt-2"+ showLastUsed={isLastUsedMethod(LoginMethod.SAML)}+ />+ )}+ {shouldDisplayLoginMethod(LoginMethod.OIDC) && (+ <OrgLoginButton+ label="Continue with OIDC"+ onClick={handleOidc}+ className="mt-2"+ showLastUsed={isLastUsedMethod(LoginMethod.OIDC)}+ />+ )}+ {shouldDisplayLoginMethod(LoginMethod.LDAP) && (+ <OrgLoginButton+ label="Continue with LDAP"+ onClick={() => navigate({ to: "/login/ldap" })}+ className="mt-2"+ showLastUsed={isLastUsedMethod(LoginMethod.LDAP)}+ />+ )}++ {!isLoading && loginError && <Error text={t("login.error-login") ?? ""} />}+ {config.allowSignUp &&+ (shouldDisplayLoginMethod(LoginMethod.EMAIL) ||+ shouldDisplayLoginMethod(LoginMethod.GOOGLE) ||+ shouldDisplayLoginMethod(LoginMethod.GITHUB) ||+ shouldDisplayLoginMethod(LoginMethod.GITLAB)) ? (+ <div className="mt-6 flex flex-row justify-center text-xs text-muted">+ <Link to="/signup">+ <span className="cursor-pointer duration-200 hover:text-label hover:underline hover:decoration-project/45 hover:underline-offset-2">+ Don't have an account yet? {t("login.create-account")}+ </span>+ </Link>+ </div>+ ) : (+ <div className="mt-4" />+ )}+ {shouldDisplayLoginMethod(LoginMethod.EMAIL) && (+ <div className="mt-2 flex flex-row justify-center text-xs text-muted">+ <Link to="/account-recovery">+ <span className="cursor-pointer duration-200 hover:text-label hover:underline hover:decoration-project/45 hover:underline-offset-2">+ Recover your account+ </span>+ </Link>+ </div>+ )}+ </UnstableCardContent>+ </UnstableCard></form>);};diff --git a/frontend/src/pages/auth/LoginPage/components/OrgLoginButton.tsx b/frontend/src/pages/auth/LoginPage/components/OrgLoginButton.tsxindex ce8fe47745..7d65184ef0 100644--- a/frontend/src/pages/auth/LoginPage/components/OrgLoginButton.tsx+++ b/frontend/src/pages/auth/LoginPage/components/OrgLoginButton.tsx@@ -1,9 +1,8 @@import { faLock } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { twMerge } from "tailwind-merge";-import { Button } from "@app/components/v2";-import { Badge } from "@app/components/v3";+import { Badge, Button } from "@app/components/v3";+import { cn } from "@app/components/v3/utils";type Props = {label: string;@@ -13,23 +12,13 @@ type Props = {};export const OrgLoginButton = ({ label, onClick, className, showLastUsed }: Props) => (- <div- className={twMerge(- "relative w-1/4 min-w-[21.2rem] rounded-md text-center md:min-w-[20.1rem] lg:w-1/6",- className- )}- >- <Button- colorSchema="primary"- variant="outline_bg"- onClick={onClick}- leftIcon={<FontAwesomeIcon icon={faLock} className="mr-2" />}- className="mx-0 h-10 w-full"- >+ <div className={cn("relative w-full", className)}>+ <Button variant="outline" size="lg" isFullWidth onClick={onClick}>+ <FontAwesomeIcon icon={faLock} className="mr-2" />{label}</Button>{showLastUsed && (- <Badge variant="project" className="absolute -top-2 -right-2 rounded-full">+ <Badge variant="project" className="absolute -top-2 -right-2">Last used</Badge>)}diff --git a/frontend/src/pages/auth/LoginPage/components/SocialLoginButton.tsx b/frontend/src/pages/auth/LoginPage/components/SocialLoginButton.tsxindex a2247c5383..f8d9afc212 100644--- a/frontend/src/pages/auth/LoginPage/components/SocialLoginButton.tsx+++ b/frontend/src/pages/auth/LoginPage/components/SocialLoginButton.tsx@@ -1,8 +1,7 @@import { IconDefinition } from "@fortawesome/free-brands-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";-import { IconButton, Tooltip } from "@app/components/v2";-import { Badge } from "@app/components/v3";+import { Badge, Button, Tooltip, TooltipContent, TooltipTrigger } from "@app/components/v3";type Props = {icon: IconDefinition;@@ -12,22 +11,19 @@ type Props = {};export const SocialLoginButton = ({ icon, label, onClick, showLastUsed }: Props) => (- <Tooltip position="bottom" content={label}>- <div className="relative w-full">- <IconButton- ariaLabel={label}- colorSchema="primary"- variant="outline_bg"- onClick={onClick}- className="h-10 w-full bg-mineshaft-600"- >- <FontAwesomeIcon icon={icon} />- </IconButton>- {showLastUsed && (- <Badge variant="project" className="absolute -top-2 -right-2 rounded-full">- Last used- </Badge>- )}- </div>+ <Tooltip disableHoverableContent>+ <TooltipTrigger asChild>+ <div className="relative w-full">+ <Button aria-label={label} variant="outline" size="lg" isFullWidth onClick={onClick}>+ <FontAwesomeIcon icon={icon} className="!size-4" />+ </Button>+ {showLastUsed && (+ <Badge variant="project" className="absolute -top-2 -right-2">+ Last used+ </Badge>+ )}+ </div>+ </TooltipTrigger>+ <TooltipContent side="top">{label}</TooltipContent></Tooltip>);diff --git a/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx b/frontend/src/pages/auth/SignUpPage/SignUpPage.tsxindex c1405dfbfe..7e16426062 100644--- a/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx+++ b/frontend/src/pages/auth/SignUpPage/SignUpPage.tsx@@ -2,8 +2,10 @@import { useEffect, useState } from "react";import { Helmet } from "react-helmet";import { useTranslation } from "react-i18next";-import { useNavigate } from "@tanstack/react-router";+import { Link, useNavigate } from "@tanstack/react-router";+import { AuthPageBackground } from "@app/components/auth/AuthPageBackground";+import { AuthPageFooter } from "@app/components/auth/AuthPageFooter";import CodeInputStep from "@app/components/auth/CodeInputStep";import EnterEmailStep from "@app/components/auth/EnterEmailStep";import InitialSignupStep from "@app/components/auth/InitialSignupStep";@@ -125,7 +127,8 @@ export const SignUpPage = () => {};return (- <div className="flex max-h-screen min-h-screen flex-col justify-center overflow-y-auto bg-linear-to-tr from-mineshaft-600 via-mineshaft-800 to-bunker-700 px-6 pb-28">+ <div className="relative flex max-h-screen min-h-screen flex-col overflow-y-auto bg-linear-to-tr from-card via-bunker-900 to-card px-6">+ <AuthPageBackground /><Helmet><title>{t("common.head-title", { title: t("signup.title") })}</title><link rel="icon" href="/infisical.ico" />@@ -133,10 +136,21 @@ export const SignUpPage = () => {<meta property="og:title" content={t("signup.og-title") as string} /><meta name="og:description" content={t("signup.og-description") as string} /></Helmet>- <div className="mt-20 mb-4 flex justify-center">- <img src="/images/gradientLogo.svg" height={90} width={120} alt="Infisical Logo" />+ <div className="relative z-10 my-auto flex flex-col items-center py-10">+ <Link to="/">+ <div className="mb-4 flex justify-center">+ <img+ src="/images/gradientLogo.svg"+ style={{ height: "90px", width: "120px" }}+ alt="Infisical logo"+ />+ </div>+ </Link>+ <form className="w-full" onSubmit={(e) => e.preventDefault()}>+ {renderView(step)}+ </form></div>- <form onSubmit={(e) => e.preventDefault()}>{renderView(step)}</form>+ <AuthPageFooter /></div>);};diff --git a/frontend/src/pages/auth/SignUpSsoPage/SignUpSsoPage.tsx b/frontend/src/pages/auth/SignUpSsoPage/SignUpSsoPage.tsxindex eeca64e5a0..7ddc0ab497 100644--- a/frontend/src/pages/auth/SignUpSsoPage/SignUpSsoPage.tsx+++ b/frontend/src/pages/auth/SignUpSsoPage/SignUpSsoPage.tsx@@ -1,9 +1,11 @@import { useEffect, useState } from "react";import { Helmet } from "react-helmet";import { useTranslation } from "react-i18next";-import { useSearch } from "@tanstack/react-router";+import { Link, useSearch } from "@tanstack/react-router";import { jwtDecode } from "jwt-decode";+import { AuthPageBackground } from "@app/components/auth/AuthPageBackground";+import { AuthPageFooter } from "@app/components/auth/AuthPageFooter";import { ROUTE_PATHS } from "@app/const/routes";import { EmailConfirmationStep } from "./components/EmailConfirmationStep";@@ -67,7 +69,8 @@ export const SignupSsoPage = () => {};return (- <div className="flex min-h-screen flex-col justify-center bg-linear-to-tr from-mineshaft-600 via-mineshaft-800 to-bunker-700 px-6 pb-28">+ <div className="relative flex max-h-screen min-h-screen flex-col overflow-y-auto bg-linear-to-tr from-card via-bunker-900 to-card px-6">+ <AuthPageBackground /><Helmet><title>{t("common.head-title", { title: t("signup.title") })}</title><link rel="icon" href="/infisical.ico" />@@ -75,17 +78,19 @@ export const SignupSsoPage = () => {<meta property="og:title" content={t("signup.og-title") as string} /><meta name="og:description" content={t("signup.og-description") as string} /></Helmet>- <div className="mt-20 mb-4 flex justify-center">- <img- src="/images/gradientLogo.svg"- style={{- height: "90px",- width: "120px"- }}- alt="Infisical Logo"- />+ <div className="relative z-10 my-auto flex flex-col items-center py-10">+ <Link to="/">+ <div className="mb-4 flex justify-center">+ <img+ src="/images/gradientLogo.svg"+ style={{ height: "90px", width: "120px" }}+ alt="Infisical logo"+ />+ </div>+ </Link>+ {renderView()}</div>- <div>{renderView()}</div>+ <AuthPageFooter /></div>);};diff --git a/frontend/src/pages/auth/SignUpSsoPage/components/UserInfoSSOStep/UserInfoSSOStep.tsx b/frontend/src/pages/auth/SignUpSsoPage/components/UserInfoSSOStep/UserInfoSSOStep.tsxindex e5ca08df4c..f1774a0095 100644--- a/frontend/src/pages/auth/SignUpSsoPage/components/UserInfoSSOStep/UserInfoSSOStep.tsx+++ b/frontend/src/pages/auth/SignUpSsoPage/components/UserInfoSSOStep/UserInfoSSOStep.tsx@@ -6,7 +6,16 @@ import { useNavigate } from "@tanstack/react-router";import { Mfa } from "@app/components/auth/Mfa";import SecurityClient from "@app/components/utilities/SecurityClient";-import { Button, Input } from "@app/components/v2";+import {+ Button,+ FieldError,+ TextArea,+ UnstableCard,+ UnstableCardContent,+ UnstableCardHeader,+ UnstableCardTitle,+ UnstableInput+} from "@app/components/v3";import { initProjectHelper } from "@app/helpers/project";import { useToggle } from "@app/hooks";import { completeAccountSignup, useSelectOrganization } from "@app/hooks/api/auth/queries";@@ -23,19 +32,6 @@ type Props = {forceDefaultOrg?: boolean;};-/**- * This is the step of the sign up flow where people provife their name/surname and password- * @param {object} obj- * @param {string} obj.verificationToken - the token which we use to verify the legitness of a user- * @param {string} obj.incrementStep - a function to move to the next signup step- * @param {string} obj.email - email of a user who is signing up- * @param {string} obj.password - user's password- * @param {string} obj.setPassword - function managing the state of user's password- * @param {string} obj.firstName - user's first name- * @param {string} obj.setFirstName - function managing the state of user's first name- * @param {string} obj.lastName - user's lastName- * @param {string} obj.setLastName - function managing the state of user's last name- */export const UserInfoSSOStep = ({username,name,@@ -167,82 +163,71 @@ export const UserInfoSSOStep = ({}return (- <div className="mx-auto mb-36 h-full w-max rounded-xl md:mb-16 md:px-8">- <p className="text-medium mx-8 mb-6 flex justify-center bg-linear-to-b from-white to-bunker-200 bg-clip-text text-xl font-bold text-transparent md:mx-16">- {t("signup.step3-message")}- </p>- <div className="mx-auto mb-36 h-full w-max rounded-xl py-6 md:mb-16 md:border md:border-mineshaft-600 md:bg-mineshaft-800 md:px-8">- <div className="relative z-0 flex w-full min-w-[20rem] flex-col items-center justify-end rounded-lg py-2 lg:w-1/6">- <p className="mb-1 ml-1 w-full text-left text-sm font-medium text-bunker-300">- Your Name- </p>- <Input- placeholder="Jane Doe"- value={name}- disabled- isRequired- autoComplete="given-name"- className="h-12"- />- {nameError && (- <p className="mt-1 ml-1 w-full text-left text-xs text-red-600">- Please, specify your name- </p>- )}- </div>- {!forceDefaultOrg && providerOrganizationName === undefined && (- <div className="relative z-0 flex w-full min-w-[20rem] flex-col items-center justify-end rounded-lg py-2 lg:w-1/6">- <p className="mb-1 ml-1 w-full text-left text-sm font-medium text-bunker-300">- Organization Name- </p>- <Input- placeholder="Infisical"- value={organizationName}- onChange={(e) => setOrganizationName(e.target.value)}- isRequired- className="h-12"- maxLength={64}- isDisabled={forceDefaultOrg}- />- {organizationNameError && (- <p className="mt-1 ml-1 w-full text-left text-xs text-red-600">- Please, specify your organization name- </p>- )}- </div>- )}- {providerOrganizationName === undefined && (- <div className="relative z-0 flex w-full min-w-[20rem] flex-col items-center justify-end rounded-lg py-2 lg:w-1/6">- <p className="mb-1 ml-1 w-full text-left text-sm font-medium text-bunker-300">- Where did you hear about us? <span className="font-light">(optional)</span>- </p>- <Input- placeholder=""- onChange={(e) => setAttributionSource(e.target.value)}- value={attributionSource}- className="h-12"+ <div className="mx-auto flex w-full flex-col items-center justify-center">+ <UnstableCard className="mx-auto w-full max-w-sm items-stretch gap-0 p-6">+ <UnstableCardHeader className="mb-4 gap-2">+ <UnstableCardTitle className="bg-linear-to-b from-white to-bunker-200 bg-clip-text text-[1.65rem] font-medium text-transparent">+ {t("signup.step3-message")}+ </UnstableCardTitle>+ </UnstableCardHeader>+ <UnstableCardContent>+ <div className="flex w-full flex-col items-stretch py-2">+ <p className="mb-1 ml-1 text-sm font-medium text-bunker-300">Your Name</p>+ <UnstableInput+ placeholder="Jane Doe"+ value={name}+ disabled+ required+ autoComplete="given-name"+ isError={nameError}/>+ {nameError && <FieldError>Please, specify your name</FieldError>}</div>- )}- <div className="mx-auto mt-2 flex w-1/4 max-w-xs min-w-[20rem] flex-col items-center justify-center text-center text-sm md:max-w-md md:text-left lg:w-[19%]">- <div className="text-l w-full py-1 text-lg">+ {!forceDefaultOrg && providerOrganizationName === undefined && (+ <div className="flex w-full flex-col items-stretch py-2">+ <p className="mb-1 ml-1 text-sm font-medium text-bunker-300">Organization Name</p>+ <UnstableInput+ placeholder="Infisical"+ value={organizationName}+ onChange={(e) => setOrganizationName(e.target.value)}+ required+ maxLength={64}+ disabled={forceDefaultOrg}+ isError={organizationNameError}+ />+ {organizationNameError && (+ <FieldError>Please, specify your organization name</FieldError>+ )}+ </div>+ )}+ {providerOrganizationName === undefined && (+ <div className="flex w-full flex-col items-stretch py-2">+ <p className="mb-1 ml-1 text-sm font-medium text-bunker-300">+ Where did you hear about us? <span className="font-light">(optional)</span>+ </p>+ <TextArea+ placeholder=""+ onChange={(e) => setAttributionSource(e.target.value)}+ value={attributionSource}+ rows={2}+ />+ </div>+ )}+ <div className="mt-4 w-full"><Buttontype="submit"onClick={signupErrorCheck}- size="sm"+ variant="project"+ size="lg"isFullWidth- className="h-12"- colorSchema="primary"- variant="outline_bg"- isLoading={isLoading}+ isPending={isLoading}isDisabled={isLoading}>- {" "}- {String(t("signup.signup"))}{" "}+ {String(t("signup.signup"))}</Button></div>- </div>- </div>+ </UnstableCardContent>+ </UnstableCard></div>);};