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

Add CoW Galxe Promo banner on pools page #1098

Merged
merged 2 commits into from
Sep 17, 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
4 changes: 2 additions & 2 deletions app/(app)/pools/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Suspense } from 'react'
// import { getProjectConfig } from '@/lib/config/getProjectConfig'
// import { GetFeaturedPoolsDocument } from '@/lib/shared/services/api/generated/graphql'
// import { FeaturedPools } from '@/lib/modules/featured-pools/FeaturedPools'
import { HookathonPromoBanner } from '@/lib/shared/components/promos/HookathonPromoBanner'
import { CowGalxeQuestPromoBanner } from '@/lib/shared/components/promos/CowGalxeQuestPromoBanner'

export default async function PoolsPage() {
// Featured pools set up
Expand All @@ -33,7 +33,7 @@ export default async function PoolsPage() {
<DefaultPageContainer pt={['xl', '40px']} pb={['xl', '2xl']}>
<FadeInOnView animateOnce={false}>
<Box>
<HookathonPromoBanner />
<CowGalxeQuestPromoBanner />
</Box>
</FadeInOnView>
{/* <FadeInOnView animateOnce={false}>
Expand Down
89 changes: 89 additions & 0 deletions lib/shared/components/promos/CowGalxeQuestPromoBanner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
'use client'

import React from 'react'
import { Button, Heading, Flex, Box, Center } from '@chakra-ui/react'
import NextLink from 'next/link'
import { ArrowUpRight } from 'react-feather'

export function CowGalxeQuestPromoBanner() {
return (
<Box
position="relative"
height="140px"
background={`url('/images/promos/cow-galxe-quest/bg.jpeg') no-repeat center center`}
backgroundSize="cover"
width="full"
maxW="100%"
rounded="lg"
overflow="hidden"
sx={{
width: '100% !important',
maxWidth: '100% !important',
}}
boxShadow="lg"
h={{ base: '200px', sm: '140px' }}
>
<Center h="100%" className="copy" zIndex="1">
<Flex
gap={{ base: 'ms', lg: 'md' }}
direction={{ base: 'column', md: 'row' }}
justifyContent="center"
alignItems="center"
zIndex="1"
borderRadius="xl"
>
<Flex
gap={{ base: 'sm', sm: '0' }}
alignItems="center"
direction={{ base: 'column', sm: 'row' }}
>
<Box>
<Heading
color="#fff"
fontSize={{ base: '2xl', md: '3xl', lg: '4xl' }}
fontWeight="regular"
lineHeight="1"
>
The Arbitrum Arc:
</Heading>
</Box>
<Box pl="sm" textAlign="center">
<Heading
color="font.light"
fontSize={{ base: '2xl', md: '3xl', lg: '4xl' }}
fontWeight="regular"
lineHeight="1"
>
Moove into CoW AMM!
</Heading>
</Box>
</Flex>
<Button
size="lg"
as={NextLink}
href="https://app.galxe.com/quest/Balancer/GC863txfST"
flex="1"
rounded="full"
py="sm"
w="max-content"
h={{ base: '32px', sm: '40px', lg: '48px' }}
bg="font.light"
color="font.dark"
cursor="hand"
_hover={{ bg: '#fff', color: '#000' }}
shadow="2xl"
>
Join the quest
<Box
pl="xs"
transition="all 0.2s var(--ease-out-cubic)"
_groupHover={{ transform: ' translateX(1.5px)' }}
>
<ArrowUpRight size={14} style={{ display: 'inline' }} />
</Box>
</Button>
</Flex>
</Center>
</Box>
)
}
Binary file added public/images/promos/cow-galxe-quest/bg.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading