Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

style updates

Vladyslav Matsiiako264740d84d86
diff --git a/frontend/src/components/signup/InitialSignupStep.tsx b/frontend/src/components/signup/InitialSignupStep.tsx
index fb965470ec..b734050983 100644
--- a/frontend/src/components/signup/InitialSignupStep.tsx
+++ b/frontend/src/components/signup/InitialSignupStep.tsx
@@ -16,36 +16,31 @@ export default function InitialSignupStep({
return <div className='flex flex-col mx-auto w-full justify-center items-center'>
<h1 className='text-xl font-medium text-transparent bg-clip-text bg-gradient-to-b from-white to-bunker-200 text-center mb-8' >{t("signup.initial-title")}</h1>
- <div className='lg:w-1/6 w-1/4 min-w-[20rem] text-center rounded-md'>
+ <div className='lg:w-1/6 w-1/4 min-w-[20rem] rounded-md'>
<Button
colorSchema="primary"
variant="solid"
onClick={() => {
- setIsSignupWithEmail(true);
+ window.open("/api/v1/sso/redirect/google");
+ window.close();
}}
- isFullWidth
+ leftIcon={<FontAwesomeIcon icon={faGoogle} className="mr-1" />}
className="h-14 w-full mx-0"
>
- Sign Up with email
+ {t("signup.continue-with-google")}
</Button>
</div>
- <div className='lg:w-1/6 w-1/4 min-w-[20rem] flex flex-row items-center my-4 py-2'>
- <div className='w-1/2 border-t border-mineshaft-500' />
- <span className='px-4 text-sm text-bunker-400'>or</span>
- <div className='w-1/2 border-t border-mineshaft-500' />
- </div>
- <div className='lg:w-1/6 w-1/4 min-w-[20rem] rounded-md'>
+ <div className='lg:w-1/6 w-1/4 min-w-[20rem] text-center rounded-md mt-4'>
<Button
colorSchema="primary"
- variant="solid"
+ variant="outline_bg"
onClick={() => {
- window.open("/api/v1/sso/redirect/google");
- window.close();
+ setIsSignupWithEmail(true);
}}
- leftIcon={<FontAwesomeIcon icon={faGoogle} className="mr-1" />}
+ isFullWidth
className="h-14 w-full mx-0"
>
- {t("signup.continue-with-google")}
+ Sign Up with email
</Button>
</div>
<div className='lg:w-1/6 w-1/4 min-w-[20rem] text-center rounded-md mt-4'>
diff --git a/frontend/src/views/Login/components/InitialStep/InitialStep.tsx b/frontend/src/views/Login/components/InitialStep/InitialStep.tsx
index 7fb77de48e..3f436e88eb 100644
--- a/frontend/src/views/Login/components/InitialStep/InitialStep.tsx
+++ b/frontend/src/views/Login/components/InitialStep/InitialStep.tsx
@@ -33,6 +33,7 @@ export const InitialStep = ({
const { t } = useTranslation();
const [isLoading, setIsLoading] = useState(false);
const [loginError, setLoginError] = useState(false);
+ const [loginEmailChosen, setLoginEmailChosen] = useState(false);
const queryParams = new URLSearchParams(window.location.search);
@@ -116,54 +117,10 @@ export const InitialStep = ({
return (
<form onSubmit={handleLogin} className='flex flex-col mx-auto w-full justify-center items-center'>
<h1 className='text-xl font-medium text-transparent bg-clip-text bg-gradient-to-b from-white to-bunker-200 text-center mb-8' >Login to Infisical</h1>
- <div className="relative md:px-1.5 flex items-center justify-center lg:w-1/6 w-1/4 min-w-[21.3rem] md:min-w-[22rem] mx-auto rounded-lg max-h-24 md:max-h-28">
- <div className="flex items-center justify-center w-full md:px-2 md:py-1 rounded-lg max-h-24 md:max-h-28">
- <Input
- value={email}
- onChange={(e) => setEmail(e.target.value)}
- type="email"
- placeholder="Enter your email..."
- isRequired
- autoComplete="username"
- className="h-12"
- />
- </div>
- </div>
- <div className="relative pt-2 md:pt-0 md:px-1.5 flex items-center justify-center w-1/4 lg:w-1/6 min-w-[21.3rem] md:min-w-[22rem] mx-auto rounded-lg max-h-24 md:max-h-28">
- <div className="flex items-center justify-center w-full md:p-2 rounded-lg max-h-24 md:max-h-28">
- <Input
- value={password}
- onChange={(e) => setPassword(e.target.value)}
- type="password"
- placeholder="Enter your password..."
- isRequired
- autoComplete="current-password"
- id="current-password"
- className="h-12 select:-webkit-autofill:focus"
- />
- </div>
- </div>
- {!isLoading && loginError && <Error text={t("login.error-login") ?? ""} />}
<div className='lg:w-1/6 w-1/4 min-w-[21.2rem] md:min-w-[20.1rem] text-center rounded-md mt-4'>
- <Button
- type="submit"
- size="sm"
- isFullWidth
- className='h-12'
- colorSchema="primary"
- variant="solid"
- isLoading={isLoading}
- > Login </Button>
- </div>
- <div className='lg:w-1/6 w-1/4 min-w-[20rem] flex flex-row items-center my-4 py-2'>
- <div className='w-1/2 border-t border-mineshaft-500' />
- <span className='px-4 text-sm text-bunker-400'>or</span>
- <div className='w-1/2 border-t border-mineshaft-500' />
- </div>
- <div className='lg:w-1/6 w-1/4 min-w-[20rem] rounded-md'>
<Button
colorSchema="primary"
- variant="solid"
+ variant={loginEmailChosen ? "outline_bg" : "solid"}
onClick={() => {
const callbackPort = queryParams.get("callback_port");
@@ -171,12 +128,66 @@ export const InitialStep = ({
window.close();
}}
leftIcon={<FontAwesomeIcon icon={faGoogle} className="mr-1" />}
- className="h-14 w-full mx-0"
+ className="h-12 w-full mx-0"
>
{t("login.continue-with-google")}
</Button>
</div>
- <div className='lg:w-1/6 w-1/4 min-w-[20rem] text-center rounded-md mt-4'>
+ {loginEmailChosen && <>
+ <div className='lg:w-1/6 w-1/4 min-w-[20rem] flex flex-row items-center my-4 py-2'>
+ <div className='w-full border-t border-mineshaft-500' />
+ </div>
+ <div className='lg:w-1/6 w-1/4 min-w-[21.2rem] md:min-w-[20.1rem] text-center rounded-md'>
+ <Input
+ value={email}
+ onChange={(e) => setEmail(e.target.value)}
+ type="email"
+ placeholder="Enter your email..."
+ isRequired
+ autoComplete="username"
+ className="h-12"
+ />
+ </div>
+ <div className='lg:w-1/6 w-1/4 min-w-[21.2rem] md:min-w-[20.1rem] text-center rounded-md mt-4'>
+ <Input
+ value={password}
+ onChange={(e) => setPassword(e.target.value)}
+ type="password"
+ placeholder="Enter your password..."
+ isRequired
+ autoComplete="current-password"
+ id="current-password"
+ className="h-12 select:-webkit-autofill:focus"
+ />
+ </div>
+ <div className='lg:w-1/6 w-1/4 min-w-[21.2rem] md:min-w-[20.1rem] text-center rounded-md mt-4'>
+ <Button
+ type="submit"
+ size="sm"
+ isFullWidth
+ className='h-12'
+ colorSchema="primary"
+ variant="solid"
+ isLoading={isLoading}
+ > Continue with Email </Button>
+ </div>
+ {!isLoading && loginError && <Error text={t("login.error-login") ?? ""} />}
+ <div className='lg:w-1/6 w-1/4 min-w-[20rem] flex flex-row items-center mt-4 py-2'>
+ <div className='w-full border-t border-mineshaft-500' />
+ </div></>}
+ {!loginEmailChosen && <div className='lg:w-1/6 w-1/4 min-w-[21.2rem] md:min-w-[20.1rem] text-center rounded-md mt-4'>
+ <Button
+ onClick={() => {
+ setLoginEmailChosen(true);
+ }}
+ size="sm"
+ isFullWidth
+ className='h-12'
+ colorSchema="primary"
+ variant="outline_bg"
+ > Continue with Email </Button>
+ </div>}
+ <div className='lg:w-1/6 w-1/4 min-w-[21.2rem] md:min-w-[20.1rem] text-center rounded-md mt-4'>
<Button
colorSchema="primary"
variant="outline_bg"
@@ -184,7 +195,7 @@ export const InitialStep = ({
setStep(2);
}}
isFullWidth
- className="h-14 w-full mx-0"
+ className="h-12 w-full mx-0"
>
Continue with SAML SSO
</Button>
diff --git a/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx b/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx
index 7ca84318d5..a3eec451d1 100644
--- a/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx
+++ b/frontend/src/views/Settings/PersonalSettingsPage/AuthMethodSection/AuthMethodSection.tsx
@@ -102,7 +102,7 @@ export const AuthMethodSection = () => {
defaultValue={field.value}
{...field}
onValueChange={(e) => onChange(e)}
- className="w-full"
+ className="w-full bg-mineshaft-800 border border-mineshaft-600"
>
{authMethods.map((authMethod) => {
return (