-
Notifications
You must be signed in to change notification settings - Fork 299
chore(developer-hub): reward calculator and image import in ois #3057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
d388137
reward calculator
nidhi-singh02 032fae3
design enhance
nidhi-singh02 14c140f
use image import instead of url
nidhi-singh02 6372145
use theme breakpoint and other comments
nidhi-singh02 32a29c2
define font family, remove useeffects
nidhi-singh02 16903fd
formating
nidhi-singh02 84350cc
use tailwind font
nidhi-singh02 742bdf8
Revert "use tailwind font"
nidhi-singh02 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains hidden or 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 hidden or 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
86 changes: 86 additions & 0 deletions
86
apps/developer-hub/src/components/RewardSimulator/index.module.scss
This file contains hidden or 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,86 @@ | ||
@use "@pythnetwork/component-library/theme"; | ||
|
||
.card { | ||
margin-top: theme.spacing(6); | ||
} | ||
|
||
.inputGrid { | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
gap: theme.spacing(6); | ||
padding: theme.spacing(4); | ||
|
||
@include theme.breakpoint("sm") { | ||
grid-template-columns: 1fr 1fr; | ||
} | ||
} | ||
|
||
.inputGroup { | ||
display: flex; | ||
flex-direction: column; | ||
gap: theme.spacing(2); | ||
} | ||
|
||
.input { | ||
padding: theme.spacing(2) theme.spacing(3); | ||
border: 1px solid theme.color("border"); | ||
border-radius: theme.border-radius("lg"); | ||
background-color: theme.color("background", "primary"); | ||
color: theme.color("foreground"); | ||
transition: all 0.15s ease-in-out; | ||
|
||
&:focus { | ||
outline: 2px solid theme.color("focus"); | ||
outline-offset: -2px; | ||
border-color: transparent; | ||
} | ||
} | ||
|
||
.resultsSection { | ||
border-top: 1px solid theme.color("border"); | ||
margin-top: theme.spacing(6); | ||
padding: theme.spacing(6) theme.spacing(4) 0; | ||
} | ||
|
||
.resultsGrid { | ||
display: grid; | ||
grid-template-columns: 1fr; | ||
gap: theme.spacing(6); | ||
|
||
@include theme.breakpoint("sm") { | ||
grid-template-columns: 1fr 1fr; | ||
} | ||
} | ||
|
||
.resultGroup { | ||
display: flex; | ||
flex-direction: column; | ||
gap: theme.spacing(3); | ||
} | ||
|
||
.resultTitle { | ||
font-size: theme.font-size("lg"); | ||
font-weight: theme.font-weight("semibold"); | ||
color: theme.color("foreground"); | ||
} | ||
|
||
.resultList { | ||
display: flex; | ||
flex-direction: column; | ||
gap: theme.spacing(1); | ||
margin: 0; | ||
} | ||
|
||
.resultTerm { | ||
font-size: theme.font-size("sm"); | ||
color: theme.color("muted"); | ||
font-weight: theme.font-weight("medium"); | ||
margin: 0; | ||
} | ||
|
||
.resultValue { | ||
font-family: theme.font-family("monospace"); | ||
nidhi-singh02 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
font-size: theme.font-size("sm"); | ||
margin: 0; | ||
margin-bottom: theme.spacing(2); | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using image import and moved the images from the public folder inside the folder where they are used.