From 1a3fdda382625440a0f3ef1ca2bde9d66d6bd026 Mon Sep 17 00:00:00 2001 From: keyan Date: Sun, 5 Dec 2021 11:37:55 -0600 Subject: [PATCH] new bolt --- api/resolvers/item.js | 17 +- api/typeDefs/item.js | 2 +- components/comment.module.css | 3 +- components/header.js | 33 +- components/header.module.css | 3 +- components/item.module.css | 7 +- components/notifications.js | 2 +- components/price.js | 17 +- components/upvote.js | 47 ++- components/upvote.module.css | 32 +- fragments/comments.js | 2 +- fragments/items.js | 2 +- lib/rainbow.js | 736 ++++++++++++++++++++++++++++++++++ styles/globals.scss | 4 + svgs/bitcoin.svg | 3 + svgs/bolt.svg | 3 + svgs/upbolt.svg | 5 + 17 files changed, 855 insertions(+), 63 deletions(-) create mode 100644 lib/rainbow.js create mode 100644 svgs/bitcoin.svg create mode 100644 svgs/bolt.svg create mode 100644 svgs/upbolt.svg diff --git a/api/resolvers/item.js b/api/resolvers/item.js index 0aa007d9..b8f9e197 100644 --- a/api/resolvers/item.js +++ b/api/resolvers/item.js @@ -374,10 +374,7 @@ export default { return sats || 0 }, - mine: async (item, args, { me, models }) => { - return me?.id === item.userId - }, - meBoost: async (item, args, { me, models }) => { + meSats: async (item, args, { me, models }) => { if (!me) return 0 const { sum: { sats } } = await models.itemAct.aggregate({ @@ -387,12 +384,22 @@ export default { where: { itemId: item.id, userId: me.id, - act: 'BOOST' + OR: [ + { + act: 'TIP' + }, + { + act: 'VOTE' + } + ] } }) return sats || 0 }, + mine: async (item, args, { me, models }) => { + return me?.id === item.userId + }, meTip: async (item, args, { me, models }) => { if (!me) return 0 diff --git a/api/typeDefs/item.js b/api/typeDefs/item.js index ac689a0f..54692fe0 100644 --- a/api/typeDefs/item.js +++ b/api/typeDefs/item.js @@ -56,7 +56,7 @@ export default gql` tips: Int! mine: Boolean! meVote: Int! - meBoost: Int! + meSats: Int! meTip: Int! ncomments: Int! comments: [Item!]! diff --git a/components/comment.module.css b/components/comment.module.css index efff7094..f8c54508 100644 --- a/components/comment.module.css +++ b/components/comment.module.css @@ -1,5 +1,6 @@ .item { align-items: flex-start; + margin-bottom: 0 !important; } .upvote { @@ -40,7 +41,7 @@ .children { margin-top: 0; - margin-left: 24px; + margin-left: 28px; } .comments { diff --git a/components/header.js b/components/header.js index eeda149e..8367bd83 100644 --- a/components/header.js +++ b/components/header.js @@ -3,7 +3,7 @@ import Nav from 'react-bootstrap/Nav' import Link from 'next/link' import styles from './header.module.css' import { useRouter } from 'next/router' -import { Button, Container, NavDropdown, SplitButton, Dropdown } from 'react-bootstrap' +import { Button, Container, NavDropdown } from 'react-bootstrap' import Price from './price' import { useMe } from './me' import Head from 'next/head' @@ -30,18 +30,12 @@ export default function Header () { const router = useRouter() const path = router.asPath.split('?')[0] const me = useMe() - const [sort, setSort] = useState('recent') const [within, setWithin] = useState() useEffect(() => { - setSort(localStorage.getItem('sort') || 'recent') setWithin(localStorage.getItem('topWithin')) }, []) - const otherSort = sort === 'recent' ? 'top' : 'recent' - const sortLink = `/${sort}${sort === 'top' && within ? `/${within}` : ''}` - const otherSortLink = `/${otherSort}${otherSort === 'top' && within ? `/${within}` : ''}` - const Corner = () => { if (me) { return ( @@ -147,22 +141,15 @@ export default function Header () { SN - - - {sort} - - } - key={`/${sort}`} - id='recent-top-button' - variant='link' - className='p-0' - > - - localStorage.setItem('sort', otherSort)}>{otherSort} - - + + + recent + + + + + top + {me diff --git a/components/header.module.css b/components/header.module.css index 881a6c9f..11995209 100644 --- a/components/header.module.css +++ b/components/header.module.css @@ -5,10 +5,11 @@ line-height: 100%; margin-bottom: -.3rem; margin-right: 0; - text-shadow: 0 0 10px #FADA5E; + text-shadow: 0 0 10px var(--primary); color: var(--theme-brandColor) !important; } + .navLink { padding: 0.25rem 1rem; } diff --git a/components/item.module.css b/components/item.module.css index 09df6d67..d1a027f5 100644 --- a/components/item.module.css +++ b/components/item.module.css @@ -35,6 +35,11 @@ a.link:visited { display: flex; justify-content: flex-start; min-width: 0; + margin-bottom: .2rem; +} + +.item .cover { + top: 4px; } .hunk { @@ -51,7 +56,7 @@ a.link:visited { .children { margin-top: .25rem; - margin-left: 24px; + margin-left: 28px; } .rank { diff --git a/components/notifications.js b/components/notifications.js index 5ab3c3ff..20b1bbef 100644 --- a/components/notifications.js +++ b/components/notifications.js @@ -30,7 +30,7 @@ function Notification ({ n }) { you were mentioned in}
diff --git a/components/price.js b/components/price.js index 61916baa..eeb160c2 100644 --- a/components/price.js +++ b/components/price.js @@ -51,7 +51,10 @@ export default function Price () { const fixed = (n, f) => Number.parseFloat(n).toFixed(f) const handleClick = () => { - if (asSats) { + if (asSats === 'yep') { + localStorage.setItem('asSats', '1btc') + setAsSats('1btc') + } else if (asSats === '1btc') { localStorage.removeItem('asSats') setAsSats(undefined) } else { @@ -60,7 +63,7 @@ export default function Price () { } } - if (asSats) { + if (asSats === 'yep') { return ( + ) + } + return ( ) } diff --git a/components/upvote.js b/components/upvote.js index fd3184b0..7f139b80 100644 --- a/components/upvote.js +++ b/components/upvote.js @@ -1,6 +1,5 @@ import { LightningConsumer } from './lightning' -import UpArrow from '../svgs/lightning-arrow.svg' -import BoltAdd from '../svgs/lightning-pplus.svg' +import UpBolt from '../svgs/bolt.svg' import styles from './upvote.module.css' import { gql, useMutation } from '@apollo/client' import { signIn } from 'next-auth/client' @@ -11,6 +10,7 @@ import Window from '../svgs/window-2-fill.svg' import { useMe } from './me' import { useState } from 'react' import LongPressable from 'react-longpressable' +import Rainbow from '../lib/rainbow' export default function UpVote ({ item, className }) { const { setError } = useFundError() @@ -37,12 +37,6 @@ export default function UpVote ({ item, className }) { } return existingMeVote }, - meBoost (existingMeBoost = 0) { - if (act === 'BOOST') { - return existingMeBoost + sats - } - return existingMeBoost - }, meTip (existingMeTip = 0) { if (act === 'TIP') { return existingMeTip + sats @@ -55,6 +49,12 @@ export default function UpVote ({ item, className }) { } return existingSats }, + meSats (existingSats = 0) { + if (act === 'VOTE' || act === 'TIP') { + return existingSats + sats + } + return existingSats + }, boost (existingBoost = 0) { if (act === 'BOOST') { return existingBoost + sats @@ -76,7 +76,7 @@ export default function UpVote ({ item, className }) { const overlayText = () => { if (item?.meVote) { if (me?.tipDefault) { - return `tip ${me.tipDefault}` + return `${me.tipDefault} sat${me.tipDefault > 1 ? 's' : ''}` } return } @@ -84,9 +84,21 @@ export default function UpVote ({ item, className }) { return '1 sat' } - const noSelfTips = item?.meVote && item?.mine - const Arrow = item?.meVote && !item?.mine ? BoltAdd : UpArrow + const getColor = (meSats) => { + if (!meSats || meSats <= 10) { + return 'var(--secondary)' + } + const idx = Math.min( + Math.floor((Math.log(meSats) / Math.log(100000)) * (Rainbow.length - 1)), + Rainbow.length - 1) + return Rainbow[idx] + } + + const noSelfTips = item?.meVote && item?.mine + // 12 px default height + const cover = (item?.meSats < 10 ? ((10 - item.meSats) / 10.0) : 0) * 12 + const color = getColor(item?.meSats) return ( {({ strike }) => @@ -150,8 +162,10 @@ export default function UpVote ({ item, className }) { } > -
- + { e.stopPropagation() }} /> +
} diff --git a/components/upvote.module.css b/components/upvote.module.css index 08ad91ec..2d8ba822 100644 --- a/components/upvote.module.css +++ b/components/upvote.module.css @@ -1,27 +1,35 @@ .upvote { - fill: grey; + fill: #a5a5a5; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; } -.upvote:hover { - fill: darkgray; - cursor: pointer; +.upvoteWrapper { + position: relative; + padding-right: .2rem; } -.noSelfTips:hover { - cursor: default !important; +.noSelfTips .upvote.voted { + fill: transparent !important; + filter: none !important; +} + +.upvoteWrapper:not(.noSelfTips):hover { + cursor: pointer; } .upvote.voted { fill: #F6911D; - filter: drop-shadow(0 0 7px #F6911D); + filter: drop-shadow(0 0 6px #f6911d90); } -.upvote.stimi { - /* fill: #993DF5; - filter: drop-shadow(0 0 7px #C28BF9); */ - fill: #F6911D; - filter: drop-shadow(0 0 7px #F6911D); +.cover { + background: var(--theme-body); + width: 100%; + overflow: hidden; + mix-blend-mode: color; + position: absolute; + left: 4px; + width: 17px; } \ No newline at end of file diff --git a/fragments/comments.js b/fragments/comments.js index 53f92e28..82e69ebe 100644 --- a/fragments/comments.js +++ b/fragments/comments.js @@ -14,7 +14,7 @@ export const COMMENT_FIELDS = gql` boost tips meVote - meBoost + meSats meTip mine ncomments diff --git a/fragments/items.js b/fragments/items.js index 5bbcfd71..9a9b9d5b 100644 --- a/fragments/items.js +++ b/fragments/items.js @@ -16,7 +16,7 @@ export const ITEM_FIELDS = gql` boost tips meVote - meBoost + meSats meTip ncomments mine diff --git a/lib/rainbow.js b/lib/rainbow.js new file mode 100644 index 00000000..58616f51 --- /dev/null +++ b/lib/rainbow.js @@ -0,0 +1,736 @@ +export default [ + '#f6911d', + '#f6921e', + '#f6931f', + '#f6941f', + '#f69420', + '#f69520', + '#f69521', + '#f69621', + '#f69622', + '#f69722', + '#f69723', + '#f69823', + '#f69824', + '#f69924', + '#f69925', + '#f69a25', + '#f79a25', + '#f79b26', + '#f79c26', + '#f79c27', + '#f79d27', + '#f79d28', + '#f79e28', + '#f79e29', + '#f79f29', + '#f79f2a', + '#f7a02a', + '#f7a02b', + '#f7a12b', + '#f7a12c', + '#f7a22c', + '#f7a32d', + '#f7a42e', + '#f7a52e', + '#f7a52f', + '#f7a62f', + '#f7a630', + '#f7a730', + '#f7a731', + '#f7a831', + '#f7a832', + '#f7a932', + '#f7a933', + '#f7aa33', + '#f7aa34', + '#f7ab34', + '#f7ac35', + '#f8ac35', + '#f8ad36', + '#f8ae36', + '#f8ae37', + '#f8af38', + '#f8b038', + '#f8b039', + '#f8b139', + '#f8b13a', + '#f8b23a', + '#f8b23b', + '#f8b33b', + '#f8b33c', + '#f8b43c', + '#f8b53d', + '#f8b63e', + '#f8b73f', + '#f8b83f', + '#f8b840', + '#f8b940', + '#f8b941', + '#f8ba41', + '#f8ba42', + '#f8bb42', + '#f8bb43', + '#f8bc43', + '#f8bd44', + '#f8bd45', + '#f8be45', + '#f8bf46', + '#f9bf46', + '#f9c047', + '#f9c147', + '#f9c148', + '#f9c248', + '#f9c249', + '#f9c349', + '#f9c34a', + '#f9c44a', + '#f9c44b', + '#f9c54b', + '#f9c54c', + '#f9c64c', + '#f9c64d', + '#f9c74d', + '#f9c84e', + '#f9c94f', + '#f9ca4f', + '#f9ca50', + '#f9cb50', + '#f9cb51', + '#f9cc51', + '#f9cc52', + '#f9cd52', + '#f9cd53', + '#f9ce53', + '#f9ce54', + '#f9cf54', + '#f9cf55', + '#f9d055', + '#f9d156', + '#fad156', + '#fad256', + '#fad257', + '#fad358', + '#fad458', + '#fad459', + '#fad559', + '#fad55a', + '#fad65a', + '#fad65b', + '#fad75b', + '#fad75c', + '#fad85c', + '#fad95d', + '#fada5e', + '#f9da5e', + '#f9d95d', + '#f8d95d', + '#f7d95d', + '#f7d85c', + '#f6d85c', + '#f6d75b', + '#f5d75b', + '#f4d75b', + '#f4d65a', + '#f3d65a', + '#f2d65a', + '#f2d559', + '#f1d559', + '#f1d558', + '#f0d458', + '#efd458', + '#efd457', + '#eed357', + '#edd357', + '#edd256', + '#ecd256', + '#ebd255', + '#ebd155', + '#ead155', + '#ead154', + '#e9d054', + '#e8d054', + '#e8d053', + '#e7cf53', + '#e6cf52', + '#e6ce52', + '#e5ce52', + '#e5ce51', + '#e4cd51', + '#e3cd51', + '#e3cd50', + '#e2cc50', + '#e1cc4f', + '#e0cb4f', + '#dfcb4e', + '#deca4e', + '#deca4d', + '#ddc94d', + '#dcc94d', + '#dcc94c', + '#dbc84c', + '#dac84b', + '#d9c74b', + '#d9c74a', + '#d8c74a', + '#d7c64a', + '#d7c649', + '#d6c549', + '#d5c548', + '#d4c448', + '#d3c447', + '#d2c347', + '#d2c346', + '#d1c346', + '#d0c245', + '#cfc245', + '#cec144', + '#cdc044', + '#ccc043', + '#cbbf42', + '#cabf42', + '#c9be41', + '#c8be41', + '#c7bd40', + '#c6bc3f', + '#c5bc3f', + '#c4bb3e', + '#c3bb3e', + '#c2ba3d', + '#c1ba3d', + '#c0b93c', + '#bfb93b', + '#bfb83b', + '#beb83b', + '#bdb73a', + '#bcb73a', + '#bbb639', + '#bab638', + '#bab538', + '#b9b538', + '#b8b537', + '#b8b437', + '#b7b437', + '#b6b336', + '#b5b335', + '#b4b235', + '#b3b234', + '#b3b134', + '#b2b134', + '#b1b133', + '#b1b033', + '#b0b032', + '#afb032', + '#afaf32', + '#aeaf31', + '#aeae31', + '#adae31', + '#acae30', + '#acad30', + '#abad30', + '#aaad2f', + '#aaac2f', + '#a9ac2e', + '#a8ac2e', + '#a8ab2e', + '#a7ab2d', + '#a7aa2d', + '#a6aa2d', + '#a5aa2c', + '#a5a92c', + '#a4a92b', + '#a3a92b', + '#a3a82b', + '#a2a82a', + '#a1a72a', + '#a0a729', + '#9fa628', + '#9ea628', + '#9ea528', + '#9da527', + '#9ca527', + '#9ca427', + '#9ba426', + '#9aa325', + '#99a325', + '#98a224', + '#97a224', + '#97a124', + '#96a123', + '#95a022', + '#94a022', + '#939f21', + '#929f21', + '#919e20', + '#909e20', + '#8f9d1f', + '#8e9c1e', + '#8d9c1e', + '#8c9b1d', + '#8b9b1d', + '#8a9a1c', + '#899a1b', + '#88991b', + '#87981a', + '#86981a', + '#859719', + '#849719', + '#849718', + '#839618', + '#829617', + '#819517', + '#809516', + '#7f9416', + '#7f9415', + '#7e9315', + '#7d9315', + '#7d9314', + '#7c9214', + '#7b9213', + '#7a9113', + '#7a9112', + '#799112', + '#789012', + '#789011', + '#778f11', + '#768f10', + '#758e10', + '#748e0f', + '#738d0f', + '#738d0e', + '#728d0e', + '#718c0e', + '#718c0d', + '#708c0d', + '#708b0d', + '#6f8b0c', + '#6e8a0c', + '#6e8a0b', + '#6d8a0b', + '#6c890b', + '#6c890a', + '#6b890a', + '#6b880a', + '#6a8809', + '#698809', + '#698708', + '#688708', + '#678608', + '#678607', + '#668607', + '#658507', + '#658506', + '#648506', + '#648405', + '#638405', + '#628405', + '#628304', + '#618304', + '#608304', + '#608203', + '#5f8203', + '#5f8102', + '#5e8102', + '#5d8102', + '#5d8001', + '#5c8001', + '#5c8002', + '#5b8003', + '#5b8004', + '#5a8005', + '#5a8006', + '#598006', + '#598007', + '#598008', + '#588009', + '#58800a', + '#57800b', + '#57800c', + '#56800c', + '#56800d', + '#56800e', + '#55800f', + '#558010', + '#548011', + '#548012', + '#538013', + '#538014', + '#528015', + '#528016', + '#518017', + '#518018', + '#507f19', + '#507f1a', + '#4f7f1b', + '#4f7f1c', + '#4e7f1d', + '#4e7f1e', + '#4d7f1f', + '#4d7f20', + '#4d7f21', + '#4c7f22', + '#4b7f23', + '#4b7f24', + '#4b7f25', + '#4a7f25', + '#4a7f26', + '#4a7f27', + '#497f28', + '#487f29', + '#487f2a', + '#487f2b', + '#477f2b', + '#477f2c', + '#477f2d', + '#467f2e', + '#467f2f', + '#457f30', + '#457f31', + '#447f31', + '#447f32', + '#447f33', + '#437f34', + '#437f35', + '#427f36', + '#427f37', + '#417f38', + '#417f39', + '#407f3a', + '#407f3b', + '#3f7f3c', + '#3f7f3d', + '#3e7f3e', + '#3e7f3f', + '#3d7f40', + '#3d7f41', + '#3c7f42', + '#3c7f43', + '#3c7f44', + '#3b7f44', + '#3b7f45', + '#3b7f46', + '#3a7f47', + '#397e48', + '#397e49', + '#397e4a', + '#387e4a', + '#387e4b', + '#387e4c', + '#377e4d', + '#367e4e', + '#367e4f', + '#367e50', + '#357e50', + '#357e51', + '#357e52', + '#347e53', + '#347e54', + '#337e55', + '#337e56', + '#327e56', + '#327e57', + '#327e58', + '#317e59', + '#317e5a', + '#307e5b', + '#307e5c', + '#2f7e5c', + '#2f7e5d', + '#2f7e5e', + '#2e7e5f', + '#2e7e60', + '#2d7e61', + '#2d7e62', + '#2d7e63', + '#2c7e63', + '#2c7e64', + '#2b7e65', + '#2b7e66', + '#2a7e67', + '#2a7e68', + '#2a7e69', + '#297e69', + '#297e6a', + '#287e6b', + '#287e6c', + '#277e6d', + '#277e6e', + '#277e6f', + '#267e6f', + '#267e70', + '#267e71', + '#257e72', + '#247e73', + '#247e74', + '#247e75', + '#237e75', + '#237e76', + '#237e77', + '#227d78', + '#217d79', + '#217d7a', + '#217d7b', + '#207d7b', + '#207d7c', + '#207d7d', + '#1f7d7e', + '#1f7d7f', + '#1e7d80', + '#1e7d81', + '#1d7d82', + '#1d7d83', + '#1c7d84', + '#1c7d85', + '#1b7d86', + '#1b7d87', + '#1a7d88', + '#1a7d89', + '#197d8a', + '#197d8b', + '#187d8c', + '#187d8d', + '#187d8e', + '#177d8e', + '#177d8f', + '#167d90', + '#167d91', + '#157d92', + '#157d93', + '#157d94', + '#147d94', + '#147d95', + '#147d96', + '#137d97', + '#127d98', + '#127d99', + '#127d9a', + '#117d9a', + '#117d9b', + '#117d9c', + '#107d9d', + '#0f7d9e', + '#0f7d9f', + '#0f7da0', + '#0e7da1', + '#0e7da2', + '#0d7da3', + '#0d7da4', + '#0c7da5', + '#0c7da6', + '#0b7ca7', + '#0b7ca8', + '#0a7ca9', + '#0a7caa', + '#097cab', + '#097cac', + '#087cad', + '#087cae', + '#077caf', + '#077cb0', + '#067cb1', + '#067cb2', + '#067cb3', + '#057cb3', + '#057cb4', + '#047cb5', + '#047cb6', + '#037cb7', + '#037cb8', + '#037cb9', + '#027cb9', + '#027cba', + '#017cbb', + '#017cbc', + '#007cbd', + '#007cbe', + '#017cbe', + '#017bbe', + '#027bbf', + '#037abf', + '#047ac0', + '#0479c0', + '#0579c0', + '#0679c0', + '#0678c0', + '#0778c1', + '#0777c1', + '#0877c1', + '#0976c1', + '#0a76c2', + '#0b75c2', + '#0c75c3', + '#0c74c3', + '#0d74c3', + '#0e73c3', + '#0f73c4', + '#1072c4', + '#1172c4', + '#1171c5', + '#1271c5', + '#1370c5', + '#1470c6', + '#146fc6', + '#156fc6', + '#166ec6', + '#166ec7', + '#176ec7', + '#186dc7', + '#196dc8', + '#196cc8', + '#1a6cc8', + '#1b6bc8', + '#1b6bc9', + '#1c6bc9', + '#1d6ac9', + '#1e6ac9', + '#1e69ca', + '#1f69ca', + '#2068ca', + '#2068cb', + '#2167cb', + '#2267cb', + '#2366cb', + '#2366cc', + '#2466cc', + '#2465cc', + '#2565cc', + '#2665cc', + '#2664cd', + '#2764cd', + '#2863cd', + '#2863ce', + '#2963ce', + '#2962ce', + '#2a62ce', + '#2b62ce', + '#2b61cf', + '#2c61cf', + '#2d60cf', + '#2e5fd0', + '#2f5fd0', + '#305ed0', + '#305ed1', + '#315ed1', + '#315dd1', + '#325dd1', + '#335cd2', + '#345cd2', + '#355bd2', + '#355bd3', + '#365bd3', + '#365ad3', + '#375ad3', + '#3859d4', + '#3959d4', + '#3a58d4', + '#3b57d5', + '#3c57d5', + '#3c56d5', + '#3d56d6', + '#3e56d6', + '#3e55d6', + '#3f55d6', + '#4054d7', + '#4154d7', + '#4253d7', + '#4353d8', + '#4352d8', + '#4452d8', + '#4551d9', + '#4651d9', + '#4750d9', + '#484fda', + '#494fda', + '#494eda', + '#4a4edb', + '#4b4ddb', + '#4c4ddb', + '#4d4cdc', + '#4e4cdc', + '#4e4bdc', + '#4f4bdc', + '#504bdd', + '#504add', + '#514add', + '#5249de', + '#5348de', + '#5448de', + '#5547df', + '#5647df', + '#5646df', + '#5746df', + '#5746e0', + '#5845e0', + '#5945e0', + '#5a44e1', + '#5b44e1', + '#5b43e1', + '#5c43e1', + '#5c43e2', + '#5d42e2', + '#5e42e2', + '#5f41e3', + '#6040e3', + '#6140e3', + '#613fe4', + '#623fe4', + '#633fe4', + '#633ee4', + '#643ee4', + '#643ee5', + '#653de5', + '#663de5', + '#663ce6', + '#673ce6', + '#683ce6', + '#683be6', + '#693be6', + '#693be7', + '#6a3ae7', + '#6b3ae7', + '#6c39e7', + '#6c39e8', + '#6d38e8', + '#6e38e8', + '#6e37e9', + '#6f37e9', + '#7036e9', + '#7136e9', + '#7136ea', + '#7235ea', + '#7335ea', + '#7334ea', + '#7434eb', + '#7533eb', + '#7633eb', + '#7633ec', + '#7732ec', + '#7832ec', + '#7831ec', + '#7931ed', + '#7a30ed', + '#7b30ed', + '#7b2fee', + '#7c2fee', + '#7d2eee', + '#7e2eef', + '#7f2def', + '#802def', + '#802cef', + '#812cf0', + '#822bf0', + '#832bf1', + '#842af1', + '#852af1', + '#8529f1', + '#8629f2', + '#8628f2', + '#8728f2', + '#8828f2', + '#8827f2', + '#8927f3', + '#8a26f3', + '#8b26f4', + '#8b25f4', + '#8c25f4' +] diff --git a/styles/globals.scss b/styles/globals.scss index 0e780cb7..1ccf24e8 100644 --- a/styles/globals.scss +++ b/styles/globals.scss @@ -380,4 +380,8 @@ textarea.form-control { visibility: hidden; pointer-events: none; } +} + +.tooltip-inner { + padding: 0.1rem 0.3rem; } \ No newline at end of file diff --git a/svgs/bitcoin.svg b/svgs/bitcoin.svg new file mode 100644 index 00000000..6755efbd --- /dev/null +++ b/svgs/bitcoin.svg @@ -0,0 +1,3 @@ + + + diff --git a/svgs/bolt.svg b/svgs/bolt.svg new file mode 100644 index 00000000..c8f400b7 --- /dev/null +++ b/svgs/bolt.svg @@ -0,0 +1,3 @@ + + + diff --git a/svgs/upbolt.svg b/svgs/upbolt.svg new file mode 100644 index 00000000..933036a2 --- /dev/null +++ b/svgs/upbolt.svg @@ -0,0 +1,5 @@ + + + + +