-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add zksbt banner * fix font * change contract config --------- Co-authored-by: alpers <alpers@163.com>
- Loading branch information
1 parent
6c56b36
commit 7aa827d
Showing
9 changed files
with
101 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2021-2023 zcloak authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import React from 'react'; | ||
|
||
import { Box, Typography } from '@credential/react-components'; | ||
|
||
const SigItem: React.FC<{ value?: string; label?: string; mt?: number; mb?: number }> = ({ label, mb, mt, value }) => { | ||
return ( | ||
<Box mb={mb} mt={mt}> | ||
<Typography color='#8F95B2' fontSize={14} mb={1}> | ||
{label} | ||
</Typography> | ||
|
||
<Box | ||
sx={{ | ||
width: '100%', | ||
paddingX: 2.25, | ||
paddingY: 1.75, | ||
bgcolor: '#F7F8FA', | ||
borderRadius: '5px', | ||
wordWrap: 'break-word' | ||
}} | ||
> | ||
<Typography fontSize={14}>{value}</Typography> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default React.memo(SigItem); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// Copyright 2021-2023 zcloak authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
import { Box, Typography } from '@mui/material'; | ||
import React from 'react'; | ||
|
||
export const Banner: React.FC<{ onClick?: () => void }> = ({ onClick }) => { | ||
const isClick = Boolean(onClick); | ||
|
||
return ( | ||
<Box | ||
onClick={onClick} | ||
pt={isClick ? 1 : 3} | ||
sx={{ | ||
width: '100%', | ||
height: isClick ? 200 : 400, | ||
background: 'url(/images/png_fingerprint.webp) no-repeat, url(/images/bac_banner.webp) no-repeat', | ||
backgroundPosition: 'center 70%', | ||
backgroundSize: 'contain,cover', | ||
':hover': { | ||
cursor: isClick ? 'pointer' : 'unset' | ||
} | ||
}} | ||
> | ||
<Typography | ||
fontWeight={800} | ||
sx={{ | ||
color: '#0042F1', | ||
fontSize: isClick ? '30px' : '54px', | ||
span: { | ||
color: '#fff' | ||
} | ||
}} | ||
textAlign='center' | ||
> | ||
zkKYC <span>Event</span> | ||
</Typography> | ||
<Typography | ||
color='#fff' | ||
mt={isClick ? 12 : 30} | ||
sx={{ | ||
span: { | ||
fontWeight: 600 | ||
} | ||
}} | ||
textAlign='center' | ||
> | ||
Supported by <span>Chaintool, zCloak Network</span> | ||
</Typography> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default React.memo(Banner); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters