Skip to content

Commit

Permalink
#2 Add current wallet info component
Browse files Browse the repository at this point in the history
  • Loading branch information
kimjimin4471 committed Jul 3, 2022
1 parent 39cf93f commit b8082d9
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions views/wallet/CurrentWalletInfo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import styled from "@emotion/styled";
import React, { FC } from "react";

const CurrentWalletInfo: FC = () => (
<Container>
<CurrentInfo>
<CurrentInfoTitle>보유 IQ</CurrentInfoTitle>
<CurrentInfoValue>99999 IQ</CurrentInfoValue>
</CurrentInfo>
<Line />
<CurrentInfo>
<CurrentInfoTitle>오늘 활동점수</CurrentInfoTitle>
<CurrentInfoValue>99</CurrentInfoValue>
</CurrentInfo>
</Container>
);

export default CurrentWalletInfo;

const Container = styled.div`
width: calc(100% - 40px);
height: 74px;
position: absolute;
bottom: 0px;
background-color: ${({ theme }) => theme.colors.grayscale.scale20};
display: flex;
justify-content: space-between;
align-items: center;
transform: translateY(50%);
border-radius: 11px;
`;

const CurrentInfo = styled.div`
width: 50%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
`;

const CurrentInfoTitle = styled.p`
font: ${({ theme }) => theme.fonts.description1};
color: ${({ theme }) => theme.colors.grayscale.scale70};
`;

const CurrentInfoValue = styled.p`
margin-top: 5px;
font: ${({ theme }) => theme.fonts.body2};
color: ${({ theme }) => theme.colors.grayscale.scale100};
`;

const Line = styled.div`
width: 1px;
height: 26px;
background-color: ${({ theme }) => theme.colors.grayscale.scale30};
`;

0 comments on commit b8082d9

Please sign in to comment.