Skip to content

Commit

Permalink
Merge pull request #8 from glitch-hackathon-2023/develop
Browse files Browse the repository at this point in the history
[feat] success css 수정
  • Loading branch information
jejemerong authored May 20, 2023
2 parents 3652147 + d1af1b7 commit b4eb636
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export default function Home() {
<BtnDescription>{WalletTitle}</BtnDescription>
<br />
<BtnContainer>
<CtaLargeBtn key={"connect"} title={"Import your wallet"} />
<CtaLargeBtn key={"create"} title={"Create a new wallet"} />
<CtaLargeBtn key={"connect"} title={"Import your wallet"} />
</BtnContainer>
</Container>
</>
Expand Down
30 changes: 30 additions & 0 deletions src/pages/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { Container, Header, CtaSmallBtn, Footer } from "@/components";
import { colors } from "@/constant/colors";
import { GlobalStyle } from "@/styles/global.style";
import { useRouter } from "next/router";
import { useState } from "react";
import styled from "styled-components";

const Pending = () => {
return (
<Container>
<GlobalStyle />
{/* <Header /> */}
<ConfirmTitle>{"Loading..."}</ConfirmTitle>
<br />
<ConfirmDescription>{"setting a wallet.."}</ConfirmDescription>
</Container>
);
};

export default Pending;

const ConfirmTitle = styled.text`
font-size: 70px;
color: ${colors.white};
`;

const ConfirmDescription = styled.text`
font-size: 18px;
color: ${colors.white};
`;
26 changes: 15 additions & 11 deletions src/pages/success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ const Success = () => {
const route = useRouter();
console.log("route", route.query.matic);
console.log("route", route.query.eth);
const [txHash, setTxHash] = useState("0xjjewidjhwij");
const [zkProof, setZkProof] = useState("00011111000000111");
const [txHash, setTxHash] = useState("0x582f468e73e4f33cks3ml43882s6e851a4");
const [zkProof, setZkProof] = useState(
"011010101010000000000010001101010101010010101010001000001022000200101000101010"
);

return (
<Container>
Expand All @@ -26,14 +28,14 @@ const Success = () => {

<AmountContainer>
<p>
<AiOutlineFileDone size={60} />
<AiOutlineFileDone size={30} />
</p>
<FromContainer>{"TxHash"}</FromContainer>
<FromContainer>{txHash}</FromContainer>
<ToContainer>{"TxHash"}</ToContainer>
<ToContainer>{txHash}</ToContainer>
</AmountContainer>
<AmountContainer>
<p>
<MdVerifiedUser size={60} />
<MdVerifiedUser size={30} />
</p>
<FromContainer>{"ZkProof"}</FromContainer>
<FromContainer>{zkProof}</FromContainer>
Expand All @@ -58,15 +60,18 @@ const ConfirmDescription = styled.div`
margin-bottom: 20px;
`;

const FromContainer = styled.text`
padding: 0px 15px 0px 15px;
const FromContainer = styled.div`
padding: 5px;
word-break: break-all;
`;
const ToContainer = styled.div`
word-break: break-all;
`;
const ToContainer = styled.div``;

const AmountContainer = styled.div`
margin: 0 auto;
width: 332px;
height: 96px;
height: auto;
border-radius: 15px;
background-color: ${colors.white};
`;
Expand All @@ -75,7 +80,6 @@ const TotalFeeContainer = styled.div`
margin: 0 auto;
margin-top: 20px;
width: 332px;
height: 96px;
border-radius: 15px;
background-color: ${colors.white};
`;
Expand Down

0 comments on commit b4eb636

Please sign in to comment.