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

add: puffer branding #1

Closed
wants to merge 311 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
c8c3e73
fix: theme usage
clmntsnr Oct 31, 2024
6f50b91
fix
clmntsnr Nov 6, 2024
64502fc
Merge pull request #3 from AngleProtocol/AngleProtocol-main
clmntsnr Nov 6, 2024
7487c09
add: themes
clmntsnr Oct 25, 2024
416822c
add: rough prototype
clmntsnr Oct 25, 2024
0c1df86
initial commit
indaviande Oct 28, 2024
4cd7959
wip
indaviande Oct 28, 2024
f02783e
wip2
indaviande Oct 28, 2024
784536e
ok for testing
indaviande Oct 30, 2024
0a11969
ready for preview
indaviande Oct 30, 2024
7ae610b
dynamic countdown
indaviande Oct 30, 2024
a0cf7b8
typo
indaviande Oct 30, 2024
805c2fe
fix: theme usage
clmntsnr Oct 31, 2024
9c2f0f9
fix: background color
clmntsnr Oct 31, 2024
83b8703
tweak: light theme
clmntsnr Oct 31, 2024
7d9a3d1
add: campaign display with updated api
clmntsnr Oct 29, 2024
d5a10c5
add: icons + campaign controller
clmntsnr Oct 30, 2024
e06fa6a
fix: campaigns
clmntsnr Nov 5, 2024
ca8e510
add: themes
clmntsnr Oct 25, 2024
7f65562
add: rough prototype
clmntsnr Oct 25, 2024
29f25f4
initial commit
indaviande Oct 28, 2024
228cf66
ok for testing
indaviande Oct 30, 2024
6d55bb0
ready for preview
indaviande Oct 30, 2024
af24e8b
dynamic countdown
indaviande Oct 30, 2024
583745b
fix: theme usage
clmntsnr Oct 31, 2024
5d8913a
fix
clmntsnr Nov 6, 2024
4618492
remove: zksync components
clmntsnr Nov 6, 2024
c8ab200
remove: zksync components
clmntsnr Nov 6, 2024
f638ccb
remove
clmntsnr Nov 6, 2024
5706830
lint
clmntsnr Nov 6, 2024
19981ac
fix: headfer
clmntsnr Nov 6, 2024
51d2493
Merge pull request #5 from AngleProtocol/sync-merkl-lite-changes
clmntsnr Nov 6, 2024
9198996
update: dappkit
clmntsnr Nov 6, 2024
96efc27
add: themes
clmntsnr Oct 25, 2024
90fc0d5
add: rough prototype
clmntsnr Oct 25, 2024
c73c7f1
initial commit
indaviande Oct 28, 2024
85d03b2
wip
indaviande Oct 28, 2024
cd5891f
wip2
indaviande Oct 28, 2024
6623cee
ok for testing
indaviande Oct 30, 2024
b3b2ed4
ready for preview
indaviande Oct 30, 2024
e412c04
dynamic countdown
indaviande Oct 30, 2024
eced65b
typo
indaviande Oct 30, 2024
718c1c7
fix: theme usage
clmntsnr Oct 31, 2024
38a41ad
add: campaign display with updated api
clmntsnr Oct 29, 2024
a8a6bba
add: icons + campaign controller
clmntsnr Oct 30, 2024
6859444
fix: campaigns
clmntsnr Nov 5, 2024
dfff9af
initial commit
indaviande Oct 28, 2024
2211c8d
update
clmntsnr Nov 6, 2024
9247204
add: merkl.config file
clmntsnr Nov 6, 2024
1cef46a
Merge branch 'main' into main
clmntsnr Nov 6, 2024
ea5c66e
add: time component
clmntsnr Nov 6, 2024
9950fb3
add: rewards tables draft
clmntsnr Nov 6, 2024
69a73e2
add: rudimentary dockerile
clmntsnr Nov 6, 2024
f92f65e
fix: logs
clmntsnr Nov 6, 2024
978d446
add: gh token
clmntsnr Nov 7, 2024
3aab8c6
remove: zksync
clmntsnr Nov 7, 2024
43e3ecc
ci: add actions
BaptistG Nov 6, 2024
4c17dda
fix
clmntsnr Nov 7, 2024
8eca5dd
fix: SDK_READ_ACCESS_TOKEN
Picodes Nov 8, 2024
3e74522
add: lint check command
clmntsnr Nov 8, 2024
cd985ca
fix: lint
clmntsnr Nov 8, 2024
ad90cdd
fix
clmntsnr Nov 8, 2024
949b3fd
fix: one rule
clmntsnr Nov 8, 2024
674af75
Merge pull request #7 from AngleProtocol/feat/action
clmntsnr Nov 8, 2024
9e1b919
test
clmntsnr Nov 8, 2024
6549e71
update: dappkit
clmntsnr Nov 8, 2024
c3cc750
add: app checks
clmntsnr Nov 8, 2024
d1234e7
big: cleanup
clmntsnr Nov 11, 2024
7f9912a
cleanup: unsued files
clmntsnr Nov 11, 2024
8fc3c7a
cleanup
clmntsnr Nov 11, 2024
bf04b7a
fix: build
clmntsnr Nov 11, 2024
4d4e61c
update: dappkit
clmntsnr Nov 11, 2024
0b9292e
fix: lint
clmntsnr Nov 11, 2024
f61d5ee
Merge pull request #11 from AngleProtocol/cleanup-and-rewards
clmntsnr Nov 11, 2024
b849917
fix: type
clmntsnr Nov 11, 2024
b7fb96d
fix: submodule access
clmntsnr Nov 11, 2024
f886aee
add: wagmi
clmntsnr Nov 11, 2024
11433b8
update: dappkit
clmntsnr Nov 11, 2024
da9995a
fix: build
clmntsnr Nov 11, 2024
667e610
fix: missing public dir
clmntsnr Nov 11, 2024
0c78c3e
add start scripts
clmntsnr Nov 11, 2024
5cdbaf0
add: build
clmntsnr Nov 12, 2024
cc3ac1f
fix
clmntsnr Nov 13, 2024
e95bfa5
push
clmntsnr Nov 13, 2024
e7bfdf3
add
clmntsnr Nov 15, 2024
9913891
stash:
clmntsnr Nov 18, 2024
dac3c6e
add: bigint input
clmntsnr Nov 18, 2024
daa57a2
polish: tester
clmntsnr Nov 19, 2024
504d33e
fix: tokens
clmntsnr Nov 19, 2024
ae271e8
update: dappkit
clmntsnr Nov 19, 2024
dc3fae2
fix;
clmntsnr Nov 19, 2024
0e23556
Merge pull request #13 from AngleProtocol/fixes
clmntsnr Nov 19, 2024
5b8509f
fix: show inactive when no live campaigns
clmntsnr Nov 19, 2024
1f80ddb
rm: log
clmntsnr Nov 20, 2024
1e6c72b
Merge pull request #14 from AngleProtocol/cleanup
clmntsnr Nov 20, 2024
b044ecd
update: rewards route
clmntsnr Nov 20, 2024
e4ff5db
add: rewards table
clmntsnr Nov 21, 2024
4a74149
Merge pull request #16 from AngleProtocol/claimable-rewards
clmntsnr Nov 21, 2024
8815ab6
fix: rewards
clmntsnr Nov 22, 2024
b229591
add: rewards
clmntsnr Nov 22, 2024
ed6bc88
add: rewardxs
clmntsnr Nov 25, 2024
2381b75
fix: lint
clmntsnr Nov 25, 2024
40f5505
rm: /app
clmntsnr Nov 25, 2024
a8619d2
remove: themes
clmntsnr Nov 25, 2024
65cef37
add: customer style index
clmntsnr Nov 25, 2024
f6dfb7b
update: dappkit
clmntsnr Nov 25, 2024
3d3cb20
add: transaction
clmntsnr Nov 25, 2024
523fadf
fix: unclaimed
clmntsnr Nov 26, 2024
bfec10d
finialize: rewards
clmntsnr Nov 26, 2024
96c37af
Merge pull request #20 from AngleProtocol/add-claim-transaction
clmntsnr Nov 26, 2024
349fd88
fix: index.css
clmntsnr Nov 26, 2024
d8596d6
refactor: remove unused variables and console logs
hugolxt Nov 26, 2024
49f6758
cleaning lint errors
hugolxt Nov 26, 2024
2ce0039
fixing ci
hugolxt Nov 26, 2024
d522f87
Merge branch 'main' into clean/remove-logs
hugolxt Nov 26, 2024
49f6651
dupplicate import
hugolxt Nov 26, 2024
8d8f7d9
Merge pull request #21 from AngleProtocol/clean/remove-logs
hugolxt Nov 26, 2024
f911925
add: pagination
clmntsnr Nov 26, 2024
fcacce9
fix: lint
clmntsnr Nov 26, 2024
83515f7
cleanup
clmntsnr Nov 26, 2024
1fff7d2
cleanup
clmntsnr Nov 26, 2024
17800dc
Merge pull request #22 from AngleProtocol/opportunity-paginatiojn
clmntsnr Nov 26, 2024
67e13e8
update: dappkit
clmntsnr Nov 26, 2024
9ea413f
clean
clmntsnr Nov 26, 2024
9157c48
clean
clmntsnr Nov 26, 2024
c2bfe0d
add: chains
clmntsnr Nov 26, 2024
cd1c345
fix: lint
clmntsnr Nov 26, 2024
ce81acf
update: dappkit
clmntsnr Nov 26, 2024
d8ae0c1
move: sizes in config
clmntsnr Nov 26, 2024
4548850
replace header & footer from zksync
indaviande Nov 25, 2024
059ec8e
header/footer ongoing
indaviande Nov 26, 2024
fe128e9
header/footer/layermenu/socials ready
indaviande Nov 26, 2024
a32d4a0
remove --CLIENT-- and add DSStore in subfolders
indaviande Nov 26, 2024
0024a43
remove all DS_Store files
indaviande Nov 26, 2024
962a55b
remove obviously for space grotesk
indaviande Nov 27, 2024
0decd94
remove discord link
indaviande Nov 27, 2024
80a9dcf
re-arrange styles
indaviande Nov 27, 2024
4ce6911
remove zindex
indaviande Nov 27, 2024
ae9a71a
fix url
indaviande Nov 27, 2024
1f83af3
move folder to assets
indaviande Nov 27, 2024
0fa5a59
fix paths
indaviande Nov 27, 2024
c410e3b
Merge pull request #23 from AngleProtocol/front/header-footer
indaviande Nov 27, 2024
b343689
feat: add license
sogipec Nov 27, 2024
3b06eea
Merge pull request #24 from AngleProtocol/license
Picodes Nov 27, 2024
bd7de55
wip leaderboard and opportunity page
hugolxt Nov 27, 2024
b9c9fce
fix: pagination
clmntsnr Nov 27, 2024
da097b4
all Tags implemented
indaviande Nov 27, 2024
6167f06
improve search
indaviande Nov 27, 2024
a61895f
Hero section
indaviande Nov 28, 2024
86e557d
xl screens
indaviande Nov 28, 2024
2fd3a6f
push Hash
indaviande Nov 28, 2024
f8e2a25
add: opportunity title styled
clmntsnr Nov 28, 2024
ec4115f
user page
indaviande Nov 28, 2024
5ae4613
breadcrumbs
indaviande Nov 28, 2024
d1dea86
commit hash
indaviande Nov 28, 2024
5d0602d
commit hash
indaviande Nov 29, 2024
d37b741
remove double search
indaviande Nov 29, 2024
2e4779d
reduce icon if severals in HEro
indaviande Nov 29, 2024
ca3cb4d
commit hash
indaviande Nov 29, 2024
23d775c
merge commit hash
indaviande Nov 29, 2024
4e6212c
Merge pull request #25 from AngleProtocol/v1/front
indaviande Nov 29, 2024
73abd22
:construction: wip base api services
hugolxt Nov 29, 2024
f7f7f48
puffer + improvements
clmntsnr Nov 29, 2024
5726b47
reset: config
clmntsnr Nov 29, 2024
be739c5
use: services
clmntsnr Nov 29, 2024
6dfa7b3
fix: tag & error
clmntsnr Nov 29, 2024
785884c
fix: components
clmntsnr Nov 29, 2024
d5269a4
remove: zksync tag
clmntsnr Nov 29, 2024
61ecaf9
Merge pull request #27 from AngleProtocol/tweak-config
clmntsnr Nov 29, 2024
33b5e04
update: dappkit
clmntsnr Nov 29, 2024
dbe01a4
fix: config
clmntsnr Nov 29, 2024
d2fdc92
:constuction: wip merge
hugolxt Dec 2, 2024
d07ff1b
Merge remote-tracking branch 'origin/main' into feat/opportunity-page
hugolxt Dec 2, 2024
df05284
fixes
hugolxt Dec 2, 2024
61a5681
services cleaning
hugolxt Dec 2, 2024
6c4da0f
primitives tags and campaign sorting
hugolxt Dec 2, 2024
a49681a
refactor: improve query parameter handling and enhance CampaignServic…
hugolxt Dec 2, 2024
4926301
refactor: remove unused getCampaigns method and update campaign retri…
hugolxt Dec 2, 2024
5be40d9
change tag modal + wallet modal
indaviande Nov 29, 2024
814ec2a
Divider component with 5 looks
indaviande Dec 2, 2024
fc9aca4
change Header on mobile
indaviande Dec 2, 2024
622780f
add Switch Mode to mobile
indaviande Dec 2, 2024
d41b869
commit hash
indaviande Dec 2, 2024
7d0222a
change ratio of hero image
indaviande Dec 2, 2024
e9a3f1c
lint
indaviande Dec 3, 2024
081c062
change version of merkl-api
indaviande Dec 3, 2024
f8be1b4
change ersion of merkl-api
indaviande Dec 3, 2024
67e48cf
change index by unique key
indaviande Dec 3, 2024
a4a55ae
lint
indaviande Dec 3, 2024
c319815
Merge pull request #30 from AngleProtocol/front/opportunities
indaviande Dec 3, 2024
d8d37d8
refactor: update campaign handling in various components and services
hugolxt Dec 3, 2024
cfa2115
lint
hugolxt Dec 3, 2024
47733d0
Merge remote-tracking branch 'origin/main' into feat/opportunity-page
hugolxt Dec 3, 2024
087bb85
lint
hugolxt Dec 3, 2024
69bb034
update merkl api
hugolxt Dec 3, 2024
05f6c3f
Merge pull request #31 from AngleProtocol/feat/opportunity-page
hugolxt Dec 3, 2024
d74f196
update: breadcrumbs
clmntsnr Dec 3, 2024
f41304f
restore: tabs
clmntsnr Dec 3, 2024
cd405d9
fix: layout
clmntsnr Dec 3, 2024
1ae295b
fix: loaders
clmntsnr Dec 3, 2024
6c36964
update: api package
clmntsnr Dec 3, 2024
d6b5ee5
add: protocols page
clmntsnr Dec 3, 2024
0a64713
fix: tokens
clmntsnr Dec 3, 2024
f535e15
fix: files
clmntsnr Dec 3, 2024
f56246d
fix: layout
clmntsnr Dec 3, 2024
4e32ae4
fix: lint
clmntsnr Dec 3, 2024
3a66bd3
fix: lint
clmntsnr Dec 3, 2024
3be495f
Merge pull request #32 from AngleProtocol/fix-low-hanging-fruits
clmntsnr Dec 3, 2024
2dbbee0
add: chains
clmntsnr Dec 3, 2024
6c57fac
fix: lint
clmntsnr Dec 3, 2024
1f10990
Merge pull request #33 from AngleProtocol/fix-low-hanging-fruits
clmntsnr Dec 3, 2024
a0d8ee7
wip
indaviande Dec 3, 2024
6fe297b
header ok
indaviande Dec 3, 2024
1bc7bb4
Select + Connect wallet modal
indaviande Dec 3, 2024
415db6f
lint
indaviande Dec 3, 2024
ceb90d5
Merge pull request #34 from AngleProtocol/buttons/modals
clmntsnr Dec 3, 2024
9516043
draft
clmntsnr Dec 3, 2024
402a078
add: explorer to tokens
clmntsnr Dec 3, 2024
7fc53fd
update: dappkit
clmntsnr Dec 3, 2024
4afbfa9
fix: lint
clmntsnr Dec 3, 2024
3e6eefc
Merge pull request #35 from AngleProtocol/complete-rewards
clmntsnr Dec 3, 2024
ba67d67
fix: dashboard link
clmntsnr Dec 3, 2024
902a023
fixes
clmntsnr Dec 3, 2024
84ca669
update: dappkit
clmntsnr Dec 3, 2024
b59b7fc
Merge pull request #36 from AngleProtocol/complete-rewards
clmntsnr Dec 3, 2024
d7a4054
flatten amount+price
clmntsnr Dec 4, 2024
35fd7f9
fix: dashboard tags
clmntsnr Dec 4, 2024
f7a2838
add: user input in dashboard
clmntsnr Dec 4, 2024
c7db3da
small fixes
clmntsnr Dec 4, 2024
ee1af7c
update: dappkit
clmntsnr Dec 4, 2024
1a5985e
chore: clean README and remove SDK_ACCESS_TOKEN
Picodes Dec 4, 2024
1522250
Merge pull request #38 from AngleProtocol/dashboard-crunch
clmntsnr Dec 4, 2024
c6f1f9b
bump: dappkit
Picodes Dec 4, 2024
80cb9c9
Merge pull request #39 from AngleProtocol/clean-deployment
clmntsnr Dec 4, 2024
a229492
rm bunfig
clmntsnr Dec 4, 2024
1fef689
doc: add hosting readme
BaptistG Dec 4, 2024
3f4daeb
Merge pull request #40 from AngleProtocol/doc/hosting
Picodes Dec 4, 2024
339baa4
fix: typos
Picodes Dec 4, 2024
70a0fe0
bump: dappkit
Picodes Dec 4, 2024
0c19ecb
Puffer styles (#2)
clmntsnr Dec 4, 2024
c1750aa
update: merkl app (#5)
clmntsnr Dec 16, 2024
7b41a58
fix: adppkit versio (#6)
clmntsnr Dec 16, 2024
a6dc822
Merge remote-tracking branch 'old/main' into puffer-branding
clmntsnr Dec 16, 2024
6973212
push hero.jpg
indaviande Dec 16, 2024
1939e04
changes
indaviande Dec 16, 2024
6fbd522
puffer
indaviande Dec 16, 2024
e2e57df
change things
indaviande Dec 16, 2024
154a020
update favicon
indaviande Dec 16, 2024
dbc0e8c
update title
indaviande Dec 16, 2024
483031a
new hero visual
indaviande Dec 16, 2024
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
Binary file modified bun.lockb
Binary file not shown.
42 changes: 10 additions & 32 deletions merkl.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,34 +42,13 @@ import { eip712WalletActions } from "viem/zksync";
import { coinbaseWallet, walletConnect } from "wagmi/connectors";

export default createConfig({
appName: "Merkl",
modes: ["dark", "light"],
defaultTheme: "ignite",
appName: "Puffer",
modes: ["light"],
defaultTheme: "puffer",
deposit: false,
themes: {
ignite: {
base: createColoring(["#1755F4", "#FF7900", "#0D1530"], ["#1755F4", "#FF7900", "#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"]),
},
merkl: {
base: createColoring(["#1755F4", "#FF7900", "#0D1530"], ["#1755F4", "#FF7900", "#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"]),
},
backoffice: {
base: createColoring(["#8B8D98", "#9984D2", "#000000"], ["#8B8D98", "#9984D2", "#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", "#BFFF38", "#FFFFFF"], ["#2A35BD", "#BFFF38", "#FFFFFF"]),
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"]),
Expand Down Expand Up @@ -128,13 +107,12 @@ export default createConfig({
// },
},
socials: {
discord: "",
telegram: "https://t.me/+2T0RNabX2ANkMzAx",
x: "https://x.com/zksyncignite",
github: "",
discord: "https://discord.com/invite/pufferfi",
telegram: "https://t.me/puffer_fi",
x: "https://x.com/puffer_finance",
github: "https://github.com/PufferFinance",
},
links: {
docs: "https://docs.merkl.xyz/",
merkl: "https://merkl.xyz/",
merklTermsConditions: "https://app.merkl.xyz/merklTerms.pdf",
merklPrivacy: "https://privacy.angle.money",
Expand Down Expand Up @@ -192,8 +170,8 @@ export default createConfig({
customStoragePrefix: "wagmi",
projectId: "26c912aadd2132cd869a5edc00aeea0f",
metadata: {
name: "Merkl Lite",
description: "Merkl Lite",
name: "Puffer",
description: "Puffer",
url: "https://app.merkl.xyz.com",
icons: [],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/dappkit
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.
173 changes: 92 additions & 81 deletions src/components/composite/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
import { useLocation } from "@remix-run/react";
import { Container, Divider, Group, Icon, type IconProps, Icons, Tabs, Text, Title, Value } from "dappkit";
import { Button } from "dappkit";
import {
Button,
Container,
Divider,
Group,
Icon,
type IconProps,
Icons,
OverrideTheme,
Tabs,
Text,
Title,
Value,
} from "dappkit";
import config from "merkl.config";
import type { PropsWithChildren, ReactNode } from "react";

Expand Down Expand Up @@ -35,90 +47,89 @@ export default function Hero({
const location = useLocation();
return (
<>
{/* TODO: Align lines & descriptions on all pages */}
{/* TODO: On sub-pages (all pages except Opportunities): Replace the banner by a color */}
<Group
className={`${
location?.pathname === "/" || location?.pathname === "/opportunities" ? "bg-cover" : "bg-main-6"
} flex-row justify-between bg-no-repeat xl:aspect-auto xl:min-h-[350px] aspect-[1440/300]`}
style={{
backgroundImage:
location?.pathname === "/" || location?.pathname === "/opportunities"
? `url('${config.images.hero}')`
: "none",
}}>
<Container>
<Group className="flex-col h-full py-xl gap-xl lg:gap-xs">
<Group className="items-center" size="sm">
<Button to={navigation?.link ?? "/"} look="soft" bold size="xs">
Home
</Button>
{breadcrumbs?.map(breadcrumb => {
if (breadcrumb.component) return <>{breadcrumb.component}</>;
return (
<Button key={breadcrumb.link} to={breadcrumb.link} look="soft" size="xs">
<Icon remix="RiArrowRightSLine" />
{breadcrumb.name}
</Button>
);
})}
</Group>
<Group className="grow items-center justify-between gap-xl lg:gap-xl*4">
<Group className="flex-col flex-1 gap-xl lg:gap-lg">
<Group>
<Group className="items-center gap-0 md:gap-lg">
{!!icons && (
<Icons size="lg">
{icons?.length > 1
? icons?.map(icon => (
<Icon
className="hidden md:block text-main-12 !w-lg*4 !h-lg*4"
key={`${Object.values(icon)}`}
{...icon}
/>
))
: icons?.map(icon => (
<Icon
className="hidden md:block text-main-12 !w-xl*4 !h-xl*4"
key={`${Object.values(icon)}`}
{...icon}
/>
))}
</Icons>
)}
<Title h={1} size={2}>
{title}
</Title>
<OverrideTheme mode="light">
<Group
className={`${
location?.pathname === "/" || location?.pathname === "/opportunities" ? "bg-cover" : "bg-main-6"
} flex-row justify-between bg-no-repeat xl:aspect-auto xl:min-h-[350px] aspect-[1440/300]`}
style={{
backgroundImage:
location?.pathname === "/" || location?.pathname === "/opportunities"
? `url('${config.images.hero}')`
: "none",
}}>
<Container>
<Group className="flex-col h-full py-xl gap-xl lg:gap-xs">
<Group className="items-center" size="sm">
<Button to={navigation?.link ?? "/"} look="soft" bold size="xs">
Home
</Button>
{breadcrumbs?.map(breadcrumb => {
if (breadcrumb.component) return <>{breadcrumb.component}</>;
return (
<Button key={breadcrumb.link} to={breadcrumb.link} look="soft" size="xs">
<Icon remix="RiArrowRightSLine" />
{breadcrumb.name}
</Button>
);
})}
</Group>
<Group className="grow items-center justify-between gap-xl lg:gap-xl*4">
<Group className="flex-col flex-1 gap-xl lg:gap-lg">
<Group>
<Group className="items-center gap-0 md:gap-lg">
{!!icons && (
<Icons size="lg">
{icons?.length > 1
? icons?.map(icon => (
<Icon
className="hidden md:block text-main-12 !w-lg*4 !h-lg*4"
key={`${Object.values(icon)}`}
{...icon}
/>
))
: icons?.map(icon => (
<Icon
className="hidden md:block text-main-12 !w-xl*4 !h-xl*4"
key={`${Object.values(icon)}`}
{...icon}
/>
))}
</Icons>
)}
<Title h={1} size={2}>
{title}
</Title>
</Group>
</Group>
<Divider look="base" />
{!!description && (
<Text size="lg" bold>
{description}
</Text>
)}
{!!tags && <Group className="mb-lg">{tags}</Group>}
</Group>
<Divider look="base" />
{!!description && (
<Text size="lg" bold>
{description}
</Text>
{!!sideDatas && (
<Group className="w-full lg:w-auto lg:flex-col mr-xl*2" size="lg">
{sideDatas.map(data => (
<Group key={data.key} className="flex-col" size="xs">
<Text size={4} className="!text-main-12">
{data.data}
</Text>

<Text size="md" bold>
{data.label}
</Text>
</Group>
))}
</Group>
)}
{!!tags && <Group className="mb-lg">{tags}</Group>}
</Group>
{!!sideDatas && (
<Group className="w-full lg:w-auto lg:flex-col mr-xl*2" size="lg">
{sideDatas.map(data => (
<Group key={data.key} className="flex-col" size="xs">
<Text size={4} className="!text-main-12">
{data.data}
</Text>

<Text size="md" bold>
{data.label}
</Text>
</Group>
))}
</Group>
)}
</Group>
</Group>
</Container>
</Group>

</Container>
</Group>
</OverrideTheme>
{!!tabs && <Tabs tabs={tabs} look="base" size="lg" />}

<div>{children}</div>
Expand Down
1 change: 1 addition & 0 deletions src/config/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type MerklConfig<T extends Themes> = {
spacing: { [Size in (typeof sizeScale)[number]]: number };
radius: { [Size in (typeof sizeScale)[number]]: number };
};
fonts?: { title: string[]; text: string[]; mono: string[] };
tags?: string[];
defaultTheme: keyof T;
deposit?: boolean;
Expand Down
Binary file added src/customer/assets/fonts/Recoleta-Bold.otf
Binary file not shown.
Binary file added src/customer/assets/fonts/Recoleta-Bold.ttf
Binary file not shown.
Binary file added src/customer/assets/fonts/Recoleta-Bold.woff
Binary file not shown.
Binary file added src/customer/assets/fonts/Recoleta-Bold.woff2
Binary file not shown.
Loading
Loading