diff --git a/src/layouts/modal/index.tsx b/src/layouts/modal/index.tsx
index cf9d45c..4a54bf9 100644
--- a/src/layouts/modal/index.tsx
+++ b/src/layouts/modal/index.tsx
@@ -1,4 +1,4 @@
-import { Box, Button, Modal as ModalMui, Typography } from '@mui/material'
+import { Button, IconButton, Modal as ModalMui } from '@mui/material'
import {
Link,
matchPath,
@@ -28,7 +28,19 @@ export const Modal = () => {
const tabs = [
{ to: appPublicRoutes.login, title: 'Login', label: 'Login' },
{ to: appPublicRoutes.register, title: 'Register', label: 'Register' },
- { to: appPublicRoutes.nostr, title: 'Login', label: <>Ostrich> }
+ {
+ to: appPublicRoutes.nostr,
+ title: 'Login',
+ sx: { padding: '10px' },
+ label: (
+
+ )
+ }
]
const routeMatch = useRouteMatch(tabs.map((t) => t.to))
const activeTab = routeMatch?.pattern?.path
@@ -37,42 +49,63 @@ export const Modal = () => {
}
return (
-
-
-
- {tabs.find((t) => activeTab === t.to)?.title}
-
+
+
+
+
+ {tabs.find((t) => activeTab === t.to)?.title}
+
+
+
+
+
-
- {tabs.map((t) => {
- return (
-
- )
- })}
-
+
+
+ {tabs.map((t) => {
+ return (
+ -
+
+
+ )
+ })}
+
+
+
-
-
-
- Welcome to Sigit
-
-
+
+
)
}
diff --git a/src/layouts/modal/style.module.scss b/src/layouts/modal/style.module.scss
index adc3088..02e91c1 100644
--- a/src/layouts/modal/style.module.scss
+++ b/src/layouts/modal/style.module.scss
@@ -1,10 +1,12 @@
@import '../../styles/colors.scss';
+$default-modal-padding: 15px 25px;
+
.modal {
position: absolute;
- top: 50%;
+ top: 0;
left: 50%;
- transform: translate(-50%, -50%);
+ transform: translate(-50%, 0);
background-color: $overlay-background-color;
@@ -12,4 +14,56 @@
max-width: 500px;
display: flex;
flex-direction: column;
+
+ border-radius: 4px;
+}
+
+.header {
+ display: flex;
+ grid-gap: 10px;
+ justify-content: space-between;
+ padding: $default-modal-padding;
+ border-bottom: solid 1px rgba(0, 0, 0, 0.1);
+}
+
+.title {
+ font-size: 24px;
+ font-weight: bold;
+}
+
+.body {
+ display: flex;
+ flex-direction: column;
+ grid-gap: 10px;
+ padding: $default-modal-padding;
+
+ > ul {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+
+ width: 100%;
+ display: flex;
+ flex-direction: row;
+ grid-gap: 10px;
+
+ > li {
+ flex-grow: 1;
+
+ &:last-child {
+ max-width: 65px;
+ padding: 0 0 0 10px;
+ border-left: solid 1px rgba(0, 0, 0, 0.1);
+ }
+ }
+ }
+}
+
+.footer {
+ padding: 15px;
+ border-top: solid 1px rgba(0, 0, 0, 0.1);
+ color: rgba(0, 0, 0, 0.5);
+ text-align: center;
+ font-weight: 400;
+ font-size: 16px;
}
diff --git a/src/theme/index.ts b/src/theme/index.ts
index 71c107e..1d3f211 100644
--- a/src/theme/index.ts
+++ b/src/theme/index.ts
@@ -27,7 +27,7 @@ export const theme = extendTheme({
styleOverrides: {
root: {
insetBlock: '25px',
- insetInline: '20px'
+ insetInline: '10px'
}
}
},
@@ -74,6 +74,18 @@ export const theme = extendTheme({
defaultProps: {
fontFamily: ['Roboto', 'system-ui', 'sans-serif'].join(',')
}
+ },
+ MuiIconButton: {
+ styleOverrides: {
+ root: {
+ padding: '8px 15px',
+ borderRadius: '4px',
+ ':hover': {
+ background: 'var(--primary-light)',
+ color: 'white'
+ }
+ }
+ }
}
},
breakpoints: {