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(branding): Puffer Branding #3

Merged
merged 5 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
23 changes: 11 additions & 12 deletions merkl.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +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"]),
base: createColoring(["#2A35BD", "#BFFF37", "#FFFFFF"], ["#2A35BD", "#BFFF37", "#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 All @@ -69,7 +69,7 @@ export default createConfig({
harm: createColoring(["#d22e14", "#d22e14", "#131620"], ["#FFFFFF", "#40B66B", "white"]),
},
puffer: {
base: createColoring(["#2A35BD", "#BFFF38", "#FFFFFF"], ["#2A35BD", "#BFFF38", "#FFFFFF"]),
base: createColoring(["#2A35BD", "#BFFF37", "#FFFFFF"], ["#2A35BD", "#BFFF37", "#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 +128,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 +191,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
Binary file removed src/customer/assets/fonts/Obviously_Bold.otf
Binary file not shown.
Binary file removed src/customer/assets/fonts/Obviously_Bold.woff
Binary file not shown.
Binary file removed src/customer/assets/fonts/Obviously_Bold.woff2
Binary file not shown.
Binary file removed src/customer/assets/fonts/Obviously_Bold_Italic.otf
Binary file not shown.
Binary file removed src/customer/assets/fonts/Obviously_Bold_Italic.woff
Binary file not shown.
Binary file not shown.
Binary file removed src/customer/assets/fonts/Obviously_Semi.otf
Binary file not shown.
Binary file removed src/customer/assets/fonts/Obviously_Semi.woff
Binary file not shown.
Binary file removed src/customer/assets/fonts/Obviously_Semi.woff2
Binary file not shown.
Binary file removed src/customer/assets/fonts/Obviously_Semi_Italic.otf
Binary file not shown.
Binary file removed src/customer/assets/fonts/Obviously_Semi_Italic.woff
Binary file not shown.
Binary file not shown.
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