@ape.swap/bonds-sdk 1.0.42 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_index.d.ts +2 -0
- package/dist/_index.js +3 -0
- package/dist/components/{Bonds.js → Bonds/Bonds.js} +45 -2
- package/dist/components/Bonds/styles.d.ts +4 -0
- package/dist/components/Bonds/styles.js +75 -0
- package/dist/components/Bonds/type.d.ts +33 -0
- package/dist/components/Bonds/type.js +1 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +7 -4
- package/dist/theme/base.d.ts +103 -0
- package/dist/theme/base.js +123 -0
- package/dist/theme/colors.d.ts +88 -0
- package/dist/theme/colors.js +92 -0
- package/dist/theme/components.d.ts +439 -0
- package/dist/theme/components.js +338 -0
- package/dist/theme/display.d.ts +2 -0
- package/dist/theme/display.js +2 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/index.js +15 -0
- package/dist/theme/types.d.ts +10 -0
- package/dist/theme/types.js +1 -0
- package/dist/utils/getTimePeriods.d.ts +14 -0
- package/dist/utils/getTimePeriods.js +44 -0
- package/package.json +1 -1
- package/dist/components/MyComponent.d.ts +0 -3
- package/dist/components/MyComponent.js +0 -5
- /package/dist/components/{Bonds.d.ts → Bonds/Bonds.d.ts} +0 -0
package/dist/_index.d.ts
ADDED
package/dist/_index.js
ADDED
|
@@ -45,9 +45,16 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
-
import { jsx as _jsx } from "theme-ui/jsx-runtime";
|
|
48
|
+
import { jsxs as _jsxs, jsx as _jsx } from "theme-ui/jsx-runtime";
|
|
49
|
+
/** @jsxImportSource theme-ui */
|
|
50
|
+
import { useEffect, useState } from 'react';
|
|
51
|
+
import { ThemeProvider, Flex } from "theme-ui";
|
|
52
|
+
import axios from "axios";
|
|
49
53
|
import { ethers } from 'ethers';
|
|
50
54
|
import { useWeb3React } from "@web3-react/core";
|
|
55
|
+
import styles, { getColumnDiscountStyle } from './styles';
|
|
56
|
+
import getTimePeriods from '../../utils/getTimePeriods';
|
|
57
|
+
import { defaultTheme } from '../../theme';
|
|
51
58
|
var Bonds = function (_a) {
|
|
52
59
|
var connectionString = _a.connectionString;
|
|
53
60
|
var _b = useWeb3React(), account = _b.account, isActive = _b.isActive;
|
|
@@ -91,6 +98,42 @@ var Bonds = function (_a) {
|
|
|
91
98
|
}
|
|
92
99
|
});
|
|
93
100
|
}); };
|
|
94
|
-
|
|
101
|
+
var _c = useState([]), bondData = _c[0], setBondData = _c[1];
|
|
102
|
+
var _d = useState([]), hotBonds = _d[0], setHotBonds = _d[1];
|
|
103
|
+
var vestingTime = function (vestingTerm) {
|
|
104
|
+
return getTimePeriods(vestingTerm !== null && vestingTerm !== void 0 ? vestingTerm : 0, true);
|
|
105
|
+
};
|
|
106
|
+
useEffect(function () {
|
|
107
|
+
axios.get('https://realtime-api.ape.bond/bonds').then(function (response) {
|
|
108
|
+
var bonds = response.data.bonds.filter(function (x) {
|
|
109
|
+
return x.soldOut !== true && x.inactive !== true;
|
|
110
|
+
});
|
|
111
|
+
setBondData(bonds);
|
|
112
|
+
});
|
|
113
|
+
}, []);
|
|
114
|
+
useEffect(function () {
|
|
115
|
+
axios.get('https://apeswap-strapi.herokuapp.com/hot-bonds').then(function (response) {
|
|
116
|
+
var hotBondAddresses = response.data.map(function (bond) { return bond.BondAddress.toLowerCase(); });
|
|
117
|
+
setHotBonds(hotBondAddresses);
|
|
118
|
+
});
|
|
119
|
+
}, []);
|
|
120
|
+
var sortedBonds = bondData.sort(function (a, b) {
|
|
121
|
+
var _a, _b;
|
|
122
|
+
var aIsHot = hotBonds.includes(a.billAddress.toLowerCase()) && ((_a = a.discount) !== null && _a !== void 0 ? _a : 0) > 0;
|
|
123
|
+
var bIsHot = hotBonds.includes(b.billAddress.toLowerCase()) && ((_b = b.discount) !== null && _b !== void 0 ? _b : 0) > 0;
|
|
124
|
+
if (aIsHot && !bIsHot) {
|
|
125
|
+
return -1;
|
|
126
|
+
}
|
|
127
|
+
else if (!aIsHot && bIsHot) {
|
|
128
|
+
return 1;
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
return a.discount - b.discount;
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
return (_jsxs(ThemeProvider, __assign({ theme: defaultTheme }, { children: [_jsxs("p", { children: [isActive, "-", account] }), isActive && account && (_jsx("button", __assign({ onClick: handleApprove }, { children: "Approve USDT" }))), _jsxs(Flex, __assign({ className: "container table-container", sx: styles.tableContainer }, { children: [_jsx("h1", { children: connectionString !== null && connectionString !== void 0 ? connectionString : "TEST" }), _jsxs(Flex, __assign({ className: "container header-container", sx: styles.headerContainer }, { children: [_jsx(Flex, __assign({ className: "column column-header" }, { children: "Tokens" })), _jsx(Flex, __assign({ className: "column column-header" }, { children: "Discount" })), _jsx(Flex, __assign({ className: "column column-header" }, { children: "ARR" })), _jsx(Flex, __assign({ className: "column column-header" }, { children: "Terms" })), _jsx(Flex, __assign({ className: "column column-header" }, { children: "Tokens Remaining" })), _jsx(Flex, { className: "column column-header" })] })), sortedBonds.map(function (bond) {
|
|
135
|
+
var _a, _b, _c;
|
|
136
|
+
return (_jsxs(Flex, __assign({ className: "container bondrow-container", sx: styles.bondrowContainer }, { children: [_jsx(Flex, __assign({ className: "column column-token", sx: styles.columnToken }, { children: bond.showcaseTokenName })), _jsx(Flex, __assign({ className: "column column-discount", sx: getColumnDiscountStyle((_a = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _a !== void 0 ? _a : 0) }, { children: "".concat((_b = bond === null || bond === void 0 ? void 0 : bond.discount) === null || _b === void 0 ? void 0 : _b.toFixed(2), "%") })), _jsx(Flex, __assign({ className: "column column-arr", sx: styles.columnArr }, { children: "".concat("".concat(((((_c = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _c !== void 0 ? _c : 0) * 365) / vestingTime(bond.vestingTerm).days).toFixed(2), "%")) })), _jsx(Flex, __assign({ className: "column column-term", sx: styles.columnTerm }, { children: vestingTime(bond.vestingTerm).days ? "".concat(vestingTime(bond.vestingTerm).days, " D") : '-' })), _jsx(Flex, __assign({ className: "column column-tokensremaining", sx: styles.columnTokensRemaining }, { children: bond.tokensRemaining.split('.')[0] })), _jsx(Flex, { className: "column column-hotbond", sx: styles.hotBond })] })));
|
|
137
|
+
})] }))] })));
|
|
95
138
|
};
|
|
96
139
|
export default Bonds;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ThemeUIStyleObject } from 'theme-ui';
|
|
2
|
+
export declare function getColumnDiscountStyle(discount: number): ThemeUIStyleObject;
|
|
3
|
+
export declare const styles: Record<'tableContainer' | 'headerContainer' | 'bondrowContainer' | 'columnToken' | 'columnDiscount' | 'columnArr' | 'columnTerm' | 'columnTokensRemaining' | 'hotBond', ThemeUIStyleObject>;
|
|
4
|
+
export default styles;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var getDiscountColorStyle = function (discount) {
|
|
2
|
+
return discount < 0 ? '#DF4141' : '#38A611';
|
|
3
|
+
};
|
|
4
|
+
export function getColumnDiscountStyle(discount) {
|
|
5
|
+
return {
|
|
6
|
+
width: '50px',
|
|
7
|
+
flexDirection: 'column',
|
|
8
|
+
justifyContent: 'center',
|
|
9
|
+
alignItems: 'center',
|
|
10
|
+
color: getDiscountColorStyle(discount)
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export var styles = {
|
|
14
|
+
tableContainer: {
|
|
15
|
+
width: '80vw',
|
|
16
|
+
flexDirection: 'column',
|
|
17
|
+
p: '20px',
|
|
18
|
+
marginLeft: 'auto',
|
|
19
|
+
marginRight: 'auto'
|
|
20
|
+
},
|
|
21
|
+
headerContainer: {
|
|
22
|
+
display: 'flex',
|
|
23
|
+
justifyContent: ['flex-end', 'flex-end', 'flex-end', 'space-around'],
|
|
24
|
+
padding: '5px',
|
|
25
|
+
fontWeight: 'bold'
|
|
26
|
+
},
|
|
27
|
+
bondrowContainer: {
|
|
28
|
+
display: 'flex',
|
|
29
|
+
flexDirection: 'row',
|
|
30
|
+
width: '100%',
|
|
31
|
+
justifyContent: ['flex-end', 'flex-end', 'flex-end', 'space-around'],
|
|
32
|
+
backgroundColor: '#151320',
|
|
33
|
+
marginBottom: '10px',
|
|
34
|
+
padding: '20px',
|
|
35
|
+
borderRadius: '10px',
|
|
36
|
+
border: '1px solid #4B4B53',
|
|
37
|
+
},
|
|
38
|
+
columnToken: {
|
|
39
|
+
width: '100px',
|
|
40
|
+
flexDirection: 'column',
|
|
41
|
+
justifyContent: 'center',
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
},
|
|
44
|
+
columnDiscount: {
|
|
45
|
+
width: '50px',
|
|
46
|
+
flexDirection: 'column',
|
|
47
|
+
justifyContent: 'center',
|
|
48
|
+
alignItems: 'center',
|
|
49
|
+
},
|
|
50
|
+
columnArr: {
|
|
51
|
+
width: '50px',
|
|
52
|
+
flexDirection: 'column',
|
|
53
|
+
justifyContent: 'center',
|
|
54
|
+
alignItems: 'center',
|
|
55
|
+
},
|
|
56
|
+
columnTerm: {
|
|
57
|
+
width: '50px',
|
|
58
|
+
flexDirection: 'column',
|
|
59
|
+
justifyContent: 'center',
|
|
60
|
+
alignItems: 'center',
|
|
61
|
+
},
|
|
62
|
+
columnTokensRemaining: {
|
|
63
|
+
width: '50px',
|
|
64
|
+
flexDirection: 'column',
|
|
65
|
+
justifyContent: 'center',
|
|
66
|
+
alignItems: 'center',
|
|
67
|
+
},
|
|
68
|
+
hotBond: {
|
|
69
|
+
width: '50px',
|
|
70
|
+
flexDirection: 'column',
|
|
71
|
+
justifyContent: 'center',
|
|
72
|
+
alignItems: 'center',
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
export default styles;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ChainId } from "@ape.swap/apeswap-lists";
|
|
2
|
+
export interface BondsDataResponse {
|
|
3
|
+
index: number;
|
|
4
|
+
cmcId?: number;
|
|
5
|
+
label: string;
|
|
6
|
+
chainId: ChainId;
|
|
7
|
+
type: string;
|
|
8
|
+
principalToken: string;
|
|
9
|
+
principalTokenName: string;
|
|
10
|
+
principalTokenDecimals: number;
|
|
11
|
+
payoutToken: string;
|
|
12
|
+
payoutTokenName: string;
|
|
13
|
+
payoutTokenDecimals: number;
|
|
14
|
+
discount: number;
|
|
15
|
+
billAddress: string;
|
|
16
|
+
billNftAddress: string;
|
|
17
|
+
initTime: number;
|
|
18
|
+
soldOut: boolean;
|
|
19
|
+
inactive: boolean;
|
|
20
|
+
trueBillPrice: string;
|
|
21
|
+
maxTotalPayout: string;
|
|
22
|
+
totalPayoutGiven: string;
|
|
23
|
+
maxPayout: string;
|
|
24
|
+
tokensRemaining: string;
|
|
25
|
+
showcaseToken: string;
|
|
26
|
+
showcaseTokenName: string;
|
|
27
|
+
vestingTerm: number;
|
|
28
|
+
principalTokenPrice: string;
|
|
29
|
+
payoutTokenPrice: string;
|
|
30
|
+
priceUsd: string;
|
|
31
|
+
tags?: string[];
|
|
32
|
+
arr: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import ReactDOM from 'react-dom/client';
|
|
4
|
+
import './index.css';
|
|
5
|
+
import Bonds from './components/Bonds/Bonds';
|
|
6
|
+
var root = ReactDOM.createRoot(document.getElementById('root'));
|
|
7
|
+
root.render(_jsx(React.StrictMode, { children: _jsx(Bonds, {}) }));
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { MediaQueries } from './types';
|
|
2
|
+
export declare const breakpointMap: {
|
|
3
|
+
[key: string]: number;
|
|
4
|
+
};
|
|
5
|
+
declare const baseTheme: {
|
|
6
|
+
breakpoints: string[];
|
|
7
|
+
space: number[];
|
|
8
|
+
fontSizes: number[];
|
|
9
|
+
borderWidths: number[];
|
|
10
|
+
mediaQueries: MediaQueries;
|
|
11
|
+
fontWeights: {
|
|
12
|
+
light: number;
|
|
13
|
+
normal: number;
|
|
14
|
+
bold: number;
|
|
15
|
+
};
|
|
16
|
+
fonts: {
|
|
17
|
+
body: string;
|
|
18
|
+
poppins: string;
|
|
19
|
+
};
|
|
20
|
+
radii: {
|
|
21
|
+
small: string;
|
|
22
|
+
default: string;
|
|
23
|
+
normal: string;
|
|
24
|
+
card: string;
|
|
25
|
+
circle: string;
|
|
26
|
+
};
|
|
27
|
+
zIndices: {
|
|
28
|
+
dropdown: number;
|
|
29
|
+
modal: number;
|
|
30
|
+
};
|
|
31
|
+
styles: {
|
|
32
|
+
root: {
|
|
33
|
+
fontFamily: string;
|
|
34
|
+
webkitFontSmoothing: string;
|
|
35
|
+
fontWeight: number;
|
|
36
|
+
color: string;
|
|
37
|
+
bg: string;
|
|
38
|
+
textDecoration: string;
|
|
39
|
+
};
|
|
40
|
+
a: {
|
|
41
|
+
color: string;
|
|
42
|
+
textDecoration: string;
|
|
43
|
+
':hover': {
|
|
44
|
+
color: string;
|
|
45
|
+
textDecoration: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
nav: {
|
|
49
|
+
textDecoration: string;
|
|
50
|
+
breakpoints: string[];
|
|
51
|
+
a: {
|
|
52
|
+
textDecoration: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
progress: {
|
|
56
|
+
primary: string;
|
|
57
|
+
color: string;
|
|
58
|
+
background: string;
|
|
59
|
+
height: string;
|
|
60
|
+
};
|
|
61
|
+
hr: {
|
|
62
|
+
background: string;
|
|
63
|
+
height: string;
|
|
64
|
+
border: string;
|
|
65
|
+
};
|
|
66
|
+
h1: {
|
|
67
|
+
variant: string;
|
|
68
|
+
fontSize: string;
|
|
69
|
+
lineHeight: string;
|
|
70
|
+
};
|
|
71
|
+
h2: {
|
|
72
|
+
variant: string;
|
|
73
|
+
fontSize: string;
|
|
74
|
+
lineHeight: string;
|
|
75
|
+
};
|
|
76
|
+
h3: {
|
|
77
|
+
variant: string;
|
|
78
|
+
fontSize: string;
|
|
79
|
+
lineHeight: string;
|
|
80
|
+
};
|
|
81
|
+
h4: {
|
|
82
|
+
variant: string;
|
|
83
|
+
fontSize: string;
|
|
84
|
+
lineHeight: string;
|
|
85
|
+
};
|
|
86
|
+
h5: {
|
|
87
|
+
variant: string;
|
|
88
|
+
fontSize: string;
|
|
89
|
+
lineHeight: string;
|
|
90
|
+
};
|
|
91
|
+
banner: {
|
|
92
|
+
variant: string;
|
|
93
|
+
fontWeight: string;
|
|
94
|
+
fontSize: string;
|
|
95
|
+
lineHeight: string;
|
|
96
|
+
};
|
|
97
|
+
input: {
|
|
98
|
+
fontFamily: string;
|
|
99
|
+
fontWeight: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export default baseTheme;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
export var breakpointMap = {
|
|
2
|
+
xs: 370,
|
|
3
|
+
sm: 576,
|
|
4
|
+
md: 852,
|
|
5
|
+
lg: 968,
|
|
6
|
+
xl: 1080,
|
|
7
|
+
xxl: 1200,
|
|
8
|
+
xxxl: 1550,
|
|
9
|
+
};
|
|
10
|
+
var mediaQueries = {
|
|
11
|
+
xs: "@media screen and (min-width: ".concat(breakpointMap.xs, "px)"),
|
|
12
|
+
sm: "@media screen and (min-width: ".concat(breakpointMap.sm, "px)"),
|
|
13
|
+
md: "@media screen and (min-width: ".concat(breakpointMap.md, "px)"),
|
|
14
|
+
lg: "@media screen and (min-width: ".concat(breakpointMap.lg, "px)"),
|
|
15
|
+
xl: "@media screen and (min-width: ".concat(breakpointMap.xl, "px)"),
|
|
16
|
+
xxl: "@media screen and (min-width: ".concat(breakpointMap.xxl, "px)"),
|
|
17
|
+
xxxl: "@media screen and (min-width: ".concat(breakpointMap.xxxl, "px)"),
|
|
18
|
+
nav: "@media screen and (min-width: ".concat(breakpointMap.lg, "px)"),
|
|
19
|
+
};
|
|
20
|
+
var baseTheme = {
|
|
21
|
+
breakpoints: [
|
|
22
|
+
"".concat(breakpointMap.xs, "px"),
|
|
23
|
+
"".concat(breakpointMap.sm, "px"),
|
|
24
|
+
"".concat(breakpointMap.md, "px"),
|
|
25
|
+
"".concat(breakpointMap.lg, "px"),
|
|
26
|
+
"".concat(breakpointMap.xl, "px"),
|
|
27
|
+
"".concat(breakpointMap.xxl, "px"),
|
|
28
|
+
"".concat(breakpointMap.xxxl, "px"),
|
|
29
|
+
],
|
|
30
|
+
space: [0, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 48, 64],
|
|
31
|
+
fontSizes: [12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 48, 64],
|
|
32
|
+
borderWidths: [0, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 48, 64],
|
|
33
|
+
mediaQueries: mediaQueries,
|
|
34
|
+
fontWeights: {
|
|
35
|
+
light: 400,
|
|
36
|
+
normal: 600,
|
|
37
|
+
bold: 700,
|
|
38
|
+
},
|
|
39
|
+
fonts: {
|
|
40
|
+
body: 'Poppins, sans-serif',
|
|
41
|
+
poppins: 'Poppins',
|
|
42
|
+
},
|
|
43
|
+
radii: {
|
|
44
|
+
small: '6px',
|
|
45
|
+
default: '16px',
|
|
46
|
+
normal: '10px',
|
|
47
|
+
card: '32px',
|
|
48
|
+
circle: '50%',
|
|
49
|
+
},
|
|
50
|
+
zIndices: { dropdown: 10, modal: 102 },
|
|
51
|
+
styles: {
|
|
52
|
+
root: {
|
|
53
|
+
fontFamily: 'body',
|
|
54
|
+
webkitFontSmoothing: 'antialiasing',
|
|
55
|
+
fontWeight: 600,
|
|
56
|
+
color: 'text',
|
|
57
|
+
bg: 'white1',
|
|
58
|
+
textDecoration: 'none',
|
|
59
|
+
},
|
|
60
|
+
a: {
|
|
61
|
+
color: 'text',
|
|
62
|
+
textDecoration: 'none',
|
|
63
|
+
':hover': {
|
|
64
|
+
color: 'secondary',
|
|
65
|
+
textDecoration: 'underline',
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
nav: {
|
|
69
|
+
textDecoration: 'none',
|
|
70
|
+
breakpoints: ["@media screen and (min-width: ".concat(breakpointMap.lg, "px)")],
|
|
71
|
+
a: {
|
|
72
|
+
textDecoration: 'none',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
progress: {
|
|
76
|
+
primary: 'primary',
|
|
77
|
+
color: 'green',
|
|
78
|
+
background: '#DAA628',
|
|
79
|
+
height: '20px',
|
|
80
|
+
},
|
|
81
|
+
hr: {
|
|
82
|
+
background: 'dividerColor',
|
|
83
|
+
height: '1px',
|
|
84
|
+
border: 'none',
|
|
85
|
+
},
|
|
86
|
+
h1: {
|
|
87
|
+
variant: 'text.heading',
|
|
88
|
+
fontSize: '30px',
|
|
89
|
+
lineHeight: '45px',
|
|
90
|
+
},
|
|
91
|
+
h2: {
|
|
92
|
+
variant: 'text.heading',
|
|
93
|
+
fontSize: '25px',
|
|
94
|
+
lineHeight: '37px',
|
|
95
|
+
},
|
|
96
|
+
h3: {
|
|
97
|
+
variant: 'text.heading',
|
|
98
|
+
fontSize: '22px',
|
|
99
|
+
lineHeight: '33px',
|
|
100
|
+
},
|
|
101
|
+
h4: {
|
|
102
|
+
variant: 'text.heading',
|
|
103
|
+
fontSize: '20px',
|
|
104
|
+
lineHeight: '30px',
|
|
105
|
+
},
|
|
106
|
+
h5: {
|
|
107
|
+
variant: 'text.heading',
|
|
108
|
+
fontSize: '16px',
|
|
109
|
+
lineHeight: '24px',
|
|
110
|
+
},
|
|
111
|
+
banner: {
|
|
112
|
+
variant: 'text.heading',
|
|
113
|
+
fontWeight: '800',
|
|
114
|
+
fontSize: '60px',
|
|
115
|
+
lineHeight: '66px',
|
|
116
|
+
},
|
|
117
|
+
input: {
|
|
118
|
+
fontFamily: 'base',
|
|
119
|
+
fontWeight: 'base',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
};
|
|
123
|
+
export default baseTheme;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
declare const abondColors: {
|
|
2
|
+
white1: string;
|
|
3
|
+
white2: string;
|
|
4
|
+
white3: string;
|
|
5
|
+
white4: string;
|
|
6
|
+
white5: string;
|
|
7
|
+
brandPrimary140: string;
|
|
8
|
+
navBar: string;
|
|
9
|
+
primaryButton: string;
|
|
10
|
+
secondary: string;
|
|
11
|
+
footer: string;
|
|
12
|
+
success: string;
|
|
13
|
+
error: string;
|
|
14
|
+
yellow: string;
|
|
15
|
+
primaryButtonDisable: string;
|
|
16
|
+
primaryButtonHovered: string;
|
|
17
|
+
textDisabledButton: string;
|
|
18
|
+
text: string;
|
|
19
|
+
textDisabled: string;
|
|
20
|
+
home: {
|
|
21
|
+
c1: string;
|
|
22
|
+
c2: string;
|
|
23
|
+
c3: string;
|
|
24
|
+
cShadow: string;
|
|
25
|
+
hideCircles: string;
|
|
26
|
+
title: string;
|
|
27
|
+
shadowImage: string;
|
|
28
|
+
};
|
|
29
|
+
backgroundDisabled: string;
|
|
30
|
+
listTagBg: {
|
|
31
|
+
ape: string;
|
|
32
|
+
launch: string;
|
|
33
|
+
reserve: string;
|
|
34
|
+
liquidity: string;
|
|
35
|
+
ark: string;
|
|
36
|
+
hot: string;
|
|
37
|
+
new: string;
|
|
38
|
+
default: string;
|
|
39
|
+
auto: string;
|
|
40
|
+
beta: string;
|
|
41
|
+
max: string;
|
|
42
|
+
real_yield: string;
|
|
43
|
+
bondLp: string;
|
|
44
|
+
migration: string;
|
|
45
|
+
cex_fund: string;
|
|
46
|
+
expired: string;
|
|
47
|
+
permatlock: string;
|
|
48
|
+
};
|
|
49
|
+
listTagTextColor: {
|
|
50
|
+
liquidity: string;
|
|
51
|
+
cex_fund: string;
|
|
52
|
+
};
|
|
53
|
+
body: string;
|
|
54
|
+
lvl1: string;
|
|
55
|
+
lvl2: string;
|
|
56
|
+
primaryBright: string;
|
|
57
|
+
primaryDark: string;
|
|
58
|
+
info: string;
|
|
59
|
+
secondaryButtonDisableBg: string;
|
|
60
|
+
secondaryButtonDisableColor: string;
|
|
61
|
+
buttonDisabledText: string;
|
|
62
|
+
dividerColor: string;
|
|
63
|
+
textareaColor: string;
|
|
64
|
+
heading: string;
|
|
65
|
+
black: string;
|
|
66
|
+
gradient: string;
|
|
67
|
+
smartGradient: string;
|
|
68
|
+
white2Opacity09: string;
|
|
69
|
+
radioChecked: string;
|
|
70
|
+
navMenuLogo: string;
|
|
71
|
+
input: string;
|
|
72
|
+
primaryGray: string;
|
|
73
|
+
gray: string;
|
|
74
|
+
brown: string;
|
|
75
|
+
hoveredYellow: string;
|
|
76
|
+
hoveredSuccess: string;
|
|
77
|
+
hoveredDanger: string;
|
|
78
|
+
modalOverlay: string;
|
|
79
|
+
opacityBadge: string;
|
|
80
|
+
gnanaWarningBackground: string;
|
|
81
|
+
moon: string;
|
|
82
|
+
island: string;
|
|
83
|
+
migration: string;
|
|
84
|
+
bg1: string;
|
|
85
|
+
bg2: string;
|
|
86
|
+
progressBar: string;
|
|
87
|
+
};
|
|
88
|
+
export default abondColors;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
var abondColors = {
|
|
2
|
+
// main background gradients
|
|
3
|
+
white1: '#0E0D16',
|
|
4
|
+
white2: '#161420',
|
|
5
|
+
white3: '#1F1D29',
|
|
6
|
+
white4: '#282632',
|
|
7
|
+
white5: '#312F3A',
|
|
8
|
+
brandPrimary140: '#C1BDE7',
|
|
9
|
+
navBar: 'rgba(22, 20, 32, 0.8)',
|
|
10
|
+
primaryButton: '#6560C5',
|
|
11
|
+
secondary: '#E69275',
|
|
12
|
+
footer: '#000000',
|
|
13
|
+
success: '#38A611',
|
|
14
|
+
error: '#DF4141',
|
|
15
|
+
yellow: '#FFB300',
|
|
16
|
+
// Button colors
|
|
17
|
+
primaryButtonDisable: '#48475B',
|
|
18
|
+
primaryButtonHovered: '#8480D1',
|
|
19
|
+
textDisabledButton: '#73728E',
|
|
20
|
+
// Text-related colors
|
|
21
|
+
text: '#FAFAFA',
|
|
22
|
+
textDisabled: '#424242',
|
|
23
|
+
home: {
|
|
24
|
+
c1: 'radial-gradient(50% 50% at 50% 50%, rgba(217, 217, 217, 0) 0%, rgba(217, 217, 217, 0.02) 100%)',
|
|
25
|
+
c2: 'radial-gradient(50% 50% at 50% 50%, rgba(217, 217, 217, 0) 0%, rgba(217, 217, 217, 0.02) 100%)',
|
|
26
|
+
c3: 'radial-gradient(50% 50% at 50% 50%, rgba(217, 217, 217, 0) 0%, rgba(217, 217, 217, 0.02) 100%)',
|
|
27
|
+
cShadow: 'transparent',
|
|
28
|
+
hideCircles: '#0E0D16',
|
|
29
|
+
title: 'linear-gradient(98.79deg, #6560C5 -2.37%, #E07753 100%)',
|
|
30
|
+
shadowImage: 'rgba(101, 96, 197, 0.25)',
|
|
31
|
+
},
|
|
32
|
+
backgroundDisabled: '#3c3742',
|
|
33
|
+
listTagBg: {
|
|
34
|
+
ape: 'linear-gradient(99.09deg, rgba(161, 101, 82, 0.8) 0%, rgba(255, 179, 0, 0.8) 106.96%)',
|
|
35
|
+
launch: 'rgba(213, 49, 49, 0.2)',
|
|
36
|
+
reserve: 'rgba(90, 208, 109, 0.2)',
|
|
37
|
+
liquidity: 'rgba(60, 106, 181, 0.19)',
|
|
38
|
+
ark: 'rgba(208, 126, 90, 0.8)',
|
|
39
|
+
hot: '#DF4141',
|
|
40
|
+
new: '#38A611',
|
|
41
|
+
default: '#38A611',
|
|
42
|
+
auto: '#DF4141',
|
|
43
|
+
beta: '#38A611',
|
|
44
|
+
max: '#38A611',
|
|
45
|
+
real_yield: '#F0B90B',
|
|
46
|
+
bondLp: 'rgba(254, 185, 1, 0.2)',
|
|
47
|
+
migration: '#6F6AC930',
|
|
48
|
+
cex_fund: 'rgba(213, 49, 49, 0.2)',
|
|
49
|
+
expired: '#E07753',
|
|
50
|
+
permatlock: '#38A611',
|
|
51
|
+
},
|
|
52
|
+
listTagTextColor: {
|
|
53
|
+
liquidity: '#3B78D3',
|
|
54
|
+
cex_fund: '#D53131',
|
|
55
|
+
},
|
|
56
|
+
//
|
|
57
|
+
body: '#FDFBF5',
|
|
58
|
+
lvl1: '#F1EADA',
|
|
59
|
+
lvl2: '#EADFC7',
|
|
60
|
+
primaryBright: '#FAFAFA',
|
|
61
|
+
primaryDark: '#0B0B0B',
|
|
62
|
+
info: '#4D4040',
|
|
63
|
+
secondaryButtonDisableBg: '#F1EADA',
|
|
64
|
+
secondaryButtonDisableColor: 'rgba(66, 66, 66, 0.5)',
|
|
65
|
+
buttonDisabledText: '#A09F9C',
|
|
66
|
+
dividerColor: '#E2E2E2',
|
|
67
|
+
textareaColor: '#4D4040',
|
|
68
|
+
heading: '#4D4040',
|
|
69
|
+
black: '#000000',
|
|
70
|
+
gradient: 'linear-gradient(53.53deg, #A16552 15.88%, #E1B242 92.56%)',
|
|
71
|
+
smartGradient: 'linear-gradient(94.44deg, #BA801E -9.73%, #E7CF67 40.14%, #BA801E 93.01%)',
|
|
72
|
+
white2Opacity09: 'rgba(241, 234, 218, 0.50)',
|
|
73
|
+
radioChecked: '#FAFAFA',
|
|
74
|
+
navMenuLogo: '#C8BA9C',
|
|
75
|
+
input: '#4D4040',
|
|
76
|
+
primaryGray: '#4D40407F',
|
|
77
|
+
gray: '#7A7A7A',
|
|
78
|
+
brown: '#4D4040',
|
|
79
|
+
hoveredYellow: '#FFDA00',
|
|
80
|
+
hoveredSuccess: '#38A611B3',
|
|
81
|
+
hoveredDanger: '#DF4141B3',
|
|
82
|
+
modalOverlay: 'rgba(66, 66, 66, 0.5)',
|
|
83
|
+
opacityBadge: 'rgba(66, 66, 66, 0.5)',
|
|
84
|
+
gnanaWarningBackground: '#FFB300',
|
|
85
|
+
moon: '#7A7A7A',
|
|
86
|
+
island: '#4D4040',
|
|
87
|
+
migration: '#6560C5',
|
|
88
|
+
bg1: 'linear-gradient(180deg, #FFFFFF 0%, #EEDFC7 10%, #FFFFFF 40%, #FEFAE0 50%, #EEDFC7 100%), linear-gradient(180deg, #FEFCEC 27.58%, #EEDFC7 79.74%, #FEFAE0 131.91%, #F5ECDD 154.81%)',
|
|
89
|
+
bg2: 'linear-gradient(180deg, #FEFCEC 27.58%, #EEDFC7 79.74%, #FEFAE0 131.91%, #F5ECDD 154.81%)',
|
|
90
|
+
progressBar: 'linear-gradient(90deg, #312E7A 0%, #5C4FAE 41.5%, #AD6568 74.5%, #AD6E66 100%)',
|
|
91
|
+
};
|
|
92
|
+
export default abondColors;
|