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

Start of change for example. #329

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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: 3 additions & 0 deletions src/components/Layout/GlassCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ interface GlassCardProps {
body: string
icon?: React.ReactNode
iconBoxColor: string
children?: React.ReactNode
}
export const GlassCard = ({
title,
header,
body,
icon,
iconBoxColor,
children
}: GlassCardProps): JSX.Element => {
const { width } = useWindowSize()
const stylesPaddingTotal = 38 * 2 // 38px on each side
Expand Down Expand Up @@ -75,6 +77,7 @@ export const GlassCard = ({
>
{body}
</Text>
{children}
</Box>
</>
)
Expand Down
7 changes: 5 additions & 2 deletions src/pages/landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ import {
} from '@chakra-ui/react'
import { GlassCard } from '../components/Layout/GlassCard'
import { Lifebuoy, PalmUp, Blocks } from '../components/LandingLogos'
import { Footer } from '../components/Layout/Footer'
import { Yield } from '../components/Stability/Yield'


export default function Landing() {
return (
Expand Down Expand Up @@ -64,7 +65,9 @@ export default function Landing() {
title='Stake'
header='Stake LQTY'
body='Earn LUSD & ETH'
/>
>
<Yield />
</GlassCard>
</WrapItem>
</Wrap>
</Container>
Expand Down