diff --git a/signup-ui/public/images/bottom.svg b/signup-ui/public/images/bottom.svg new file mode 100644 index 00000000..caebb195 --- /dev/null +++ b/signup-ui/public/images/bottom.svg @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/signup-ui/public/images/top.svg b/signup-ui/public/images/top.svg new file mode 100644 index 00000000..35a2cb2d --- /dev/null +++ b/signup-ui/public/images/top.svg @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/signup-ui/public/theme/variables.css b/signup-ui/public/theme/variables.css index ce09d36c..4b7fdbee 100644 --- a/signup-ui/public/theme/variables.css +++ b/signup-ui/public/theme/variables.css @@ -13,14 +13,30 @@ --signup-background: #f7f9fd; --side-section-bg-with: 225px; - --top-left-bg-logo-url: url("/images/top.png"); + --top-left-bg-logo-url: url("/images/top.svg"); --top-left-bg-logo-display: block; - --bottom-left-bg-logo-url: url("/images/bg_bottom_left.png"); + --bottom-left-bg-logo-url: url("/images/top.svg"); --bottom-left-bg-logo-display: none; - --top-right-bg-logo-url: url("/images/bg_bottom_left.png"); + --top-right-bg-logo-url: url("/images/bottom.svg"); --top-right-bg-logo-display: none; - --bottom-right-bg-logo-url: url("/images/bottom.png"); + --bottom-right-bg-logo-url: url("/images/bottom.svg"); --bottom-right-bg-logo-display: block; + --top-left-bg-width: 14rem; + --top-left-bg-height: 14rem; + --top-left-bg-position-top: 10px; + --top-left-bg-position-left: 10px; + --bottom-left-bg-width: 14rem; + --bottom-left-bg-height: 14rem; + --bottom-left-bg-position-bottom: 10px; + --bottom-left-bg-position-left: 10px; + --top-right-bg-width: 14rem; + --top-right-bg-height: 14rem; + --top-right-bg-position-top: 10px; + --top-right-bg-position-right: 10px; + --bottom-right-bg-width: 17rem; + --bottom-right-bg-height: 17rem; + --bottom-right-bg-position-bottom: 10px; + --bottom-right-bg-position-right: 10px; --footer-brand-logo-url: url("/images/footer_logo.png"); --footer-text-color: #898989; @@ -176,14 +192,30 @@ --signup-background: #f7f9fd; --side-section-bg-with: 320px; - --top-left-bg-logo-url: url("/images/top.png"); - --top-left-bg-logo-display: none; - --bottom-left-bg-logo-url: url("/images/bg_bottom_left.png"); + --top-left-bg-logo-url: url("/images/top.svg"); + --top-left-bg-logo-display: block; + --bottom-left-bg-logo-url: url("/images/top.svg"); --bottom-left-bg-logo-display: none; - --top-right-bg-logo-url: url("/images/bg_bottom_left.png"); + --top-right-bg-logo-url: url("/images/bottom.svg"); --top-right-bg-logo-display: none; - --bottom-right-bg-logo-url: url("/images/bottom.png"); - --bottom-right-bg-logo-display: none; + --bottom-right-bg-logo-url: url("/images/bottom.svg"); + --bottom-right-bg-logo-display: block; + --top-left-bg-width: 14rem; + --top-left-bg-height: 14rem; + --top-left-bg-position-top: 10px; + --top-left-bg-position-left: 10px; + --bottom-left-bg-width: 14rem; + --bottom-left-bg-height: 14rem; + --bottom-left-bg-position-bottom: 10px; + --bottom-left-bg-position-left: 10px; + --top-right-bg-width: 14rem; + --top-right-bg-height: 14rem; + --top-right-bg-position-top: 10px; + --top-right-bg-position-right: 10px; + --bottom-right-bg-width: 17rem; + --bottom-right-bg-height: 17rem; + --bottom-right-bg-position-bottom: 10px; + --bottom-right-bg-position-right: 10px; --footer-brand-logo-url: url("/images/footer_logo.png"); --footer-text-color: #898989; @@ -305,14 +337,30 @@ --signup-background: #f7f9fd; --side-section-bg-with: 225px; - --top-left-bg-logo-url: url("/images/top.png"); + --top-left-bg-logo-url: url("/images/top.svg"); --top-left-bg-logo-display: block; - --bottom-left-bg-logo-url: url("/images/bg_bottom_left.png"); + --bottom-left-bg-logo-url: url("/images/top.svg"); --bottom-left-bg-logo-display: none; - --top-right-bg-logo-url: url("/images/bg_bottom_left.png"); + --top-right-bg-logo-url: url("/images/bottom.svg"); --top-right-bg-logo-display: none; - --bottom-right-bg-logo-url: url("/images/bottom.png"); + --bottom-right-bg-logo-url: url("/images/bottom.svg"); --bottom-right-bg-logo-display: block; + --top-left-bg-width: 14rem; + --top-left-bg-height: 14rem; + --top-left-bg-position-top: 10px; + --top-left-bg-position-left: 10px; + --bottom-left-bg-width: 14rem; + --bottom-left-bg-height: 14rem; + --bottom-left-bg-position-bottom: 10px; + --bottom-left-bg-position-left: 10px; + --top-right-bg-width: 14rem; + --top-right-bg-height: 14rem; + --top-right-bg-position-top: 10px; + --top-right-bg-position-right: 10px; + --bottom-right-bg-width: 17rem; + --bottom-right-bg-height: 17rem; + --bottom-right-bg-position-bottom: 10px; + --bottom-right-bg-position-right: 10px; --footer-brand-logo-url: url("/images/footer_logo.png"); --footer-text-color: #898989; diff --git a/signup-ui/src/App.css b/signup-ui/src/App.css index 7a50a95b..2aff5ea2 100644 --- a/signup-ui/src/App.css +++ b/signup-ui/src/App.css @@ -44,22 +44,38 @@ body { .section-background .top_left_bg_logo { display: var(--top-left-bg-logo-display); - content: var(--top-left-bg-logo-url); + -webkit-mask-image: var(--top-left-bg-logo-url); + mask-image: var(--top-left-bg-logo-url); + background-color: var(--default); + width: var(--top-left-bg-width); + height: var(--top-left-bg-height); } .section-background .top_right_bg_logo { display: var(--top-right-bg-logo-display); - content: var(--top-right-bg-logo-url); + -webkit-mask-image: var(--top-right-bg-logo-url); + mask-image: var(--top-right-bg-logo-url); + background-color: var(--default); + width: var(--top-right-bg-width); + height: var(--top-right-bg-height); } .section-background .bottom_right_bg_logo { display: var(--bottom-right-bg-logo-display); - content: var(--bottom-right-bg-logo-url); + -webkit-mask-image: var(--bottom-right-bg-logo-url); + mask-image: var(--bottom-right-bg-logo-url); + background-color: var(--default); + width: var(--bottom-right-bg-width); + height: var(--bottom-right-bg-height); } .section-background .bottom_left_bg_logo { display: var(--bottom-left-bg-logo-display); - content: var(--bottom-left-bg-logo-url); + -webkit-mask-image: var(--bottom-left-bg-logo-url); + mask-image: var(--bottom-left-bg-logo-url); + background-color: var(--default); + width: var(--bottom-left-bg-width); + height: var(--bottom-left-bg-height); } .verticalStepper { @@ -408,8 +424,8 @@ body { @apply text-center text-2xl font-semibold; } -input[type='password']::-ms-reveal, -input[type='password']::-ms-clear { +input[type="password"]::-ms-reveal, +input[type="password"]::-ms-clear { display: none; } diff --git a/signup-ui/src/components/language.tsx b/signup-ui/src/components/language.tsx index c091cefe..7bf9ff40 100644 --- a/signup-ui/src/components/language.tsx +++ b/signup-ui/src/components/language.tsx @@ -72,7 +72,7 @@ export const Language = () => { {pathname === EKYC_VERIFICATION && ( {languages_2Letters[i18n.language as keyof typeof languages_2Letters]} diff --git a/signup-ui/src/components/ui/nav-bar.tsx b/signup-ui/src/components/ui/nav-bar.tsx index 9a779d82..64a9dc3f 100644 --- a/signup-ui/src/components/ui/nav-bar.tsx +++ b/signup-ui/src/components/ui/nav-bar.tsx @@ -22,17 +22,17 @@ const NavBar = () => { ); const [navbarStyle, setNavbarStyle] = useState( - "sticky top-0 z-40 h-[70px] w-full border-gray-500 bg-white px-2 py-2 sm:px-0 shadow-md" + "sticky top-0 z-40 h-auto w-full border-gray-500 bg-white py-0 sm:px-0 shadow-md" ); useEffect(() => { if (errorBannerMessage !== null && errorBannerMessage !== "") { setNavbarStyle( - "sticky top-0 z-40 h-[70px] w-full border-gray-500 bg-white px-2 py-2 sm:px-0" + "sticky top-0 z-40 h-auto w-full border-gray-500 bg-white py-0 px-0 sm:px-0" ); } else { setNavbarStyle( - "sticky top-0 z-40 h-[70px] w-full border-gray-500 bg-white px-2 py-2 sm:px-0 shadow-md" + "sticky top-0 z-40 h-auto w-full border-gray-500 bg-white py-0 sm:px-0 shadow-md" ); } }, [errorBannerMessage]); @@ -80,14 +80,14 @@ const NavBar = () => { - + {t("offline_polling_prompt")} {showBackOnline && - + {t("online_polling_prompt")}
{t("offline_polling_prompt")}
{t("online_polling_prompt")}