Compare commits

..

No commits in common. "c29bdd59aeca11bebaa7697eca79222363b18582" and "54451205116eb7cc46739bc32032d176d3bd0679" have entirely different histories.

24 changed files with 45 additions and 76 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -137,7 +137,7 @@ export const AppBar = () => {
<Button <Button
startIcon={<ButtonIcon />} startIcon={<ButtonIcon />}
onClick={() => { onClick={() => {
navigate(appPublicRoutes.nostr) navigate(appPublicRoutes.login)
}} }}
variant="contained" variant="contained"
> >

View File

@ -2,7 +2,6 @@ import { Box, Button, Link as LinkMui } from '@mui/material'
import { Link } from 'react-router-dom' import { Link } from 'react-router-dom'
import styles from './style.module.scss' import styles from './style.module.scss'
import { Container } from '../Container' import { Container } from '../Container'
import nostrImage from '../../assets/images/nostr.gif'
export const Footer = () => ( export const Footer = () => (
<footer className={`${styles.borderTop} ${styles.footer}`}> <footer className={`${styles.borderTop} ${styles.footer}`}>
@ -118,7 +117,12 @@ export const Footer = () => (
}} }}
variant={'contained'} variant={'contained'}
> >
<img src={nostrImage} width="25" alt="nostr logo" height="25" /> <img
src="https://image.nostr.build/fb557f1b6d58c7bbcdf4d1edb1b48090c76ff1d1384b9d1aae13d652e7a3cfe4.gif"
width="25"
alt="nostr logo"
height="25"
/>
</Button> </Button>
</Box> </Box>
</Box> </Box>

View File

@ -16,6 +16,30 @@
box-sizing: border-box; box-sizing: border-box;
} }
@font-face {
font-family: 'Roboto';
font-weight: 300;
src: local('Roboto-Light'), url(./assets/roboto-font/Roboto-Light.ttf);
}
@font-face {
font-family: 'Roboto';
font-weight: 400;
src: local('Roboto-Regular'), url(./assets/Roboto-font/Roboto-Regular.ttf);
}
@font-face {
font-family: 'Roboto';
font-weight: 500;
src: local('Roboto-Medium'), url(./assets/Roboto-font/Roboto-Medium.ttf);
}
@font-face {
font-family: 'Roboto';
font-weight: 700;
src: local('Roboto-Bold'), url(./assets/Roboto-font/Roboto-Bold.ttf);
}
body { body {
margin: 0; margin: 0;
min-width: 320px; min-width: 320px;
@ -107,44 +131,3 @@ button:disabled {
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
} }
/* Fonts */
@font-face {
font-family: 'Roboto';
src: local('Roboto Medium'), local('Roboto-Medium'),
url('assets/fonts/roboto-medium.woff2') format('woff2'),
url('assets/fonts/roboto-medium.woff') format('woff');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Roboto';
src: local('Roboto Light'), local('Roboto-Light'),
url('assets/fonts/roboto-light.woff2') format('woff2'),
url('assets/fonts/roboto-light.woff') format('woff');
font-weight: 300;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Roboto';
src: local('Roboto Bold'), local('Roboto-Bold'),
url('assets/fonts/roboto-bold.woff2') format('woff2'),
url('assets/fonts/roboto-bold.woff') format('woff');
font-weight: bold;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Roboto';
src: local('Roboto'), local('Roboto-Regular'),
url('assets/fonts/roboto-regular.woff2') format('woff2'),
url('assets/fonts/roboto-regular.woff') format('woff');
font-weight: normal;
font-style: normal;
font-display: swap;
}

View File

@ -10,7 +10,6 @@ import styles from './style.module.scss'
import { appPublicRoutes } from '../../routes' import { appPublicRoutes } from '../../routes'
import { faClose } from '@fortawesome/free-solid-svg-icons' import { faClose } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import nostrImage from '../../assets/images/nostr.gif'
function useRouteMatch(patterns: readonly string[]) { function useRouteMatch(patterns: readonly string[]) {
const { pathname } = useLocation() const { pathname } = useLocation()
@ -35,7 +34,14 @@ export const Modal = () => {
to: appPublicRoutes.nostr, to: appPublicRoutes.nostr,
title: 'Login', title: 'Login',
sx: { padding: '10px' }, sx: { padding: '10px' },
label: <img src={nostrImage} width="25" alt="nostr logo" height="25" /> label: (
<img
src="https://image.nostr.build/fb557f1b6d58c7bbcdf4d1edb1b48090c76ff1d1384b9d1aae13d652e7a3cfe4.gif"
width="25"
alt="nostr logo"
height="25"
/>
)
} }
] ]
const routeMatch = useRouteMatch(tabs.map((t) => t.to)) const routeMatch = useRouteMatch(tabs.map((t) => t.to))
@ -93,10 +99,6 @@ export const Modal = () => {
) )
})} })}
</ul> </ul>
{activeTab === appPublicRoutes.login ||
activeTab === appPublicRoutes.register ? (
<div className={styles.comingSoon}>Coming soon!</div>
) : null}
<div className={styles.tabContent}> <div className={styles.tabContent}>
<Outlet /> <Outlet />
</div> </div>

View File

@ -66,14 +66,6 @@ $default-modal-padding: 15px 25px;
padding-inline: 10px; padding-inline: 10px;
} }
.comingSoon {
padding: 15px;
color: rgba(0, 0, 0, 0.5);
text-align: center;
font-weight: 400;
font-size: 16px;
}
.footer { .footer {
padding: 15px; padding: 15px;
border-top: solid 1px rgba(0, 0, 0, 0.1); border-top: solid 1px rgba(0, 0, 0, 0.1);

View File

@ -25,7 +25,7 @@ export const LandingPage = () => {
const location = useLocation() const location = useLocation()
const onSignInClick = async () => { const onSignInClick = async () => {
navigate(appPublicRoutes.nostr) navigate(appPublicRoutes.login)
} }
const cards = [ const cards = [
@ -109,11 +109,11 @@ export const LandingPage = () => {
<div className={styles.background}> <div className={styles.background}>
<div <div
className={`${styles.backgroundBlob} ${styles.backgroundBlobLeft}`} className={`${styles.backgroundBlob} ${styles.backgroundBlobLeft}`}
style={{ backgroundImage: `url("${bg_l}")` }} style={{ backgroundImage: `url(${bg_l})` }}
></div> ></div>
<div <div
className={`${styles.backgroundBlob} ${styles.backgroundBlobRight}`} className={`${styles.backgroundBlob} ${styles.backgroundBlobRight}`}
style={{ backgroundImage: `url("${bg_r}")` }} style={{ backgroundImage: `url(${bg_r})` }}
></div> ></div>
<Container className={styles.container}> <Container className={styles.container}>

View File

@ -1,8 +1,6 @@
import { Button, TextField } from '@mui/material' import { Button, TextField } from '@mui/material'
export const Login = () => { export const Login = () => {
// TODO: All fields, buttons are disabled
// Feature not implemented
return ( return (
<> <>
<TextField <TextField
@ -11,7 +9,6 @@ export const Login = () => {
fullWidth fullWidth
margin="dense" margin="dense"
autoComplete="username" autoComplete="username"
disabled
/> />
<TextField <TextField
label="Password" label="Password"
@ -19,10 +16,9 @@ export const Login = () => {
fullWidth fullWidth
margin="dense" margin="dense"
autoComplete="current-password" autoComplete="current-password"
disabled
/> />
<Button variant="contained" fullWidth disabled> <Button variant="contained" fullWidth>
Login Login
</Button> </Button>
</> </>

View File

@ -1,8 +1,6 @@
import { Button, TextField } from '@mui/material' import { Button, TextField } from '@mui/material'
export const Register = () => { export const Register = () => {
// TODO: All fields, buttons are disabled
// Feature not implemented
return ( return (
<> <>
<TextField <TextField
@ -11,7 +9,6 @@ export const Register = () => {
fullWidth fullWidth
margin="dense" margin="dense"
autoComplete="username" autoComplete="username"
disabled
/> />
<TextField <TextField
label="Password" label="Password"
@ -20,7 +17,6 @@ export const Register = () => {
margin="dense" margin="dense"
type="password" type="password"
autoComplete="new-password" autoComplete="new-password"
disabled
/> />
<TextField <TextField
label="Confirm password" label="Confirm password"
@ -29,10 +25,9 @@ export const Register = () => {
margin="dense" margin="dense"
type="password" type="password"
autoComplete="new-password" autoComplete="new-password"
disabled
/> />
<Button variant="contained" fullWidth disabled> <Button variant="contained" fullWidth>
Register Register
</Button> </Button>
</> </>

View File

@ -55,10 +55,7 @@ export const theme = extendTheme({
}, },
contained: { contained: {
background: 'var(--primary-main)', background: 'var(--primary-main)',
color: 'white', color: 'white'
':hover': {
color: 'white'
}
}, },
outlined: { outlined: {
':hover': { ':hover': {