Landing page - new design implementation #122

Merged
b merged 45 commits from issue-21 into staging 2024-07-31 13:06:58 +00:00
2 changed files with 43 additions and 50 deletions
Showing only changes of commit 804bb6c9ac - Show all commits

View File

@ -1,5 +1,5 @@
import { Box, Button, Container, Link } from '@mui/material' import { Box, Button, Container, Link as LinkMui } from '@mui/material'
import { Link as RouterLink } from 'react-router-dom' import { Link } from 'react-router-dom'
import styles from './style.module.scss' import styles from './style.module.scss'
export const Footer = () => ( export const Footer = () => (
@ -24,19 +24,19 @@ export const Footer = () => (
}} }}
gap={'50px'} gap={'50px'}
> >
<Link <LinkMui
sx={{ sx={{
justifySelf: { justifySelf: {
xs: 'center', xs: 'center',
md: 'start' md: 'start'
} }
}} }}
component={RouterLink} component={Link}
to={'/'} to={'/'}
className={styles.logo} className={styles.logo}
> >
<img src="/logo.svg" alt="Logo" /> <img src="/logo.svg" alt="Logo" />
</Link> </LinkMui>
<Box <Box
display={'grid'} display={'grid'}
sx={{ sx={{
@ -58,21 +58,15 @@ export const Footer = () => (
component={'nav'} component={'nav'}
className={styles.nav} className={styles.nav}
> >
<RouterLink to={'/'}> <Button component={Link} to={'/'} variant={'text'}>
<Button variant={'text'} focusRipple={false}>
Home Home
</Button> </Button>
</RouterLink> <Button component={Link} to={'/#'} variant={'text'}>
<RouterLink to={'/#'}>
<Button variant={'text'} focusRipple={false}>
Documentation Documentation
</Button> </Button>
</RouterLink> <Button component={Link} to={'/#'} variant={'text'}>
<RouterLink to={'/#'}>
<Button variant={'text'} focusRipple={false}>
Source Source
</Button> </Button>
</RouterLink>
</Box> </Box>
<Box <Box
className={styles.links} className={styles.links}
@ -83,11 +77,10 @@ export const Footer = () => (
} }
}} }}
> >
<Link <Button
component={LinkMui}
href="https://snort.social/npub1yay8e9sqk94jfgdlkpgeelj2t5ddsj2eu0xwt4kh4xw5ses2rauqnstrdv" href="https://snort.social/npub1yay8e9sqk94jfgdlkpgeelj2t5ddsj2eu0xwt4kh4xw5ses2rauqnstrdv"
target="_blank" target="_blank"
>
<Button
sx={{ sx={{
minWidth: '45px', minWidth: '45px',
padding: '10px' padding: '10px'
@ -101,15 +94,14 @@ export const Footer = () => (
height="25" height="25"
/> />
</Button> </Button>
</Link>
</Box> </Box>
</Box> </Box>
</Container> </Container>
<div className={`${styles.borderTop} ${styles.credits}`}> <div className={`${styles.borderTop} ${styles.credits}`}>
Built by&nbsp; Built by&nbsp;
<Link href="https://nostrdev.com/" target="_blank"> <LinkMui href="https://nostrdev.com/" target="_blank">
Nostr Dev Nostr Dev
</Link>{' '} </LinkMui>{' '}
2024. 2024.
</div> </div>
</footer> </footer>

View File

@ -45,14 +45,16 @@ export const Modal = () => {
> >
<Box className={styles.modal}> <Box className={styles.modal}>
<Typography id="modal-title" variant="h2"> <Typography id="modal-title" variant="h2">
Login {tabs.find((t) => activeTab === t.to)?.title}
</Typography> </Typography>
<Box component={'ul'}> <Box component={'ul'}>
{tabs.map((t) => { {tabs.map((t) => {
return ( return (
<Link to={t.to} key={t.to}>
<Button <Button
component={Link}
to={t.to}
key={t.to}
variant={ variant={
activeTab === t.to || t.to === appPublicRoutes.nostr activeTab === t.to || t.to === appPublicRoutes.nostr
? 'contained' ? 'contained'
@ -61,7 +63,6 @@ export const Modal = () => {
> >
{t.label} {t.label}
</Button> </Button>
</Link>
) )
})} })}
</Box> </Box>