Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 'See more' button on Active campaigns (Homepage) #1883

Merged
merged 2 commits into from
Jul 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion public/locales/bg/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"content": "Абонирайте се за нашия бюлетин и ние ще Ви информираме за най-важното от живота на Подкрепи.бг. Всеки месец ще получвате email от нас, в който ще Ви споделяме най-интересното за кампаниите, които поддържаме, както и за техните организатори и бенефициенти. Ще получавате новините за нашите партньори, доброволци и дарители в електронната си пощенска кутия. Ако Ви звучи добре, запишете се, като въведеш email адреса си тук:"
},
"campaign": {
"see-all": "Вижте всички"
"see-all": "Вижте всички",
"see-more": "Вижте повече"
},
"how-we-work": {
"heading": "Как работи Подкрепи.бг?",
Expand Down
3 changes: 2 additions & 1 deletion public/locales/en/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"content": "Subscribe for our newsletter we will infrom you about the most important from the life of Podkrepi.bg. Every month you will receive email from us in which we will share with you the most important things about the campaigns that we have and their organizers and beneficiaries. You will receive news for our partners, volunteers and donors in your email box. If this sounds good for you, subscribe as you fill in your email here:"
},
"campaign": {
"see-all": "See all"
"see-all": "See all",
"see-more": "See more"
},
"how-we-work": {
"heading": "How does Pordkprepi.bg work?",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,24 @@ export const ActiveCampaignsWrapper = styled(Grid)(() => ({
export const SeeAllButtonWrapper = styled(Grid)(() => ({
display: 'flex',
placeContent: 'center',
marginTop: theme.spacing(10),
marginTop: theme.spacing(6),
}))

export const SeeAllButton = styled(LinkButton)(() => ({
fontFamily: "'Lato', sans-serif",
fontFamily: 'sans-serif',
fontSize: theme.typography.pxToRem(16),
fontWeight: 600,
color: theme.palette.common.black,
letterSpacing: '0.4px',
textDecoration: 'underline',
marginTop: 0,
color: '#252222',
letterSpacing: '0.46px',
backgroundColor: theme.palette.primary.light,
lineHeight: theme.spacing(3.25),
width: theme.spacing(28.5),
height: theme.spacing(6),
boxShadow:
'0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0, 0, 0, 0.12)',

'&:hover': {
backgroundColor: 'transparent',
textDecoration: 'underline',
boxShadow:
'0px 3px 1px -2px rgba(0, 0, 0, 0.2),0px 2px 2px 0px rgba(0, 0, 0, 0.14),0px 1px 5px 0px rgba(0, 0, 0, 0.12)',
},
}))
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useTranslation } from 'next-i18next'

import ArrowForwardIcon from '@mui/icons-material/ArrowForward'

import { useCampaignList } from 'common/hooks/campaigns'
import { routes } from 'common/routes'
import { CampaignState } from 'components/client/campaigns/helpers/campaign.enums'
Expand Down Expand Up @@ -28,9 +30,14 @@ export default function ActiveCampaignsSection() {
{activeCampaigns?.map((campaign, index) => (
<ActiveCampaignCard index={index} key={campaign.id} campaign={campaign} />
))}
</ActiveCampaignsWrapper>{' '}
</ActiveCampaignsWrapper>
<SeeAllButtonWrapper>
<SeeAllButton href={routes.campaigns.index}>{t('campaign.see-all')}</SeeAllButton>
<SeeAllButton
href={routes.campaigns.index}
variant="contained"
endIcon={<ArrowForwardIcon />}>
{t('campaign.see-more')}
</SeeAllButton>
</SeeAllButtonWrapper>
</Root>
)
Expand Down
Loading