diff --git a/src/lib/components/user-area/AuthArea.module.scss b/src/lib/components/user-area/AuthArea.module.scss
deleted file mode 100644
index 0e702715..00000000
--- a/src/lib/components/user-area/AuthArea.module.scss
+++ /dev/null
@@ -1,15 +0,0 @@
-@import 'lib/styles/mixins.scss';
-
-.btnsWrap {
- display: flex;
- align-items: center;
- gap: 28px;
-
- > * {
- position: relative;
- }
-
- @include smallMobile {
- gap: 16px;
- }
-}
diff --git a/src/lib/components/user-area/AuthArea.svelte b/src/lib/components/user-area/AuthArea.svelte
deleted file mode 100644
index ffbefb58..00000000
--- a/src/lib/components/user-area/AuthArea.svelte
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
diff --git a/src/lib/components/user-area/SigninPopup.module.scss b/src/lib/components/user-area/SigninPopup.module.scss
deleted file mode 100644
index 16977629..00000000
--- a/src/lib/components/user-area/SigninPopup.module.scss
+++ /dev/null
@@ -1,118 +0,0 @@
-@import 'lib/styles/mixins.scss';
-@import 'lib/styles/fonts.scss';
-@import 'lib/styles/colors.scss';
-
-.modal {
- background: rgba(0, 0, 0, 0.5);
- height: 100%;
- left: 0;
- position: fixed;
- top: 0;
- width: 100%;
- z-index: 9999;
-}
-
-.overlay {
- position: absolute;
- z-index: -1;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
-}
-
-.modalBox {
- background: #f9f9f9;
- border-radius: 4px;
- left: 50%;
- max-width: 714px;
- padding: 36px 38px 52px;
- position: absolute;
- top: 50%;
- transform: translate(-50%, -50%);
- width: 90%;
-
- h5 {
- color: #2A2A2A;
- font-family: 'Roboto';
- font-size: 36px;
- font-weight: 500;
- line-height: 44px;
- position: relative;
- text-transform: none;
- margin: 0;
- }
-
- @include mobile {
- padding: 22px;
- }
-}
-
-.closeIcon {
- background-size: contain;
- cursor: pointer;
- height: 24px;
- position: absolute;
- right: 0;
- top: 2px;
- width: 24px;
- display: flex;
- align-items: center;
- justify-content: center;
-
- img {
- display: block;
- width: 67%;
- height: 67%;
- }
-}
-
-.options {
- display: flex;
- flex-wrap: wrap;
- gap: 32px;
- margin-top: 32px;
-
- a, .link {
- background: #0D61BF;
- border-radius: 4px;
- color: #fff;
- flex: 0 0 calc(50% - 17px);
- font-family: 'Roboto';
- padding: 20px;
- transition: 0.3s;
- cursor: pointer;
- display: flex;
- gap: 18px;
- align-items: center;
- img {
- display: block;
- flex: 0 0;
- }
- &:hover {
- box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
- text-decoration: none;
- transform: scale(1.015);
- }
-
- strong {
- font-size: 24px;
- line-height: 32px;
- font-weight: 700;
- }
-
- small {
- font-size: 16px;
- line-height: 24px;
- }
- }
-
- @media (max-width: 790px) {
- flex-direction: column;
- gap: 26px;
-
- a, .link {
- padding: 30px 20px;
- }
- }
-}
diff --git a/src/lib/components/user-area/SigninPopup.svelte b/src/lib/components/user-area/SigninPopup.svelte
deleted file mode 100644
index cbc4fd55..00000000
--- a/src/lib/components/user-area/SigninPopup.svelte
+++ /dev/null
@@ -1,61 +0,0 @@
-
-
-
-
-
-
- Which are you?
-
-
-
-
-
-
-
diff --git a/src/lib/components/user-area/UserArea.svelte b/src/lib/components/user-area/UserArea.svelte
index 23bcfc7d..f46410ea 100644
--- a/src/lib/components/user-area/UserArea.svelte
+++ b/src/lib/components/user-area/UserArea.svelte
@@ -3,6 +3,7 @@
import { getAppContext } from 'lib/app-context';
import { checkUserAppRole, fetchUserProfile } from 'lib/functions/user-profile.provider';
import { fetchUserProfileCompletedness } from 'lib/functions/profile-nudges';
+ import { AUTH0_AUTHENTICATOR_URL } from 'lib/config';
import { AUTH_USER_ROLE } from 'lib/config/auth';
import { DISABLE_NUDGES } from "lib/config/profile-toasts.config";
@@ -12,7 +13,7 @@
import UserAvatar from './UserAvatar.svelte';
import styles from './UserArea.module.scss'
import Completedness from './Completedness.svelte';
- import AuthArea from './AuthArea.svelte';
+ import Button from '../Button.svelte';
const ctx = getAppContext();
@@ -74,13 +75,25 @@
const authUser = await fetchUserProfile();
$ctx.auth = {...$ctx.auth, ready: true, user: authUser};
});
+
+ function onSignIn(signup?: any) {
+ const locationHref = `${window.location.origin}${window.location.pathname}`
+ window.location.href = `${AUTH0_AUTHENTICATOR_URL}?retUrl=${encodeURIComponent(locationHref)}${signup === true ? '&mode=signUp' : ''}`;
+ }
+
+ function onSignUp() {
+ onSignIn(true);
+ }
{#if isReady}