+
- {whiteLabelLogo != '' &&
- window.location.pathname != '/setup' &&
- whiteLabelLogo != defaultWhiteLabellingSettings.WHITE_LABEL_LOGO &&
- imageWidth != null ? (
-

- ) : (
-
- )}
+
{components}
diff --git a/frontend/src/modules/onboarding/components/OnboardingFormWrapper/resources/styles/onboarding-form-wrapper.styles.scss b/frontend/src/modules/onboarding/components/OnboardingFormWrapper/resources/styles/onboarding-form-wrapper.styles.scss
index 76c5c0ef04..14addf9412 100644
--- a/frontend/src/modules/onboarding/components/OnboardingFormWrapper/resources/styles/onboarding-form-wrapper.styles.scss
+++ b/frontend/src/modules/onboarding/components/OnboardingFormWrapper/resources/styles/onboarding-form-wrapper.styles.scss
@@ -23,4 +23,4 @@
.onboarding-form-wrapper {
margin-top: 240px;
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/modules/onboarding/components/OnboardingUIWrapper/OnboardingUIWrapper.jsx b/frontend/src/modules/onboarding/components/OnboardingUIWrapper/OnboardingUIWrapper.jsx
new file mode 100644
index 0000000000..15a783c6df
--- /dev/null
+++ b/frontend/src/modules/onboarding/components/OnboardingUIWrapper/OnboardingUIWrapper.jsx
@@ -0,0 +1,21 @@
+import React from 'react';
+import OnboardingFormWrapper from '../OnboardingFormWrapper/OnboardingFormWrapper';
+import './resources/styles/onboarding-ui-wrapper.styles.scss';
+
+const OnboardingUIWrapper = ({ children: components }) => {
+ const pageLocation = window.location.pathname;
+ if (pageLocation == '/setup') {
+ return (
+
+ {components}
+
+ );
+ }
+ return (
+
+ {components}
+
+ );
+};
+
+export default OnboardingUIWrapper;
diff --git a/frontend/src/modules/onboarding/components/OnboardingUIWrapper/index.js b/frontend/src/modules/onboarding/components/OnboardingUIWrapper/index.js
new file mode 100644
index 0000000000..abb0e4eb4c
--- /dev/null
+++ b/frontend/src/modules/onboarding/components/OnboardingUIWrapper/index.js
@@ -0,0 +1 @@
+export { default } from './OnboardingUIWrapper';
diff --git a/frontend/src/modules/onboarding/components/OnboardingUIWrapper/resources/styles/onboarding-ui-wrapper.styles.scss b/frontend/src/modules/onboarding/components/OnboardingUIWrapper/resources/styles/onboarding-ui-wrapper.styles.scss
new file mode 100644
index 0000000000..34d0b0f9bc
--- /dev/null
+++ b/frontend/src/modules/onboarding/components/OnboardingUIWrapper/resources/styles/onboarding-ui-wrapper.styles.scss
@@ -0,0 +1,33 @@
+/* Default styles */
+.onboarding-setup-wrapper {
+ margin-top: 95px !important;
+ /* Default margin-top */
+}
+
+.auth-pages-wrapper {
+ display: flex !important;
+ justify-content: center !important;
+ min-height: 100vh !important;
+ flex-direction: column !important;
+}
+
+/* Media query for 1366x768 resolution */
+@media screen and (min-width: 1366px) and (min-height: 768px) {
+ .onboarding-setup-wrapper {
+ margin-top: 95px !important;
+ }
+}
+
+/* Media query for 1440x900 resolution */
+@media screen and (min-width: 1440px) and (min-height: 900px) {
+ .onboarding-setup-wrapper {
+ margin-top: 180px !important;
+ }
+}
+
+/* Media query for 1920x1080 resolution and above */
+@media screen and (min-width: 1920px) and (min-height: 1080px) {
+ .onboarding-setup-wrapper {
+ margin-top: 240px !important;
+ }
+}
\ No newline at end of file
diff --git a/frontend/src/modules/onboarding/components/WhiteLabellingBackgroundWrapper/WhiteLabellingBackgroundWrapper.jsx b/frontend/src/modules/onboarding/components/WhiteLabellingBackgroundWrapper/WhiteLabellingBackgroundWrapper.jsx
new file mode 100644
index 0000000000..c8b85fc5e4
--- /dev/null
+++ b/frontend/src/modules/onboarding/components/WhiteLabellingBackgroundWrapper/WhiteLabellingBackgroundWrapper.jsx
@@ -0,0 +1,19 @@
+import React from 'react';
+import './resources/styles/background.styles.scss';
+const WhiteLabellingBackgroundWrapper = ({ MiddleComponent }) => {
+ return (
+
+
+ {MiddleComponent && (
+
+ )}
+
+
+ );
+};
+
+export default WhiteLabellingBackgroundWrapper;
diff --git a/frontend/src/modules/onboarding/components/WhiteLabellingBackgroundWrapper/index.js b/frontend/src/modules/onboarding/components/WhiteLabellingBackgroundWrapper/index.js
new file mode 100644
index 0000000000..38a960ac7b
--- /dev/null
+++ b/frontend/src/modules/onboarding/components/WhiteLabellingBackgroundWrapper/index.js
@@ -0,0 +1 @@
+export { default } from './WhiteLabellingBackgroundWrapper';
diff --git a/frontend/src/modules/onboarding/components/WhiteLabellingBackgroundWrapper/resources/styles/background.styles.scss b/frontend/src/modules/onboarding/components/WhiteLabellingBackgroundWrapper/resources/styles/background.styles.scss
new file mode 100644
index 0000000000..ef4dbbd9fe
--- /dev/null
+++ b/frontend/src/modules/onboarding/components/WhiteLabellingBackgroundWrapper/resources/styles/background.styles.scss
@@ -0,0 +1,20 @@
+.white-labelling-background-wrapper {
+ margin-top: 0px !important;
+ height: 100vh;
+ overflow: hidden;
+ background-size: cover;
+ background-size: cover;
+ background-position: center;
+ background-repeat: no-repeat;
+
+ .container-fluid {
+ height: 100%;
+ padding: 0;
+ overflow-y: auto;
+ overflow-x: hidden;
+ }
+
+ .row {
+ height: 100%;
+ }
+}
\ No newline at end of file
diff --git a/frontend/src/modules/onboarding/components/WhiteLabellingFormWrapper/WhiteLabellingFormWrapper.jsx b/frontend/src/modules/onboarding/components/WhiteLabellingFormWrapper/WhiteLabellingFormWrapper.jsx
new file mode 100644
index 0000000000..f24388143c
--- /dev/null
+++ b/frontend/src/modules/onboarding/components/WhiteLabellingFormWrapper/WhiteLabellingFormWrapper.jsx
@@ -0,0 +1,37 @@
+import React, { useEffect, useState } from 'react';
+import Logo from '@/modules/common/resources/images/Logo';
+import './resources/styles/whitelabelling-form-wrapper.styles.scss';
+import { getSubpath } from '@/_helpers/routes';
+import { defaultWhiteLabellingSettings, retrieveWhiteLabelFavicon } from '@white-label/whiteLabelling';
+const WhiteLabellingFormWrapper = ({ children: components }) => {
+ const IMAGE_WIDTH = 36;
+ const IMAGE_HEIGHT = 36;
+ const [whiteLabelLogo, setWhiteLabelLogo] = useState(null);
+ useEffect(() => {
+ // Note : Currently, We are using favicon for white labelling in all the onboarding flow pages
+ const data = retrieveWhiteLabelFavicon();
+ setWhiteLabelLogo(data);
+ }, []);
+ const redirectToLoginPage = () => {
+ window.location.href = getSubpath() ? `${getSubpath()}` : '/';
+ };
+ if (whiteLabelLogo == null) {
+ return
;
+ }
+ return (
+
+
+ {whiteLabelLogo != '' &&
+ window.location.pathname != '/setup' &&
+ whiteLabelLogo != defaultWhiteLabellingSettings.WHITE_LABEL_LOGO ? (
+

+ ) : (
+
+ )}
+
+ {components}
+
+ );
+};
+
+export default WhiteLabellingFormWrapper;
diff --git a/frontend/src/modules/onboarding/components/WhiteLabellingFormWrapper/index.js b/frontend/src/modules/onboarding/components/WhiteLabellingFormWrapper/index.js
new file mode 100644
index 0000000000..f4b3d3815d
--- /dev/null
+++ b/frontend/src/modules/onboarding/components/WhiteLabellingFormWrapper/index.js
@@ -0,0 +1 @@
+export { default } from './WhiteLabellingFormWrapper';
diff --git a/frontend/src/modules/onboarding/components/WhiteLabellingFormWrapper/resources/styles/whitelabelling-form-wrapper.styles.scss b/frontend/src/modules/onboarding/components/WhiteLabellingFormWrapper/resources/styles/whitelabelling-form-wrapper.styles.scss
new file mode 100644
index 0000000000..57c8e393bf
--- /dev/null
+++ b/frontend/src/modules/onboarding/components/WhiteLabellingFormWrapper/resources/styles/whitelabelling-form-wrapper.styles.scss
@@ -0,0 +1,5 @@
+/* Default styles */
+.white-labelling-form-wrapper {
+ margin-top: 0px;
+ /* Default margin-top */
+}
\ No newline at end of file
diff --git a/frontend/src/modules/onboarding/components/index.js b/frontend/src/modules/onboarding/components/index.js
index 79e958cc3d..181b58b19c 100644
--- a/frontend/src/modules/onboarding/components/index.js
+++ b/frontend/src/modules/onboarding/components/index.js
@@ -3,6 +3,7 @@ import OnboardingFormWrapper from './OnboardingFormWrapper';
import OnboardingFormInsideWrapper from './OnboardingFormInsideWrapper';
import OnboardingQuestions from './OnboardingQuestions';
import OnboardingForm from './OnboardingForm';
+import OnboardingUIWrapper from './OnboardingUIWrapper';
export {
OnboardingBackgroundWrapper,
@@ -10,4 +11,5 @@ export {
OnboardingFormInsideWrapper,
OnboardingQuestions,
OnboardingForm,
+ OnboardingUIWrapper,
};
diff --git a/frontend/src/modules/onboarding/pages/SetupAdminPage/components/SetupAdminForm/SetupAdminForm.jsx b/frontend/src/modules/onboarding/pages/SetupAdminPage/components/SetupAdminForm/SetupAdminForm.jsx
index 540704aaad..e13bbd792d 100644
--- a/frontend/src/modules/onboarding/pages/SetupAdminPage/components/SetupAdminForm/SetupAdminForm.jsx
+++ b/frontend/src/modules/onboarding/pages/SetupAdminPage/components/SetupAdminForm/SetupAdminForm.jsx
@@ -1,5 +1,5 @@
import React, { useState, useEffect } from 'react';
-import { OnboardingFormWrapper } from '@/modules/onboarding/components';
+import { OnboardingUIWrapper } from '@/modules/onboarding/components';
import { FormTextInput, PasswordInput, SubmitButton, FormHeader } from '@/modules/common/components';
import useOnboardingStore from '@/modules/onboarding/stores/onboardingStore';
import { shallow } from 'zustand/shallow';
@@ -86,7 +86,7 @@ const SetupAdminForm = () => {
};
useEnterKeyPress(() => handleSubmit());
return (
-
+
Set up your admin account
-
+
);
};
diff --git a/frontend/src/modules/onboarding/pages/SetupToolJetPage/SetupToolJetPage.jsx b/frontend/src/modules/onboarding/pages/SetupToolJetPage/SetupToolJetPage.jsx
index fc09075d4c..2efe088013 100644
--- a/frontend/src/modules/onboarding/pages/SetupToolJetPage/SetupToolJetPage.jsx
+++ b/frontend/src/modules/onboarding/pages/SetupToolJetPage/SetupToolJetPage.jsx
@@ -2,7 +2,7 @@ import React from 'react';
import {
OnboardingBackgroundWrapper,
OnboardingFormInsideWrapper,
- OnboardingFormWrapper,
+ OnboardingUIWrapper,
} from '@/modules/onboarding/components';
import { SubmitButton, FormHeader, FormDescription, GeneralFeatureImage } from '@/modules/common/components';
import { useEnterKeyPress } from '@/modules/common/hooks';
@@ -32,13 +32,13 @@ const SetupToolJetPage = () => {
const LeftSideComponent = () => {
return (
-
+
{headerText}
{description}
-
+
);
};
diff --git a/frontend/src/modules/onboarding/pages/SignupPage/components/SignupForm/SignupForm.jsx b/frontend/src/modules/onboarding/pages/SignupPage/components/SignupForm/SignupForm.jsx
index 3bbe22886e..40eb34c61c 100644
--- a/frontend/src/modules/onboarding/pages/SignupPage/components/SignupForm/SignupForm.jsx
+++ b/frontend/src/modules/onboarding/pages/SignupPage/components/SignupForm/SignupForm.jsx
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import { useTranslation } from 'react-i18next';
import { Link } from 'react-router-dom';
-import { OnboardingFormWrapper, OnboardingFormInsideWrapper } from '@/modules/onboarding/components';
+import { OnboardingUIWrapper, OnboardingFormInsideWrapper } from '@/modules/onboarding/components';
import { FormTextInput, PasswordInput, SubmitButton, FormHeader, SSOAuthModule } from '@/modules/common/components';
import SignupStatusCard from './components/SignupStatusCard';
import './resources/styles/sign-up-form.styles.scss';
@@ -149,7 +149,7 @@ const SignupForm = ({
return (
-
+
{t('loginSignupPage.signUp', 'Sign up')}
{(organizationId || shouldShowSignInCTA) && (
@@ -241,7 +241,7 @@ const SignupForm = ({
>
)}
-
+
);
};
diff --git a/frontend/src/modules/onboarding/pages/SignupPage/components/SignupSuccessInfo/SignupSuccessInfo.jsx b/frontend/src/modules/onboarding/pages/SignupPage/components/SignupSuccessInfo/SignupSuccessInfo.jsx
index 543e513f65..475ff9f93e 100644
--- a/frontend/src/modules/onboarding/pages/SignupPage/components/SignupSuccessInfo/SignupSuccessInfo.jsx
+++ b/frontend/src/modules/onboarding/pages/SignupPage/components/SignupSuccessInfo/SignupSuccessInfo.jsx
@@ -1,6 +1,6 @@
import React, { useEffect } from 'react';
import OnboardingBackgroundWrapper from '@/modules/onboarding/components/OnboardingBackgroundWrapper';
-import { OnboardingFormWrapper } from '@/modules/onboarding/components';
+import { OnboardingUIWrapper } from '@/modules/onboarding/components';
import { FormHeader } from '@/modules/common/components';
import './resources/styles/email-verification.styles.scss';
import ResendVerificationEmail from './components/ResendVerificationEmail/ResendVerificationEmail';
@@ -12,7 +12,7 @@ const SignupSuccessInfo = ({ email, name, backToSignup, organizationId, redirect
const info = `Did not receive an email? Check your spam folder!`;
return (
-
+
Check your mail
{message}
{info}
@@ -23,7 +23,7 @@ const SignupSuccessInfo = ({ email, name, backToSignup, organizationId, redirect
Back to sign up
-
+
);
};
diff --git a/frontend/src/modules/onboarding/pages/WorkspaceInvitationPage/WorkspaceInvitationPage.jsx b/frontend/src/modules/onboarding/pages/WorkspaceInvitationPage/WorkspaceInvitationPage.jsx
index 7dc9736f9a..f570300f47 100644
--- a/frontend/src/modules/onboarding/pages/WorkspaceInvitationPage/WorkspaceInvitationPage.jsx
+++ b/frontend/src/modules/onboarding/pages/WorkspaceInvitationPage/WorkspaceInvitationPage.jsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react';
-import { OnboardingFormWrapper } from '@/modules/onboarding/components';
+import { OnboardingUIWrapper } from '@/modules/onboarding/components';
import {
FormTextInput,
SubmitButton,
@@ -73,7 +73,7 @@ const WorkspaceInvitationPage = (props) => {
const LeftSideComponent = () => {
return (
-