-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding styles to display proof and connected identity
- Loading branch information
isk
committed
Oct 17, 2023
1 parent
721c671
commit 51501e5
Showing
8 changed files
with
165 additions
and
22 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
34 changes: 34 additions & 0 deletions
34
packages/demo/src/components/ConnectedIdentity/ConnectedIdentity.scss
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,34 @@ | ||
@import "../../utils/variables"; | ||
|
||
// TODO: get rid of these styles | ||
.identity-row { | ||
&__input-field { | ||
background-color: transparent; | ||
|
||
input { | ||
border: 0; | ||
border-bottom: 2px solid $primary-green; | ||
outline: none; | ||
transition: 0.2s ease-in-out; | ||
box-sizing: border-box; | ||
background-color: transparent; | ||
|
||
color: inherit; | ||
font-family: inherit; | ||
font-weight: inherit; | ||
font-size: inherit; | ||
line-height: inherit; | ||
padding: inherit; | ||
width: 100%; | ||
} | ||
} | ||
|
||
&__menu-icon { | ||
font-size: 0.8125rem !important; | ||
color: $gray-600; | ||
|
||
&:hover { | ||
color: $gray-300; | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
import { ISemaphoreFullProof, IRLNFullProof, IMerkleProof } from "@cryptkeeperzk/types"; | ||
import Box from "@mui/material/Box"; | ||
import Typography from "@mui/material/Typography"; | ||
|
||
interface IDisplayProofProps { | ||
proof?: ISemaphoreFullProof | IRLNFullProof | IMerkleProof; | ||
} | ||
|
||
export const DisplayProof = ({ proof = undefined }: IDisplayProofProps): JSX.Element => ( | ||
<div> | ||
<h2>Generated proof output:</h2> | ||
<Box | ||
className="popup-proof" | ||
sx={{ p: 3, display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center" }} | ||
> | ||
<Typography variant="h6">Generated proof output:</Typography> | ||
|
||
<div> | ||
<pre data-testid="proof-json">{JSON.stringify(proof, null, 2)}</pre> | ||
</div> | ||
</div> | ||
<pre data-testid="proof-json">{JSON.stringify(proof, null, 2)}</pre> | ||
</Box> | ||
); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.