Skip to content
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

Up #4

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Up #4

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 24 additions & 72 deletions dist/index.cjs.js

Large diffs are not rendered by default.

96 changes: 24 additions & 72 deletions dist/index.esm.js

Large diffs are not rendered by default.

45,094 changes: 45,094 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

13 changes: 3 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@pancakeswap-libs/uikit",
"version": "0.10.2",
"description": "Set of UI components for pancake projects",
"version": "0.10.3",
"description": "Set of UI components for uponly projects",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"repository": "https://github.com/goosedefi/goose-uikit",
"repository": "https://github.com/uponlydefi/uponly-uikit",
"license": "MIT",
"scripts": {
"build": "rollup -c && tsc -d --emitDeclarationOnly --declarationDir dist",
Expand All @@ -19,12 +19,6 @@
"test": "jest",
"release": "yarn build && np"
},
"husky": {
"hooks": {
"pre-commit": "yarn format",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"jest": {
"setupFilesAfterEnv": [
"<rootDir>/src/setupTests.js"
Expand Down Expand Up @@ -53,7 +47,6 @@
"babel-loader": "^8.1.0",
"babel-plugin-styled-components": "^1.11.1",
"eslint": "^7.19.0",
"husky": "^4.3.0",
"jest": "^26.6.3",
"jest-styled-components": "^7.0.3",
"np": "^7.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/ResetCSS.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const ResetCSS = createGlobalStyle`
box-sizing: border-box;
}
* {
font-family: 'Kanit', sans-serif;
font-family: 'Chakra Petch', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Expand Down
64 changes: 32 additions & 32 deletions src/theme/colors.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Colors } from "./types";

export const baseColors = {
failure: "#ED4B9E",
primary: "#aa8929",
primaryBright: "#aa8929",
primaryDark: "#aa8929",
secondary: "#7645D9",
success: "#31D0AA",
warning: "#FFB237",
failure: "#E11E3B",
primary: "#ffffff",
primaryBright: "#ffffff",
primaryDark: "#ffffff",
secondary: "#316daf",
success: "#ffffff",
warning: "#ff0000",
};

export const brandColors = {
Expand All @@ -17,39 +17,39 @@ export const brandColors = {
export const lightColors: Colors = {
...baseColors,
...brandColors,
background: "#FAF9FA",
backgroundDisabled: "#E9EAEB",
contrast: "#191326",
invertedContrast: "#FFFFFF",
input: "#eeeaf4",
tertiary: "#EFF4F5",
text: "#452A7A",
textDisabled: "#BDC2C4",
textSubtle: "#8f80ba",
borderColor: "#E9EAEB",
card: "#FFFFFF",
background: "#749ece",
backgroundDisabled: "#d5eaff",
contrast: "#00194b",
invertedContrast: "#d5eaff",
input: "#5da0d4",
tertiary: "#003276",
text: "#124996",
textDisabled: "#3e66a8",
textSubtle: "#0c4e93",
borderColor: "#105498",
card: "#d5eaff",
gradients: {
bubblegum: "linear-gradient(139.73deg, #E6FDFF 0%, #F3EFFF 100%)",
bubblegum: "linear-gradient(139.73deg, #3dada3 0%, #44beee 100%)",
},
};

export const darkColors: Colors = {
...baseColors,
...brandColors,
secondary: "#9A6AFF",
background: "#343135",
backgroundDisabled: "#3c3742",
secondary: "#00f4eb",
background: "#00184D",
backgroundDisabled: "#35353f",
contrast: "#FFFFFF",
invertedContrast: "#191326",
input: "#483f5a",
primaryDark: "#0098A1",
tertiary: "#353547",
text: "#EAE2FC",
textDisabled: "#666171",
textSubtle: "#c9c4d4",
borderColor: "#524B63",
card: "#27262c",
invertedContrast: "#000844",
input: "#316daf",
primaryDark: "#316daf",
tertiary: "#000044",
text: "#44beee",
textDisabled: "#44617a",
textSubtle: "#99bde0",
borderColor: "#316daf",
card: "#00102b",
gradients: {
bubblegum: "linear-gradient(139.73deg, #313D5C 0%, #3D2A54 100%)",
bubblegum: "linear-gradient(139.73deg, #316daf 0%, #1e7cd1 100%)",
},
};
6 changes: 3 additions & 3 deletions src/widgets/Menu/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const StyledLink = styled(Link)`
}
}
.desktop-icon {
width: 156px;
width: 310px;
display: none;
${({ theme }) => theme.mediaQueries.nav} {
display: block;
Expand All @@ -50,11 +50,11 @@ const Logo: React.FC<Props> = ({ isPushed, togglePush, isDark, href }) => {
)}
</MenuButton>
{isAbsoluteUrl ? (
<StyledLink as="a" href={href} aria-label="Pancake home page">
<StyledLink as="a" href={href} aria-label="Uponly home page">
{innerLogo}
</StyledLink>
) : (
<StyledLink to={href} aria-label="Pancake home page">
<StyledLink to={href} aria-label="Uponly home page">
{innerLogo}
</StyledLink>
)}
Expand Down
92 changes: 46 additions & 46 deletions src/widgets/Menu/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export const links = [
items: [
{
label: "Exchange",
href: "https://exchange.pancakeswap.finance",
href: "https://swap.uponlydefi.com",
},
{
label: "Liquidity",
href: "https://exchange.pancakeswap.finance/#/pool",
href: "https://swap.uponlydefi.com/#/pool",
},
],
},
Expand Down Expand Up @@ -59,19 +59,19 @@ export const links = [
items: [
{
label: "Overview",
href: "https://pancakeswap.info",
href: "https://swap.uponlydefi.com",
},
{
label: "Tokens",
href: "https://pancakeswap.info/tokens",
href: "https://swap.uponlydefi.com/tokens",
},
{
label: "Pairs",
href: "https://pancakeswap.info/pairs",
href: "https://swap.uponlydefi.com/pairs",
},
{
label: "Accounts",
href: "https://pancakeswap.info/accounts",
href: "https://swap.uponlydefi.com/accounts",
},
],
},
Expand Down Expand Up @@ -99,7 +99,7 @@ export const links = [
// },
{
label: "Github",
href: "https://github.com/goosedefi/",
href: "https://github.com/uponlydefi",
},
{
label: "Docs",
Expand All @@ -120,67 +120,67 @@ export const socials = [
items: [
{
label: "English",
href: "https://t.me/goosedefi",
href: "https://t.me/uponlydefi",
},
// {
// label: "Bahasa Indonesia",
// href: "https://t.me/PancakeSwapIndonesia",
// },
{
label: "中文",
href: "https://t.me/goosefinancechinese",
},
// {
// label: "中文",
// href: "https://t.me/goosefinancechinese",
// },
// {
// label: "Tiếng Việt",
// href: "https://t.me/PancakeSwapVN",
// },
{
label: "Italiano",
href: "https://t.me/goosefinanceitalian",
},
{
label: "русский",
href: "https://t.me/goosefinancerussian",
},
{
label: "Türkiye",
href: "https://t.me/GooseFinanceTurkey",
},
// {
// label: "Italiano",
// href: "https://t.me/goosefinanceitalian",
// },
// {
// label: "русский",
// href: "https://t.me/goosefinancerussian",
// },
// {
// label: "Türkiye",
// href: "https://t.me/GooseFinanceTurkey",
// },
// {
// label: "Português",
// href: "https://t.me/PancakeSwapPortuguese",
// },
{
label: "Español",
href: "https://t.me/goosefinancespanish",
},
{
label: "日本語",
href: "https://t.me/goosefinancejapanese",
},
{
label: "Français",
href: "https://t.me/goosefinancefrench",
},
{
label: "Announcements",
href: "https://t.me/goosefinanceann",
},
{
label: "Price Bot",
href: "https://t.me/BinanceRocketEGG",
},
// {
// label: "Español",
// href: "https://t.me/goosefinancespanish",
// },
// {
// label: "日本語",
// href: "https://t.me/goosefinancejapanese",
// },
// {
// label: "Français",
// href: "https://t.me/goosefinancefrench",
// },
// {
// label: "Announcements",
// href: "https://t.me/goosefinanceann",
// },
// {
// label: "Price Bot",
// href: "https://t.me/BinanceRocketEGG",
// },
],
},
{
label: "Twitter",
icon: "TwitterIcon",
href: "https://twitter.com/goosedefi",
href: "https://twitter.com/UPONLY_DEFI",
},
{
label: "Reddit",
icon: "RedditIcon",
href: "https://www.reddit.com/r/GooseFinanceofficial",
href: "https://www.reddit.com/r/UPONLY_DEFI/",
},
];

Expand Down
Loading