Skip to content

Commit

Permalink
Merge pull request #2 from PufferFinance/3022-merge-puffer-branding
Browse files Browse the repository at this point in the history
3022 merge puffer branding
  • Loading branch information
guestn authored Jan 2, 2025
2 parents 481d678 + 5a30c4e commit 36433b7
Show file tree
Hide file tree
Showing 133 changed files with 3,198 additions and 1,488 deletions.
56 changes: 0 additions & 56 deletions .github/workflows/update_production.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/update_staging.yml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ For detailed terms and conditions, refer to the [`LICENSE`](./LICENSE) file in t
# Welcome to Merkl Lite !

## Prerequisites

- [Bun](https://bun.sh/)
- [Remix](https://remix.run/docs)

Expand Down
Binary file modified bun.lockb
Binary file not shown.
125 changes: 67 additions & 58 deletions merkl.config.ts
Original file line number Diff line number Diff line change
@@ -1,70 +1,58 @@
import { createColoring } from "dappkit";
import { createConfig } from "src/config/type";
import { createClient, custom, http } from "viem";
import hero from "src/customer/assets/images/hero.jpg?url";
import { http, createClient, custom } from "viem";
import {
mainnet,
optimism,
rootstock,
bsc,
gnosis,
thunderCore,
fuse,
polygon,
manta,
xLayer,
fantom,
fraxtal,
filecoin,
zksync,
worldchain,
arbitrum,
astar,
polygonZkEvm,
coreDao,
moonbeam,
sei,
astarZkEVM,
mantle,
avalanche,
base,
blast,
bob,
bsc,
coreDao,
etherlink,
fantom,
filecoin,
fraxtal,
fuse,
gnosis,
immutableZkEvm,
mode,
arbitrum,
avalanche,
linea,
bob,
blast,
taiko,
lisk,
mainnet,
manta,
mantle,
mode,
moonbeam,
optimism,
polygon,
polygonZkEvm,
rootstock,
scroll,
sei,
taiko,
thunderCore,
worldchain,
xLayer,
zksync,
} from "viem/chains";
import { coinbaseWallet, walletConnect } from "wagmi/connectors";
import hero from "src/customer/assets/images/hero.jpg?url";
import { eip712WalletActions } from "viem/zksync";
import { coinbaseWallet, walletConnect } from "wagmi/connectors";

export default createConfig({
appName: "Puffer",
defaultTheme: "puffer",
modes: ["light"],
defaultTheme: "puffer",
deposit: false,
themes: {
merkl: {
base: createColoring(
["#2A35BD", "#F5F9FF", "#FFFFFF"],
["#2A35BD", "#F5F9FF", "#FFFFFF"]
),
info: createColoring(
["#2ABDFF", "#2ABDFF", "#131620"],
["#FFFFFF", "#40B66B", "white"]
),
good: createColoring(
["#40B66B", "#40B66B", "#131620"],
["#FFFFFF", "#40B66B", "white"]
),
warn: createColoring(
["#ff9600", "#ff9600", "#131620"],
["#FFFFFF", "#40B66B", "white"]
),
harm: createColoring(
["#d22e14", "#d22e14", "#131620"],
["#FFFFFF", "#40B66B", "white"]
),
puffer: {
base: createColoring(["#2A35BD", "#F5F9FF", "#FFFFFF"], ["#2A35BD", "#F5F9FF", "#FFFFFF"]),
info: createColoring(["#2ABDFF", "#2ABDFF", "#131620"], ["#FFFFFF", "#40B66B", "white"]),
good: createColoring(["#40B66B", "#40B66B", "#131620"], ["#FFFFFF", "#40B66B", "white"]),
warn: createColoring(["#ff9600", "#ff9600", "#131620"], ["#FFFFFF", "#40B66B", "white"]),
harm: createColoring(["#d22e14", "#d22e14", "#131620"], ["#FFFFFF", "#40B66B", "white"]),
},
},
sizing: {
Expand All @@ -76,7 +64,7 @@ export default createConfig({
hero: hero,
},
routes: {
homepage: {
home: {
icon: "RiHomeFill",
route: "/",
key: crypto.randomUUID(),
Expand All @@ -91,16 +79,32 @@ export default createConfig({
// route: "/protocols",
// key: crypto.randomUUID(),
// },
terms: {
icon: "RiCompassesLine",
route: "/terms",
// bridge: {
// icon: "RiCompassesLine",
// route: "/bridge",
// key: crypto.randomUUID(),
// },
docs: {
icon: "RiFile4Fill",
external: true,
route: "https://docs.merkl.xyz/",
key: crypto.randomUUID(),
},
privacy: {
icon: "RiInformationFill",
route: "/privacy",
faq: {
icon: "RiQuestionFill",
route: "/faq",
key: crypto.randomUUID(),
},
// terms: {
// icon: "RiCompassesLine",
// route: "/terms",
// key: crypto.randomUUID(),
// },
// privacy: {
// icon: "RiInformationFill",
// route: "/privacy",
// key: crypto.randomUUID(),
// },
},
socials: {
discord: "https://discord.com/invite/pufferfi",
Expand All @@ -110,13 +114,17 @@ export default createConfig({
},
links: {
merkl: "https://merkl.xyz/",
merklTermsConditions: "https://app.merkl.xyz/merklTerms.pdf",
merklPrivacy: "https://privacy.angle.money",
},
footerLinks: [],
wagmi: {
chains: [
mainnet,
optimism,
rootstock,
bsc,
lisk,
gnosis,
thunderCore,
fuse,
Expand All @@ -126,6 +134,7 @@ export default createConfig({
fantom,
fraxtal,
filecoin,
etherlink,
zksync,
worldchain,
astar,
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"start": "bun run scripts/start.ts",
"build": "remix vite:build",
"dev": "remix vite:dev --host",
"lint": "biome check --fix ./src",
"lint:ci": "biome check --diagnostic-level error ./src",
"lint": "biome check --fix ./src ./*.ts",
"lint:ci": "biome check --diagnostic-level error ./src ./*.ts",
"serve": "remix-serve ./build/server/index.js",
"typecheck": "tsc"
},
Expand All @@ -17,10 +17,10 @@
],
"dependencies": {
"@acab/ecsstatic": "^0.8.0",
"@merkl/api": "0.10.78",
"@ariakit/react": "^0.4.12",
"@elysiajs/eden": "^1.1.3",
"@emotion/css": "^11.13.4",
"@merkl/api": "0.10.156",
"@radix-ui/react-accordion": "^1.2.1",
"@radix-ui/react-scroll-area": "^1.2.0",
"@remix-run/dev": "^2.11.2",
Expand All @@ -39,6 +39,7 @@
"lucide-react": "^0.439.0",
"match-sorter": "^6.3.4",
"moment": "^2.30.1",
"node-cache": "^5.1.2",
"qs": "^6.13.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand All @@ -48,7 +49,7 @@
"tailwindcss": "^3.4.12",
"tailwindcss-animate": "^1.0.7",
"typedoc": "^0.26.7",
"viem": "2.x",
"viem": "2.21.54",
"vite-plugin-dts": "^4.2.1",
"wagmi": "^2.12.29",
"zustand": "^5.0.0-rc.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/dappkit
Submodule dappkit updated 60 files
+0 −25 .github/workflows/build.yml
+28 −0 .github/workflows/code_quality.yml
+1 −1 README.md
+76 −0 biome.json
+ bun.lockb
+9 −5 package.json
+4 −0 src/assets/walletCoinbase.svg
+20 −0 src/assets/walletConnect.svg
+4 −0 src/components.ts
+18 −0 src/components/dapp/Connected.tsx
+1 −1 src/components/dapp/Countdown.tsx
+20 −13 src/components/dapp/TransactionButton.tsx
+1 −1 src/components/dapp/TransactionHelper.tsx
+38 −62 src/components/dapp/WalletButton.tsx
+45 −9 src/components/dapp/WalletConnectors.tsx
+3 −3 src/components/extenders/Card.tsx
+77 −20 src/components/extenders/Dropdown.tsx
+1 −1 src/components/extenders/Group.tsx
+6 −14 src/components/extenders/Icons.tsx
+7 −37 src/components/extenders/Modal.tsx
+65 −94 src/components/extenders/Select.tsx
+4 −4 src/components/primitives/Accordion.tsx
+25 −1 src/components/primitives/Box.tsx
+17 −24 src/components/primitives/Button.tsx
+15 −7 src/components/primitives/Checkbox.tsx
+3 −5 src/components/primitives/Divider.tsx
+0 −4 src/components/primitives/EventBlocker.tsx
+2 −4 src/components/primitives/Hash.tsx
+24 −28 src/components/primitives/Icon.tsx
+3 −2 src/components/primitives/Image.tsx
+33 −50 src/components/primitives/Input.tsx
+26 −6 src/components/primitives/List.tsx
+5 −2 src/components/primitives/PrimitiveTag.tsx
+1 −1 src/components/primitives/Scroll.tsx
+1 −1 src/components/primitives/Slider.tsx
+2 −2 src/components/primitives/Space.tsx
+39 −78 src/components/primitives/Table.tsx
+185 −0 src/components/primitives/Tabs.tsx
+35 −44 src/components/primitives/Text.tsx
+10 −8 src/components/primitives/Time.tsx
+17 −10 src/components/primitives/Title.tsx
+3 −3 src/components/primitives/Tooltip.tsx
+3 −3 src/components/primitives/Value.tsx
+11 −7 src/context/Dapp.context.tsx
+4 −4 src/context/Theme.context.tsx
+19 −13 src/context/Wallet.context.tsx
+22 −0 src/hooks/events/useOverflowing.tsx
+1 −1 src/hooks/events/useShortcut.tsx
+1 −1 src/hooks/theming/useThemedVariables.tsx
+6 −9 src/hooks/useClipboard.tsx
+51 −11 src/hooks/useWalletState.tsx
+16 −5 src/theming/coloring.ts
+1 −1 src/theming/tailwind.ts
+106 −1 src/utils/css.ts
+1 −0 src/utils/event.ts
+0 −14 src/utils/format.ts
+42 −0 src/utils/formatter.service.ts
+22 −11 src/utils/tailwind.ts
+1 −2 src/utils/types.ts
+28 −0 tsconfig.json
Binary file added public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/favicon-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.ico
100644 → 100755
Binary file not shown.
3 changes: 3 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Puffer app",
"short_name": "Puffer",
"icons": [
{
"src": "/web-app-manifest-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/web-app-manifest-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
Binary file added public/web-app-manifest-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/web-app-manifest-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 36433b7

Please sign in to comment.