Skip to content

Commit 5067473

Browse files
committed
chore: Adjust CampaignCard style
- Changed fontFamily - Fixed layout
1 parent a979a71 commit 5067473

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/components/client/campaigns/CampaignCard/CampaignCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ export default function ActiveCampaignCard({ campaign, index }: Props) {
106106
</Box>
107107
</Typography>
108108
</Grid2>
109+
<CampaignProgress state={campaignState} raised={reached} target={target} />
109110
<SumWrapper>
110111
<Sum>
111112
<SumNumber>
@@ -122,7 +123,6 @@ export default function ActiveCampaignCard({ campaign, index }: Props) {
122123
</SumNumber>
123124
</Sum>
124125
</SumWrapper>
125-
<CampaignProgress state={campaignState} raised={reached} target={target} />
126126
<CampaignTitle>{title}</CampaignTitle>
127127
</StyledContent>
128128
</Link>

src/components/client/index/sections/ActiveCampaignsSection/ActiveCampaignCard/ActiveCampaignCard.styled.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Card, CardActions, CardContent, Grid } from '@mui/material'
22
import { styled } from '@mui/material/styles'
33

44
import LinkButton from 'components/common/LinkButton'
5-
import theme from 'common/theme'
5+
import theme, { commissioner, montserrat } from 'common/theme'
66

77
export const Root = styled(Card)(() => ({
88
display: 'flex',
@@ -47,9 +47,10 @@ export const StyledContent = styled(CardContent)(() => ({
4747
alignItems: 'center',
4848
gap: theme.spacing(1),
4949
color: theme.palette.common.black,
50-
fontFamily: 'Montserrat, sans-serif',
50+
fontFamily: montserrat.style.fontFamily,
5151
fontSize: theme.typography.pxToRem(16),
5252
fontWeight: 500,
53+
paddingBottom: theme.spacing(1),
5354
},
5455

5556
'&:last-child': { paddingBottom: 0 },
@@ -58,7 +59,7 @@ export const StyledContent = styled(CardContent)(() => ({
5859
export const CampaignTitle = styled('h3')(() => ({
5960
fontSize: theme.typography.pxToRem(16),
6061
color: theme.palette.common.black,
61-
fontFamily: 'Montserrat, sans-serif',
62+
fontFamily: montserrat.style.fontFamily,
6263
fontWeight: 400,
6364
textAlign: 'left',
6465
margin: theme.spacing(1, 0, 0),
@@ -85,6 +86,7 @@ export const Sum = styled('span')(() => ({
8586
fontSize: theme.typography.pxToRem(16),
8687
lineHeight: '150%',
8788
letterSpacing: '0.15px',
89+
fontFamily: commissioner.style.fontFamily,
8890
}))
8991

9092
export const SumNumber = styled('span')(() => ({

0 commit comments

Comments
 (0)