Skip to content

Commit

Permalink
Feat: add zk apps UI
Browse files Browse the repository at this point in the history
  • Loading branch information
dannaward committed May 20, 2023
1 parent 1cda605 commit 2399640
Show file tree
Hide file tree
Showing 7 changed files with 110 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/zk-face-webview.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions src/components/ZkApp.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import React from 'react';
import styled from "styled-components";
import { colors } from "@/constant/colors";

interface AppProps {
name: string;
}

function ZkApp({ name }: AppProps) {
return (
<Wrap>
<AppTitle>{name}</AppTitle>
</Wrap>
);
}

export default ZkApp;

const Wrap = styled.div`
display: flex;
justify-content: center;
align-items: center;
background-color: ${colors.deepBlue};
height: 130px;
border-radius: 30px;
`;

const AppTitle = styled.text`
font-size: 27px;
color: ${colors.white};
`;
40 changes: 40 additions & 0 deletions src/pages/zk-apps.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
import React from 'react';
import {Container} from "@/components";
import { colors } from "@/constant/colors";
import styled from "styled-components";
import ZkApp from "@/components/ZkApp";
import {GlobalStyle} from "@/styles/global.style";

function ZkApps() {
return (
<Container>
<GlobalStyle />
<RegisterDescription>Register your ID on our wallet with top-tier<br/>privacy protection solution!</RegisterDescription>
<AppsWrap>
<ZkApp name={"ZKSwap"} />
<ZkApp name={"ZKSwap"} />
<ZkApp name={"ZKSwap"} />
<ZkApp name={"ZKSwap"} />
</AppsWrap>
</Container>
);
}

export default ZkApps;

const RegisterDescription = styled.p`
font-size: 12px;
line-height: 18px;
color: ${colors.white};
padding-top: 100px;
margin: 0;
`;

const AppsWrap = styled.div`
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 30px;
margin: 100px 24px 0 24px;
`;

0 comments on commit 2399640

Please sign in to comment.