diff --git a/src/components/AuthenticationFlow/LoginPopup.astro b/src/components/AuthenticationFlow/LoginPopup.astro new file mode 100644 index 000000000..b3021e258 --- /dev/null +++ b/src/components/AuthenticationFlow/LoginPopup.astro @@ -0,0 +1,32 @@ +--- +import Popup from '../Popup/Popup.astro'; +import EmailLoginForm from './EmailLoginForm'; +import Divider from './Divider.astro'; +import { GitHubButton } from './GitHubButton'; +import { GoogleButton } from './GoogleButton'; +--- + + +
+

+ Login to your account +

+

+ You must be logged in to perform this action. +

+
+ +
+ + +
+ + + + + +
+ Don't have an account?{' '} + Sign up +
+
diff --git a/src/components/BestPracticeHeader.astro b/src/components/BestPracticeHeader.astro index e496b4012..56b619108 100644 --- a/src/components/BestPracticeHeader.astro +++ b/src/components/BestPracticeHeader.astro @@ -2,7 +2,7 @@ import BestPracticeHint from './BestPracticeHint.astro'; import DownloadPopup from './DownloadPopup.astro'; import Icon from './AstroIcon.astro'; -import LoginPopup from './Login/LoginPopup.astro'; +import LoginPopup from './AuthenticationFlow/LoginPopup.astro'; import SubscribePopup from './SubscribePopup.astro'; export interface Props { diff --git a/src/components/Login/GithubLogin.astro b/src/components/Login/GithubLogin.astro deleted file mode 100644 index dd3646f2f..000000000 --- a/src/components/Login/GithubLogin.astro +++ /dev/null @@ -1,123 +0,0 @@ ---- -import Icon from '../AstroIcon.astro'; -import Spinner from '../Spinner.astro'; ---- - - - - - - diff --git a/src/components/Login/GoogleLogin.astro b/src/components/Login/GoogleLogin.astro deleted file mode 100644 index 06a251ca1..000000000 --- a/src/components/Login/GoogleLogin.astro +++ /dev/null @@ -1,127 +0,0 @@ ---- -import Icon from '../AstroIcon.astro'; -import Spinner from '../Spinner.astro'; ---- - - - - - - diff --git a/src/components/Login/LoginCopmponent.astro b/src/components/Login/LoginCopmponent.astro deleted file mode 100644 index 1c1dc4b8c..000000000 --- a/src/components/Login/LoginCopmponent.astro +++ /dev/null @@ -1,31 +0,0 @@ ---- -import Divider from '../AuthenticationFlow/Divider.astro'; -import EmailLoginForm from '../AuthenticationFlow/EmailLoginForm'; -import GithubLogin from './GithubLogin.astro'; -import GoogleLogin from './GoogleLogin.astro'; ---- - -
-
-

- Welcome back -

-

- Please enter your details. -

-
- -
- - -
- - - - - -
- Don't have an account?{' '} - Sign up -
-
diff --git a/src/components/Login/LoginPopup.astro b/src/components/Login/LoginPopup.astro deleted file mode 100644 index be8cc5bd0..000000000 --- a/src/components/Login/LoginPopup.astro +++ /dev/null @@ -1,8 +0,0 @@ ---- -import Popup from '../Popup/Popup.astro'; -import LoginComponent from './LoginCopmponent.astro'; ---- - - - - diff --git a/src/components/RoadmapHeader.astro b/src/components/RoadmapHeader.astro index 9a067491d..efad9598e 100644 --- a/src/components/RoadmapHeader.astro +++ b/src/components/RoadmapHeader.astro @@ -1,7 +1,7 @@ --- import DownloadPopup from './DownloadPopup.astro'; import Icon from './AstroIcon.astro'; -import LoginPopup from './Login/LoginPopup.astro'; +import LoginPopup from './AuthenticationFlow/LoginPopup.astro'; import RoadmapHint from './RoadmapHint.astro'; import RoadmapNote from './RoadmapNote.astro'; import SubscribePopup from './SubscribePopup.astro'; @@ -62,34 +62,28 @@ const isRoadmapReady = !isUpcoming; {isRoadmapReady && ( - - )} + <> + - {isRoadmapReady && ( - + + )}