diff --git a/src/pages/rewards/DYDXBalancePanel.tsx b/src/pages/rewards/DYDXBalancePanel.tsx index 5ebf66b..ebaf31a 100644 --- a/src/pages/rewards/DYDXBalancePanel.tsx +++ b/src/pages/rewards/DYDXBalancePanel.tsx @@ -32,7 +32,7 @@ export const DYDXBalancePanel = () => { const { nativeTokenBalance } = useAccountBalance(); return ( - @@ -111,16 +111,12 @@ export const DYDXBalancePanel = () => { ]} /> - + ); }; const Styled: Record = {}; -Styled.TransfersCard = styled(Panel)` - width: 21.25rem; -`; - Styled.Header = styled.div` ${layoutMixins.spacedRow} padding: 1.25rem 1.5rem 0.5rem; diff --git a/src/pages/rewards/RewardsPage.tsx b/src/pages/rewards/RewardsPage.tsx index f760b98..a8cede9 100644 --- a/src/pages/rewards/RewardsPage.tsx +++ b/src/pages/rewards/RewardsPage.tsx @@ -1,17 +1,81 @@ import styled, { AnyStyledComponent } from 'styled-components'; +import { STRING_KEYS } from '@/constants/localization'; +import { ButtonAction, ButtonSize } from '@/constants/buttons'; + +import { useAccounts, useBreakpoints, useStringGetter } from '@/hooks'; + import { layoutMixins } from '@/styles/layoutMixins'; +import { Panel } from '@/components/Panel'; +import { IconName } from '@/components/Icon'; +import { IconButton } from '@/components/IconButton'; + import { DYDXBalancePanel } from './DYDXBalancePanel'; -export const RewardsPage = () => ( - - - -); +export const RewardsPage = () => { + const stringGetter = useStringGetter(); + + return ( + + + {stringGetter({ key: STRING_KEYS.GOVERNANCE })}} + > + +
+ {stringGetter({ key: STRING_KEYS.GOVERNANCE_DESCRIPTION })} +
+ +
+
+ {stringGetter({ key: STRING_KEYS.STAKING })}} + > + +
+ {stringGetter({ key: STRING_KEYS.STAKING_DESCRIPTION })} +
+ +
+
+ + + +
+
+ ); +}; const Styled: Record = {}; Styled.Page = styled.div` - ${layoutMixins.centered} + ${layoutMixins.contentContainerPage} `; + +Styled.Row = styled.div` + ${layoutMixins.spacedRow} + gap: 1rem; +`; + +Styled.PanelRow = styled(Styled.Row)` + gap: 1.5rem; + max-width: min(100vw, var(--content-max-width)); + align-items: flex-start; +`; + +Styled.BalancePanelContainer = styled.div` + max-width: 21.25rem; +`; + +Styled.Title = styled.h3` + ${layoutMixins.inlineRow} + padding: 1.25rem 1.5rem 0.5rem; + + font: var(--font-medium-book); + color: var(--color-text-2); +`; + +Styled.Panel = styled(Panel)` + padding: 0 1.5rem 1rem; +`