Skip to content

Commit

Permalink
Merge pull request #2051 from Giveth/gitcoin-alpha-round-banner
Browse files Browse the repository at this point in the history
gitcoin alpha round banner added
  • Loading branch information
mateodaza authored Jan 19, 2023
2 parents a17e9e1 + c7f881d commit 0417d0c
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
Binary file added public/images/banners/gitcoin-alpha-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/views/homepage/HomeGIVPowerSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const Wrapper = styled(HomeContainer)`
position: relative;
cursor: pointer;
min-height: 550px;
max-width: 200px:
border-radius: 12px;
overflow: hidden;
box-shadow: ${Shadow.Neutral[400]};
Expand Down
40 changes: 39 additions & 1 deletion src/components/views/homepage/HomeNiceSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,25 @@ import { Col, Container } from '@/components/Grid';

const HomePurpleSection = () => {
const { formatMessage } = useIntl();

// replacing this by the gitcoin alpha round for now
const gitcoinGrantAlpha =
'https://grant-explorer.gitcoin.co/#/round/1/0xd95a1969c41112cee9a2c931e849bcef36a16f4c/0xb746c0f648f9b930ea4568cf8741067a7fc7eb3928ac13cced8076212cf3cf37-0xd95a1969c41112cee9a2c931e849bcef36a16f4c';
return (
<GitcoinContainer>
<Link
href={gitcoinGrantAlpha}
target='_blank'
rel='noopener noreferrer'
>
<img
alt='gitcoin alpha is here'
src={'/images/banners/gitcoin-alpha-banner.png'}
/>
</Link>
</GitcoinContainer>
);

return (
<Wrapper>
<Arcs>
Expand Down Expand Up @@ -64,7 +83,7 @@ const Wrapper = styled(HomeContainer)`
top: -50px;
::after {
content: '';
background-image: url('/images/backgrounds/GIVGIVGIV.png');
background-image: url('/images/banners/gitcoin-alpha-bannerV.png');
opacity: 0.1;
top: 0;
left: 0;
Expand All @@ -75,6 +94,25 @@ const Wrapper = styled(HomeContainer)`
}
`;

const GitcoinContainer = styled.div`
display: none;
position: relative;
cursor: pointer;
border-radius: 12px;
flex-direction: column;
align-items: center;
margin: 64px 32px;
img {
max-width: 1080px;
border-radius: 12px;
}
${mediaQueries.laptopL} {
display: flex;
}
`;

const BigTitle = styled(D3)`
color: ${brandColors.giv[500]};
margin: 0 0 40px 0;
Expand Down
2 changes: 2 additions & 0 deletions src/components/views/projects/ProjectsIndex.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import ProjectsFiltersDesktop from '@/components/views/projects/ProjectsFiltersD
import ProjectsFiltersTablet from '@/components/views/projects/ProjectsFiltersTablet';
import ProjectsFiltersMobile from '@/components/views/projects/ProjectsFiltersMobile';
import LottieControl from '@/components/animations/lottieControl';
import GitcoinBanner from '@/components/views/homepage/HomeNiceSection';
import LoadingAnimation from '@/animations/loading_giv.json';
import useDetectDevice from '@/hooks/useDetectDevice';
import { Flex, FlexCenter } from '@/components/styled-components/Flex';
Expand Down Expand Up @@ -251,6 +252,7 @@ const ProjectsIndex = (props: IProjectsView) => {
)}

<ProjectsBanner mainCategory={selectedMainCategory} />
<GitcoinBanner />
<Wrapper>
<FiltersContainer>
{isDesktop && <ProjectsFiltersDesktop />}
Expand Down

1 comment on commit 0417d0c

@vercel
Copy link

@vercel vercel bot commented on 0417d0c Jan 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

giveth-dapps-v2 – ./

giveth-dapps-v2-git-main-givethio.vercel.app
giveth-dapps-v2-givethio.vercel.app
giveth.io
www.giveth.io

Please sign in to comment.