diff --git a/site/src/AppRouter.tsx b/site/src/AppRouter.tsx index 3c7ce3c828d00..abae757e26ef9 100644 --- a/site/src/AppRouter.tsx +++ b/site/src/AppRouter.tsx @@ -142,7 +142,6 @@ export const AppRouter: FC = () => { }> } /> - } /> } /> } /> @@ -241,11 +240,12 @@ export const AppRouter: FC = () => { - {/* Terminal page don't have the dashboard layout */} + {/* Terminal and CLI auth pages don't have the dashboard layout */} } /> + } /> {/* Using path="*"" means "match anything", so this route diff --git a/site/src/components/SignInLayout/SignInLayout.tsx b/site/src/components/SignInLayout/SignInLayout.tsx index 2c484a657a18c..3639f4e692215 100644 --- a/site/src/components/SignInLayout/SignInLayout.tsx +++ b/site/src/components/SignInLayout/SignInLayout.tsx @@ -15,11 +15,12 @@ export const useStyles = makeStyles((theme) => ({ }, container: { marginTop: theme.spacing(-8), - minWidth: "320px", - maxWidth: "320px", + maxWidth: 385, }, - copyright: { - marginTop: theme.spacing(2), + footer: { + fontSize: 12, + color: theme.palette.text.secondary, + marginTop: theme.spacing(3), }, })) @@ -30,7 +31,7 @@ export const SignInLayout: FC<{ children: ReactNode }> = ({ children }) => {
{children}
-
+
{`\u00a9 ${new Date().getFullYear()} Coder Technologies, Inc.`}
diff --git a/site/src/components/Welcome/Welcome.tsx b/site/src/components/Welcome/Welcome.tsx index ce86fac871388..7ba94b81e76d5 100644 --- a/site/src/components/Welcome/Welcome.tsx +++ b/site/src/components/Welcome/Welcome.tsx @@ -34,15 +34,20 @@ const useStyles = makeStyles((theme) => ({ justifyContent: "center", }, logo: { - width: 80, - height: 56, color: theme.palette.text.primary, + fontSize: theme.spacing(8), }, title: { - fontSize: 24, - letterSpacing: -0.3, - marginBottom: theme.spacing(3), - marginTop: theme.spacing(6), textAlign: "center", + fontSize: theme.spacing(4), + fontWeight: 400, + margin: 0, + marginBottom: theme.spacing(2), + marginTop: theme.spacing(2), + lineHeight: 1, + + "& strong": { + fontWeight: 600, + }, }, })) diff --git a/site/src/pages/CliAuthPage/CliAuthPage.tsx b/site/src/pages/CliAuthPage/CliAuthPage.tsx index 0358a9f9d13eb..af4b093a2fa4a 100644 --- a/site/src/pages/CliAuthPage/CliAuthPage.tsx +++ b/site/src/pages/CliAuthPage/CliAuthPage.tsx @@ -1,24 +1,21 @@ -import { useActor } from "@xstate/react" -import { useContext, useEffect, useState, FC, PropsWithChildren } from "react" +import { useEffect, useState, FC, PropsWithChildren } from "react" import { Helmet } from "react-helmet-async" import { getApiKey } from "../../api/api" import { pageTitle } from "../../util/page" -import { XServiceContext } from "../../xServices/StateContext" import { CliAuthPageView } from "./CliAuthPageView" export const CliAuthenticationPage: FC> = () => { - const xServices = useContext(XServiceContext) - const [authState] = useActor(xServices.authXService) - const { me } = authState.context const [apiKey, setApiKey] = useState(null) useEffect(() => { - if (me?.id) { - void getApiKey().then(({ key }) => { + getApiKey() + .then(({ key }) => { setApiKey(key) }) - } - }, [me?.id]) + .catch((error) => { + console.error(error) + }) + }, []) return ( <> diff --git a/site/src/pages/CliAuthPage/CliAuthPageView.tsx b/site/src/pages/CliAuthPage/CliAuthPageView.tsx index aa2f08202d00b..ab04a83c0dd2a 100644 --- a/site/src/pages/CliAuthPage/CliAuthPageView.tsx +++ b/site/src/pages/CliAuthPage/CliAuthPageView.tsx @@ -21,6 +21,7 @@ export const CliAuthPageView: FC = ({ sessionToken }) => { return ( +

Copy the session token below and{" "} paste it in your terminal.