Skip to content

Commit

Permalink
added banner
Browse files Browse the repository at this point in the history
  • Loading branch information
0xlinus committed Aug 7, 2023
1 parent fbc15aa commit 4c6b4e7
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
39 changes: 39 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,33 @@
import type { NextPage } from 'next'
import Head from 'next/head'
import Link from 'next/link'
import styled from 'styled-components'

import { LeftSidebarLayout } from '@/src/components/layout/LeftSidebarLayout'
import { ListWithFilters } from '@/src/components/pools/list/ListWithFilters'
import { VouchedPools } from '@/src/components/pools/list/Vouched'
import { SectionIntro as BaseSectionIntro } from '@/src/components/section/SectionIntro'
import { ThemeType } from '@/src/constants/types'
import useAelinUser from '@/src/hooks/aelin/useAelinUser'
import { useThemeContext } from '@/src/providers/themeContextProvider'
import { useWeb3Connection } from '@/src/providers/web3ConnectionProvider'

const Container = styled.div`
display: flex;
flex-direction: row;
width: 100%;
gap: 1.5rem;
height: 350px;
`

const SectionIntro = styled(BaseSectionIntro)`
display: flex;
flex-direction: column;
flex: 1 1 0px;
justify-content: space-between;
height: 300px;
`

const Home: NextPage = () => {
const { address } = useWeb3Connection()
const { data: userResponse } = useAelinUser(address)
Expand All @@ -23,6 +42,26 @@ const Home: NextPage = () => {
<title>Aelin - Pools List</title>
</Head>
<LeftSidebarLayout>
<Container>
<SectionIntro
backgroundImage={
isLizardTheme ? `/resources/lizards/violet-lizard.png` : `/resources/svg/bg-deals.svg`
}
backgroundPosition="100% 110%"
backgroundSize={isLizardTheme ? '100px 85px' : 'auto auto'}
button={[]}
title=""
>
The Aelin Council has unanimously proposed that core contributors stop working on the
Aelin Protocol. Over the past 2 years, the CCs and Council have worked tirelessly to
build Aelin. Despite their best efforts, Aelin was unable to gain the level of usage
needed for the protocol to be sustainable. <br />
The full governance proposal, AELIP-53, can be found at this link with more details:{' '}
<Link href="https://aelips.aelin.xyz/aelips/aelip-53/">
https://aelips.aelin.xyz/aelips/aelip-53/
</Link>
</SectionIntro>
</Container>
<VouchedPools />
{!isLizardTheme && <ListWithFilters userPoolsInvested={userResponse?.poolsInvested} />}
</LeftSidebarLayout>
Expand Down
6 changes: 2 additions & 4 deletions src/components/section/SectionIntro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const Wrapper = styled(BaseCard)<{
@media (min-width: ${({ theme }) => theme.themeBreakPoints.tabletPortraitStart}) {
min-height: 180px;
max-height: 220px;
}
@media (min-width: ${({ theme }) => theme.themeBreakPoints.desktopStart}) {
Expand Down Expand Up @@ -49,8 +48,8 @@ const Title = styled.h1`

const Description = styled.p`
color: ${({ theme: { colors } }) => colors.textColor};
font-size: 0.8rem;
font-weight: 400;
font-size: 1.5rem;
font-weight: 100;
line-height: 1.4;
margin: 0 0 16px;
Expand All @@ -63,7 +62,6 @@ const Description = styled.p`
}
@media (min-width: ${({ theme }) => theme.themeBreakPoints.desktopStart}) {
font-size: 0.9rem;
margin-bottom: 18px;
}
`
Expand Down

0 comments on commit 4c6b4e7

Please sign in to comment.