-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from mathanraj0601/feat/Add-Wallet
Feat/add wallet
- Loading branch information
Showing
13 changed files
with
129 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,13 @@ | ||
.conditions { | ||
display: flex; | ||
align-items: flex-start; | ||
gap: 0.5rem; | ||
padding: 0.25rem; | ||
} | ||
|
||
.conditions > p { | ||
font-weight: 500; | ||
color: var(--text-900); | ||
text-wrap: wrap; | ||
line-break: loose; | ||
} |
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,36 @@ | ||
import { Checkbox } from "@mui/material"; | ||
import Theme from "../../Utility/Theme"; | ||
import { useState } from "react"; | ||
import "./Conditions.css"; | ||
|
||
interface ConditionsProps { | ||
value: string; | ||
onChange: any; | ||
} | ||
|
||
function Conditions({ value, onChange }: ConditionsProps) { | ||
const [checked, setChecked] = useState(true); | ||
|
||
const handleChange = () => { | ||
setChecked(!checked); | ||
onChange(checked); | ||
}; | ||
return ( | ||
<div className="conditions"> | ||
<Checkbox | ||
sx={{ | ||
color: Theme["primary500"], | ||
"&.Mui-checked": { | ||
color: Theme["primary500"], | ||
}, | ||
padding: 0, | ||
}} | ||
checked={checked} | ||
onChange={handleChange} | ||
/> | ||
<p>{value}</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default Conditions; |
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,16 @@ | ||
.profile { | ||
box-shadow: var(--text-900) 0px 1px 1px, var(--text-900) 0px 0px 1px 1px; | ||
cursor: pointer; | ||
padding: 0.3rem 0.25rem; | ||
border-radius: 20%; | ||
user-select: none; | ||
} | ||
|
||
.profile-text { | ||
font-size: 1rem; | ||
font-weight: 800; | ||
} | ||
|
||
.profile:hover { | ||
background-color: var(--primary-400); | ||
} |
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,18 @@ | ||
import "./Profile.css"; | ||
|
||
interface ProfileProps { | ||
name: string; | ||
} | ||
|
||
function Profile({ name }: ProfileProps) { | ||
const IconText = ( | ||
name.split(" ")[0][0] + name.split(" ")[1][0] | ||
).toUpperCase(); | ||
return ( | ||
<div className="profile"> | ||
<span className="profile-text">{IconText}</span> | ||
</div> | ||
); | ||
} | ||
|
||
export default Profile; |
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,17 +1,22 @@ | ||
.secret-phrase-grid-container { | ||
display: flex; | ||
flex-wrap: wrap; | ||
display: grid; | ||
gap: 1rem; | ||
grid-template-columns: repeat(4, 1fr); | ||
/* max-width: calc(800px + 1rem); */ | ||
/* min-width: 300px; */ | ||
justify-content: center; | ||
align-items: center; | ||
padding-block: 1.6rem; | ||
border-radius: 5px; | ||
padding: 1rem; | ||
width: 100%; | ||
} | ||
|
||
.secret-phrase-grid-container > .secret-phrase-input { | ||
width: 20%; | ||
min-width: 100px; | ||
max-width: 200px; | ||
@media screen and (max-width: 900px) { | ||
.secret-phrase-grid-container { | ||
grid-template-columns: repeat(2, 1fr); | ||
} | ||
} | ||
|
||
@media screen and (max-width: 500px) { | ||
.secret-phrase-grid-container { | ||
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); | ||
} | ||
} |
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
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