diff --git a/apps/web/src/components/auth-container/index.jsx b/apps/web/src/components/auth-container/index.jsx
index 66b70380b..baf3a0199 100644
--- a/apps/web/src/components/auth-container/index.jsx
+++ b/apps/web/src/components/auth-container/index.jsx
@@ -18,7 +18,7 @@ along with this program. If not, see .
*/
import { useMemo } from "react";
-import { Box, Button, Flex, Image, Link, Text } from "@theme-ui/components";
+import { Button, Flex, Image, Text } from "@theme-ui/components";
import { getRandom, usePromise } from "@notesnook/common";
import Holenstein from "../../assets/testimonials/holenstein.jpg";
import Jason from "../../assets/testimonials/jason.jpg";
@@ -26,6 +26,7 @@ import Cameron from "../../assets/testimonials/cameron.jpg";
import { hosts } from "@notesnook/core";
import { SettingsDialog } from "../../dialogs/settings";
import { strings } from "@notesnook/intl";
+import { FixedColorSchemeThemeProvider } from "../theme-provider";
const testimonials = [
{
@@ -80,62 +81,18 @@ function AuthContainer(props) {
bg: "background"
}}
>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {testimonial.text} —{" "}
-
- source
-
+ {testimonial.text}
-
+
{testimonial.name}
- @{testimonial.username}
+
+ @{testimonial.username}
+
@@ -218,52 +169,18 @@ function AuthContainer(props) {
-
-
+
-
-
-
-
-
-
-
{props.children}
-
+
);
}
diff --git a/apps/web/src/components/theme-provider/index.tsx b/apps/web/src/components/theme-provider/index.tsx
index fa06a8c62..d238f704b 100644
--- a/apps/web/src/components/theme-provider/index.tsx
+++ b/apps/web/src/components/theme-provider/index.tsx
@@ -19,6 +19,7 @@ along with this program. If not, see .
import {
EmotionThemeProvider,
+ FixedThemeProvider,
ThemeScopes,
themeToCSS,
useThemeEngineStore
@@ -94,4 +95,25 @@ export function BaseThemeProvider(
);
}
+export function FixedColorSchemeThemeProvider(
+ props: PropsWithChildren<
+ {
+ injectCssVars?: boolean;
+ scope?: keyof ThemeScopes;
+ colorScheme: "light" | "dark";
+ } & Omit
+ >
+) {
+ const { children, scope = "base", ...restProps } = props;
+ const theme = useThemeStore((store) =>
+ props.colorScheme === "dark" ? store.darkTheme : store.lightTheme
+ );
+
+ return (
+
+ {children}
+
+ );
+}
+
export { EmotionThemeProvider as ScopedThemeProvider };
diff --git a/apps/web/src/views/auth.tsx b/apps/web/src/views/auth.tsx
index 473f25959..0183c2ad1 100644
--- a/apps/web/src/views/auth.tsx
+++ b/apps/web/src/views/auth.tsx
@@ -389,7 +389,7 @@ function Signup(props: BaseAuthComponentProps<"signup">) {
{strings.signupAgreement[0]()}{" "}
(props: AuthFormProps) {
const formRef = useRef(null);
const [form, setForm] = useState();
- if (isSubmitting)
- return ;
-
return (
(props: AuthFormProps) {
}
}}
sx={{
- flex: 1,
flexDirection: "column",
+ size: "100%",
alignItems: "center",
- justifyContent: "center",
- width: ["95%", "95%", "45%"],
- alignSelf: "center"
+ justifyContent: "center"
}}
>
-
- {title}
-
-
- {subtitle}
-
- {typeof children === "function" ? children(form) : children}
- {canSkip && (
-
+ {
- const result = await ConfirmDialog.show({
- title: strings.offlineMode(),
- message: strings.offlineModeDesc(),
- negativeButtonText: strings.cancel(),
- positiveButtonText: strings.understand()
- });
- if (result) openURL("/notes/", { authenticated: false });
+ fontSize: "title",
+ color: "var(--paragraph-secondary)"
}}
>
- {strings.skipAndGoToApp()}
-
- )}
+ {subtitle}
+
+ {canSkip && (
+
+ )}
+ {isSubmitting ? (
+
+ ) : typeof children === "function" ? (
+ children(form)
+ ) : (
+ children
+ )}
-
+
+
);
}
@@ -948,8 +962,7 @@ function SubtitleWithAction(props: SubtitleWithActionProps) {
sx={{
textDecoration: "underline",
fontWeight: "bold",
- fontSize: "subtitle",
- color: "paragraph",
+ fontSize: "title",
cursor: "pointer"
}}
onClick={props.action.onClick}
@@ -969,7 +982,11 @@ export function AuthField(props: FieldProps) {
data-test-id={props["data-test-id"] || props.id}
sx={{ mt: 2, width: "100%" }}
styles={{
- // label: { fontWeight: "normal" },
+ label: { fontWeight: "normal", fontSize: "subtitle" },
+ helpText: {
+ fontSize: "body",
+ my: "2px"
+ },
input: {
p: "12px",
borderRadius: "default",
@@ -992,21 +1009,20 @@ type SubmitButtonProps = {
text: string;
disabled?: boolean;
loading?: boolean;
+ sx?: Record;
};
export function SubmitButton(props: SubmitButtonProps) {
return (