Skip to content

Commit 6684af3

Browse files
committed
feat(web): claimed staking rewards popup, modularized
1 parent bad135f commit 6684af3

File tree

9 files changed

+196
-203
lines changed

9 files changed

+196
-203
lines changed

web/src/components/Popup/ClaimStakingRewards.tsx

Lines changed: 0 additions & 203 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from "react";
2+
import styled from "styled-components";
3+
4+
const StyledText = styled.text`
5+
font-size: calc(20px + (24 - 20) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
6+
font-weight: 600;
7+
color: ${({ theme }) => theme.primaryText};
8+
margin-top: 16px;
9+
`;
10+
11+
const ClaimedText: React.FC = () => {
12+
return <StyledText>🎉 Claimed! 🎉</StyledText>;
13+
};
14+
export default ClaimedText;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import React from "react";
2+
import styled from "styled-components";
3+
import Icon from "tsx:svgs/icons/close.svg";
4+
5+
const StyledIcon = styled(Icon)`
6+
position: absolute;
7+
width: 18px;
8+
height: 18px;
9+
align-self: flex-end;
10+
cursor: pointer;
11+
12+
path {
13+
fill: ${({ theme }) => theme.stroke};
14+
}
15+
`;
16+
17+
interface IClose {
18+
togglePopup: () => void;
19+
}
20+
21+
const Close: React.FC<IClose> = ({ togglePopup }) => {
22+
return <StyledIcon onClick={togglePopup}>CloseIcon</StyledIcon>;
23+
};
24+
export default Close;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from "react";
2+
import styled from "styled-components";
3+
4+
const StyledHr = styled.hr`
5+
display: flex;
6+
border: none;
7+
height: 0.5px;
8+
background-color: ${({ theme }) => theme.stroke};
9+
margin: calc(8px + (18 - 8) * (min(max(100vw, 375px), 1250px) - 375px) / 875) 0px;
10+
width: 100%;
11+
`;
12+
13+
const Divider: React.FC = () => {
14+
return <StyledHr />;
15+
};
16+
export default Divider;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from "react";
2+
import styled from "styled-components";
3+
import Icon from "svgs/icons/kleros.svg";
4+
5+
const StyledIcon = styled(Icon)`
6+
path {
7+
fill: ${({ theme }) => theme.secondaryPurple};
8+
}
9+
width: calc(120px + (160 - 120) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
10+
height: calc(132px + (140 - 132) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
11+
`;
12+
13+
const KlerosIcon: React.FC = () => {
14+
return <StyledIcon />;
15+
};
16+
export default KlerosIcon;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from "react";
2+
import styled from "styled-components";
3+
4+
const StyledText = styled.text`
5+
font-size: calc(40px + (64 - 40) * (min(max(100vw, 375px), 1250px) - 375px) / 875);
6+
font-weight: 600;
7+
color: ${({ theme }) => theme.secondaryPurple};
8+
margin-top: 16px;
9+
`;
10+
11+
const QuantityClaimed: React.FC = () => {
12+
return <StyledText>1,000 PNK</StyledText>;
13+
};
14+
export default QuantityClaimed;
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import React from "react";
2+
import styled from "styled-components";
3+
import RightArrow from "tsx:svgs/icons/arrow.svg";
4+
5+
const StyledLink = styled.a`
6+
display: flex;
7+
color: ${({ theme }) => theme.primaryBlue};
8+
font-size: 16px;
9+
margin-top: 8px;
10+
align-items: center;
11+
gap: 8px;
12+
13+
&:hover {
14+
text-decoration: underline;
15+
}
16+
`;
17+
18+
const StyledRightArrow = styled(RightArrow)`
19+
path {
20+
fill: ${({ theme }) => theme.primaryBlue};
21+
}
22+
`;
23+
24+
const ReadMore: React.FC = () => {
25+
return (
26+
<StyledLink
27+
href="https://blog.kleros.io/the-launch-of-the-kleros-juror-incentive-program/"
28+
target="_blank"
29+
rel="noreferrer"
30+
>
31+
<text>Read more about the Juror Incentive Program</text>
32+
<StyledRightArrow />
33+
</StyledLink>
34+
);
35+
};
36+
export default ReadMore;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from "react";
2+
import styled from "styled-components";
3+
4+
const StyledText = styled.text`
5+
font-size: 16px;
6+
color: ${({ theme }) => theme.primaryText};
7+
margin-top: 16px;
8+
`;
9+
10+
const ThanksText: React.FC = () => {
11+
return <StyledText>Thank you for being part of the Kleros community.</StyledText>;
12+
};
13+
export default ThanksText;

0 commit comments

Comments
 (0)