Skip to content

Commit

Permalink
fix: theme color
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzhenbin committed Sep 5, 2023
1 parent 6c33b90 commit d8c7678
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .env
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
SECRET_WORDS="test test test test test test test test test test test junk"
PASSWORD=TestMetaMask
NETWORK_NAME=MXC
GRAPH_URL=http://mxc-graph-node.mxc.com:8000/subgraphs/name/mnsdomains/mns
GRAPH_URL=http://mxc-graph.mxc.com:8000/subgraphs/name/mnsdomains/mns

DATA_FOLDER=./data

NEXT_PUBLIC_ALCHEMY_KEY=sSpYuHmhlpuU7RVXq-IIdCdz4IuKF-gM

BLOCK_HEIGHT=17952336
SUBGRAPH_ID=QmXxAE7Urtv6TPa8o8XmPwLVQNbH6r35hRKHP63udTxTNa
SUBGRAPH_ID=QmQ8PKwc5a4Zv86TPPLvN9n7y3VAASiH5ptkffJHZm2pU1
LOCAL_SUBGRAPH_ID=QmSUnR4AUTQ8CuGH2fK7tFTSSfYGe8BUz6EeBRNavXbE1H
EPOCH_TIME=1660180306
NETWORK=mxc_wannsee
NEXT_PUBLIC_NETWORK_CHAINID=5167003
NETWORK=mxc
NEXT_PUBLIC_NETWORK_CHAINID=18686
ARCHIVE_URL=https://storage.googleapis.com/ens-manager-build-data

TRANSACTION_WAIT_TIME=5000
STABLE_MODE=500
NEXT_PUBLIC_PROVIDER=https://wannsee-rpc.mxc.com
NEXT_PUBLIC_DEPLOYMENT_ADDRESSES={"ENSRegistry":"0x4E7984fF74569a270765EE67792386cBA77D1b01","PublicResolver":"0x438b261bEb8D3C500153DD17588E6feC36535312","BaseRegistrarImplementation":"0x39c47d083364b4A23d085c7945Fac9d42457d8C7","NameWrapper":"0x2246EdAd0bc9212Bae82D43974619480A9D1f387","ETHRegistrarController":"0xD9EeC15002fF7467a6841EDF6ea2D1048BaBc7c4","BulkRenewal":"0xD879004149706a6156De08e9a571Bfa5Ac6eDa84","DNSRegister":"0xaCFb160C4356a89c0096aAd292c7300D5949F384","ReverseRegistrar":"0x3453c56D41A18147dcb4a92b0B08210F90740a87","UniversalResolver":"0x4dc508720f701882c0bBB2fa67aA5c6bfBcC9c3e","Multicall":"0x98b114269C2635ff2cB03F0526feb246d1082B4C"}
NEXT_PUBLIC_GRAPH_URI=https://mxc-graph-node.mxc.com/subgraphs/name/mnsdomains/mns
NEXT_PUBLIC_PROVIDER=https://rpc.mxc.com
NEXT_PUBLIC_DEPLOYMENT_ADDRESSES={"ENSRegistry":"0xd241E9681B22Ae47e94c523d25CDdC1a4960cDC3","PublicResolver":"0x5325640Cc17A06a409d4f4b6af02A0120528c67E","BaseRegistrarImplementation":"0xCDFd5D9cEf780f751e5C653bFC9dFf0A4E55c39C","NameWrapper":"0xD1B70f92b310c3Fa95b83dB436E00a53e1f1f5d5","ETHRegistrarController":"0x8cFa2b92fcD0AEB6bD4EA056425C64f8638474d7","BulkRenewal":"0x032379fd3C71Fc100722CC98BC97803B7E01eAE6","DNSRegister":"0x74BF2E1290e24B99fCD244c34Da665Fd7FE17E08","ReverseRegistrar":"0x18c02bA5D8391b3CB49586C94454E44102252cFA","UniversalResolver":"0x7F0ca8F3bBC08eb712108Ae47D5A2c7D47075d6B","Multicall":"0xfA9eBcEd32BaB3EA062f9853ACA66cC9B666fBB9"}
NEXT_PUBLIC_GRAPH_URI=https://mxc-graph.mxc.com/subgraphs/name/mnsdomains/mns
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const Label = styled.label<{ $highlighted?: boolean }>(
font-size: ${$highlighted ? theme.fontSizes.headingTwo : theme.fontSizes.large};
line-height: ${theme.space['11']};
text-align: center;
color: ##6300ff;
color: #6300ff;
pointer-events: none;
opacity: 1;
transition: opacity 150ms ease-in-out;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const calcPercent = (percent: number, order: number) => {
const Bar = styled.div<{ $highlightPercent: number }>(
({ theme, $highlightPercent }) => css`
--bar-width: calc(${$highlightPercent}% - ${theme.space['1']});
background: linear-gradient(90deg, #6300ff var(--bar-width), red var(--bar-width));
background: linear-gradient(90deg, #6300ff var(--bar-width), #b63d29 var(--bar-width));
width: 100%;
height: ${theme.space['4']};
border-radius: ${theme.radii.medium};
Expand Down Expand Up @@ -135,7 +135,7 @@ export const RegistrationTimeComparisonBanner = ({ message, rentFee, transaction
const twentyRounded = calcPercent(twenty.gas, 3)

return (
<Helper type="info">
<Helper className='helpbox' type="info">
<InnerContainer>
<div>{message}</div>
<Bar $highlightPercent={twentyRounded} />
Expand Down
6 changes: 6 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
@import url('/fonts/fonts.css');


.helpbox {
border: 1px solid #f43178 !important;
background-color: rgba(244,49,120,.08) !important;
}

0 comments on commit d8c7678

Please sign in to comment.