Skip to content

Commit

Permalink
fix(webapp): fix twitter card for mobile version and styling footer (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tetogomez authored Oct 18, 2022
1 parent 407efe6 commit 253ecbe
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
7 changes: 5 additions & 2 deletions src/components/Home/Bottom/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ const Styles = makeStyles(theme => ({
},
wrapperGrid: {
paddingBottom: theme.spacing(4),
maxWidth: '100%',
margin: '0 auto'
width: '100%',
margin: '0 auto',
[theme.breakpoints.up('sm')]: {
width: 600
}
},
gridRow: {
display: 'flex',
Expand Down
8 changes: 4 additions & 4 deletions src/components/Layout/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Typography, Box, Link } from '@mui/material'
import { Typography, Link } from '@mui/material'
import { Footer } from '@edenia/ui-kit'
import Image from 'next/image'
import { useTheme } from '@mui/styles'
Expand All @@ -19,7 +19,7 @@ const FooterComp: React.FC<FooterCompType> = ({ showWhite }) => {
const theme = useTheme()

return (
<Box className={classes.root}>
<div className={classes.footerRoot}>
<Footer
socialMediaItems={
!showWhite ? constantConfig?.footer?.socialMediaItems : undefined
Expand All @@ -31,7 +31,7 @@ const FooterComp: React.FC<FooterCompType> = ({ showWhite }) => {
</div>
<Typography variant='caption' color={theme.palette.grey[600]}>
<Link href='https://edenia.com' color={theme.palette.grey[600]}>
Hosted by Edenia{' '}
{`Hosted by Edenia `}
</Link>
- Community Owned
</Typography>
Expand All @@ -41,7 +41,7 @@ const FooterComp: React.FC<FooterCompType> = ({ showWhite }) => {
bgColor={!showWhite ? '#343434' : '#FFFFFF'}
color={!showWhite ? '#FFFFFF' : '#262626'}
/>
</Box>
</div>
)
}

Expand Down
19 changes: 16 additions & 3 deletions src/components/Layout/Footer/styles.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
import { makeStyles } from '@mui/styles'

const Styles = makeStyles(theme => ({
root: {
footerRoot: {
width: '100%',
backgroundColor: theme.palette.grey[600]
backgroundColor: theme.palette.grey[600],
'& .footer-item-style': {
color: 'rgba(163,163,163,1) !important',
fontSize: '16px !important',
margin: '2px 0'
},
'& .footer-item-title': {
letterSpacing: '.1em',
fontSize: '.875rem',
lineHeight: '1.25rem'
}
},
footerContainer: {
display: 'flex',
justifyContent: 'center',
alignItems: 'center'
alignItems: 'center',
'& .MuiTypography-caption': {
fontSize: '16px !important'
}
},
paddinR: {
paddingRight: theme.spacing(0.5)
Expand Down
4 changes: 3 additions & 1 deletion src/utils/genesis-eden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ export const classifyMemberRank = (
switch (true) {
case RankType.Member === memberType:
label = 'Member'
voteWeight = '4'
voteWeight = '1'
break

case RankType.N === memberType:
label = `Level ${rank} Delegate`
voteWeight = '4'
break

case RankType.Chief === memberType:
Expand All @@ -100,6 +101,7 @@ export const classifyMemberRank = (

default:
label = 'Head Chief Delegate'
voteWeight = '16'
break
}

Expand Down

0 comments on commit 253ecbe

Please sign in to comment.