Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ui: improve login dialog and dialogs ui

thecodrr4ec16e9315f1
diff --git a/apps/web/src/components/dialogs/index.js b/apps/web/src/components/dialogs/index.js
index 2c465a719..64c2c0c44 100644
--- a/apps/web/src/components/dialogs/index.js
+++ b/apps/web/src/components/dialogs/index.js
@@ -40,6 +40,7 @@ const Dialog = props => {
overflowY: "hidden"
},
overlay: {
+ zIndex: 999,
background: theme.colors.overlay
}
}}
@@ -224,26 +225,21 @@ const ConfirmationDialog = props => (
/>
);
-const SignInDialog = props => (
+const LoginDialog = props => (
<Dialog
open={true}
title={props.title}
icon={props.icon}
- IconSize={30}
- closeCick={props.closeCick}
+ onCloseClick={props.onCloseClick}
content={
<Box my={1}>
+ <Input variant="default" placeholder="Email"></Input>
<Input
- placeholder="Email"
- my="10px"
- sx={{ borderColor: "border" }}
- ></Input>
- <Input
+ variant="default"
placeholder="Password"
- my="10px"
- sx={{ borderColor: "border" }}
+ sx={{ marginTop: 2 }}
></Input>
- <Button width={1} my="10px">
+ <Button width={1} my={2}>
Login
</Button>
<Flex flexDirection="row" justifyContent="space-between">
@@ -267,11 +263,10 @@ export const showSignInDialog = (icon, title, message) => {
if (root) {
return new Promise((resolve, _) => {
ReactDOM.render(
- <SignInDialog
- closeCick={() => {
+ <LoginDialog
+ onCloseClick={() => {
perform(false, resolve);
}}
- id="SignInDialog"
title={title}
message={message}
icon={icon}
diff --git a/apps/web/src/utils/theme.js b/apps/web/src/utils/theme.js
index aa8045f17..7dfea623b 100644
--- a/apps/web/src/utils/theme.js
+++ b/apps/web/src/utils/theme.js
@@ -125,6 +125,9 @@ const theme = (colors, shadows) => ({
":focus": {
outline: "none"
},
+ ":hover": {
+ cursor: "pointer"
+ },
...ButtonPressedStyle
},
secondary: {
@@ -152,27 +155,16 @@ const theme = (colors, shadows) => ({
outline: "none"
}
},
- setting: {
- bg: "transparent",
- borderLeft: "0px Solid",
- borderRight: "0px Solid",
- borderTop: "0px Solid",
- borderBottom: "1px Solid",
- borderColor: "border",
- color: "text",
- textAlign: "left",
- fontSize: "title",
- fontFamily: "body",
- borderRadius: "0px",
- py: "15px",
- mx: "5px",
- "&:hover": { borderColor: "primary" }
- },
links: {
+ variant: "buttons.primary",
bg: "transparent",
color: "primary",
fontSize: "subBody",
- fontFamily: "body"
+ fontFamily: "body",
+ py: 0,
+ px: 0,
+ my: 0,
+ mx: 0
}
},
shadows: shadows