-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adds on-brand design to private token project (#2355)
<img width="1624" alt="Screenshot 2023-09-18 at 03 56 19" src="https://github.com/AztecProtocol/aztec-packages/assets/11148144/54975ff6-ba7e-4d72-bb36-5c0a26886811"> Please note, this needs further testing. # Checklist: Remove the checklist to signal you've completed it. Enable auto-merge if the PR is ready to merge. - [ ] If the pull request requires a cryptography review (e.g. cryptographic algorithm implementations) I have added the 'crypto' tag. - [ ] I have reviewed my diff in github, line by line and removed unexpected formatting changes, testing logs, or commented-out code. - [ ] Every change is related to the PR description. - [ ] I have [linked](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue) this pull request to relevant issues (if any exist). --------- Co-authored-by: Dan Lee <[email protected]> Co-authored-by: Dan Lee <[email protected]>
- Loading branch information
1 parent
a3c6bcf
commit 072e313
Showing
36 changed files
with
5,000 additions
and
684 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
const tailwindcss = require('tailwindcss'); | ||
const autoprefixer = require('autoprefixer'); | ||
|
||
module.exports = { | ||
plugins: [tailwindcss('./tailwind.config.cjs'), autoprefixer], | ||
plugins: [autoprefixer], | ||
}; |
43 changes: 0 additions & 43 deletions
43
yarn-project/boxes/private-token/src/app/components/banner.tsx
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
yarn-project/boxes/private-token/src/app/components/button.tsx
This file was deleted.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
yarn-project/boxes/private-token/src/app/components/contract_function_form.module.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,67 @@ | ||
.input { | ||
border: none; | ||
outline-width: 0; | ||
outline-color: rgba(0, 0, 0, 0); | ||
padding: 2px 20px 0 20px; | ||
width: 100%; | ||
height: 45px; | ||
color: #000; | ||
border: 1px solid rgba(0, 0, 0, 0); | ||
font-size: 16px; | ||
text-align: left; | ||
font-weight: 400; | ||
border-radius: 10px; | ||
text-align: left; | ||
text-overflow: ellipsis; | ||
transition: box-shadow .2s; | ||
box-shadow: 0px 4px 10px rgba(0, 0, 0, .1); | ||
background-color: white; | ||
-webkit-appearance: none; | ||
|
||
|
||
&:disabled { | ||
color: #4a4a4a; | ||
background-color: rgba(239, 239, 239, 0.3); | ||
background: radial-gradient(rgba(239, 239, 239, 0.3), rgba(239, 239, 239, 0.3)); | ||
-webkit-text-fill-color: #4a4a4a; | ||
cursor: not-allowed; | ||
} | ||
} | ||
|
||
.label { | ||
font-weight: 450; | ||
font-size: 18px; | ||
display: flex; | ||
width: 100%; | ||
flex-direction: column; | ||
text-align: left; | ||
margin-bottom: 15px; | ||
justify-content: space-between; | ||
} | ||
|
||
.inputWrapper { | ||
width: 100%; | ||
display: flex; | ||
gap: 15px; | ||
} | ||
|
||
.field { | ||
display: flex; | ||
justify-content: start; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
} | ||
|
||
.content { | ||
display: flex; | ||
justify-content: space-between; | ||
flex-direction: column; | ||
margin: 30px; | ||
width: 450px; | ||
gap: 30px; | ||
} | ||
|
||
.actionButton { | ||
width: 100%; | ||
align-self: center; | ||
} |
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
6 changes: 6 additions & 0 deletions
6
yarn-project/boxes/private-token/src/app/components/copy.module.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,6 @@ | ||
.copy { | ||
cursor: pointer; | ||
width: 35px; | ||
height: 25px; | ||
padding: 2px 8px; | ||
} |
28 changes: 28 additions & 0 deletions
28
yarn-project/boxes/private-token/src/app/components/copy.tsx
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,28 @@ | ||
import { useState } from 'react'; | ||
import styles from './copy.module.scss'; | ||
|
||
export function Copy({ value }: { value: string }) { | ||
const [copied, setCopied] = useState(false); | ||
|
||
return ( | ||
<img | ||
onClick={() => { | ||
navigator.clipboard | ||
.writeText(value) | ||
.then(() => { | ||
setCopied(true); | ||
setTimeout(() => { | ||
setCopied(false); | ||
}, 3e3); | ||
}) | ||
.catch(() => { | ||
// eslint-disable-next-line no-console | ||
console.error('Couldnt copy address'); | ||
}); | ||
}} | ||
src={copied ? 'check.svg' : 'copy.svg'} | ||
alt="Copy" | ||
className={styles.copy} | ||
/> | ||
); | ||
} |
68 changes: 68 additions & 0 deletions
68
yarn-project/boxes/private-token/src/app/components/dropdown.module.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,68 @@ | ||
.dropdownWrapper { | ||
position: absolute; | ||
top: 60px; | ||
right: 0px; | ||
border-radius: 10px; | ||
display: flex; | ||
overflow: hidden; | ||
flex-direction: column; | ||
gap: 1px; | ||
border: 1px solid #ebeaea; | ||
background-color: #ebeaea; | ||
z-index: 1; | ||
} | ||
|
||
.dropdownOptionBackground { | ||
background-color: white; | ||
} | ||
|
||
.dropdownOption { | ||
font-size: 14px; | ||
padding: 10px 25px; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
font-weight: 600; | ||
justify-content: space-between; | ||
letter-spacing: 0.5px; | ||
display: flex; | ||
} | ||
|
||
.singleOption { | ||
text-align: center; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.dropdownOption.disabled { | ||
background-image: initial; | ||
cursor: default; | ||
background-color: #c4c4c4; | ||
} | ||
|
||
.dropdownOptionBackground:hover { | ||
background-color: #ebeaea; | ||
} | ||
|
||
.dropdownOptionBackground.disabled:hover { | ||
background-color: white; | ||
} | ||
|
||
.sublabel { | ||
text-align: right; | ||
} | ||
|
||
.sublabels { | ||
display: flex; | ||
flex-direction: row; | ||
font-weight: 450; | ||
} | ||
|
||
.feeOption { | ||
gap: 5px; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.label { | ||
color: #2f1f49; | ||
} |
Oops, something went wrong.