Skip to content

Commit

Permalink
Merge pull request #4306 from Giveth/add-new-sponsor
Browse files Browse the repository at this point in the history
Add new QF sponsor
  • Loading branch information
RamRamez authored Jun 21, 2024
2 parents 574185a + 87b6edb commit b404242
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "givethdapp",
"version": "2.27.4",
"version": "2.27.5",
"private": true,
"scripts": {
"build": "next build",
Expand Down
11 changes: 11 additions & 0 deletions public/images/banners/qf-round/regenToken.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions src/components/views/projects/qfBanner/ActiveQFProjectsBanner.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { B, Lead, Container, Row, Flex } from '@giveth/ui-design-system';
import { B, Lead, Container, Row } from '@giveth/ui-design-system';
import { useIntl } from 'react-intl';
import Image from 'next/image';
import { useState, useEffect } from 'react';
Expand All @@ -11,6 +11,8 @@ import {
Title,
Sponsor,
SmallerSponsor,
BottomSponsors,
MiddleSponsors,
} from './common';
import { useAppSelector } from '@/features/hooks';

Expand Down Expand Up @@ -126,7 +128,7 @@ export const ActiveQFProjectsBanner = () => {
{/* />*/}
{/* ))}*/}
{/*</Flex>*/}
<Flex>
<MiddleSponsors>
{sponsors.map(s => (
<Sponsor
key={s.title}
Expand All @@ -136,8 +138,8 @@ export const ActiveQFProjectsBanner = () => {
height={188}
/>
))}
</Flex>
<Flex>
</MiddleSponsors>
<BottomSponsors>
{bottomSponsors.map(s => (
<SmallerSponsor
key={s.title}
Expand All @@ -147,7 +149,7 @@ export const ActiveQFProjectsBanner = () => {
height={120}
/>
))}
</Flex>
</BottomSponsors>
</ActiveStyledCol>
</Row>
</Container>
Expand Down Expand Up @@ -198,4 +200,8 @@ const bottomSponsors = [
title: '@OctantApp',
image: '/images/banners/qf-round/OctantApp.svg',
},
{
title: '@RegenToken',
image: '/images/banners/qf-round/regenToken.svg',
},
];
13 changes: 13 additions & 0 deletions src/components/views/projects/qfBanner/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,19 @@ export const Sponsor = styled(Image)`
}
`;

export const MiddleSponsors = styled(Flex)`
:nth-child(2) {
margin-top: -12px;
}
`;

export const BottomSponsors = styled(Flex)`
padding-top: 16px;
:nth-child(2) {
margin-top: -12px;
}
`;

export const SmallerSponsor = styled(Image)`
width: 80px;
height: 80px;
Expand Down

0 comments on commit b404242

Please sign in to comment.