diff --git a/.changeset/yellow-spies-listen.md b/.changeset/yellow-spies-listen.md
new file mode 100644
index 000000000..ed88ba13f
--- /dev/null
+++ b/.changeset/yellow-spies-listen.md
@@ -0,0 +1,5 @@
+---
+"@carrot-kpi/host-frontend": minor
+---
+
+Update UI in campaigns page to conform to the new enforced max width aesthetic
diff --git a/packages/frontend/src/components/layout/index.tsx b/packages/frontend/src/components/layout/index.tsx
index 54e7e7814..8729b849c 100644
--- a/packages/frontend/src/components/layout/index.tsx
+++ b/packages/frontend/src/components/layout/index.tsx
@@ -7,10 +7,11 @@ import {
} from "../../constants";
import { CarrotMarquee } from "../ui/carrot-marquee";
import { Footer } from "../ui/footer";
-import { Navbar } from "../ui/navbar";
+import { Navbar, type NavbarProps } from "../ui/navbar";
interface LayoutProps {
navbarLinks?: NavbarLink[];
+ navbarBgColor?: NavbarProps["bgColor"];
noNavbar?: boolean;
footerLinks?: FooterLink[];
children?: ReactNode;
@@ -18,13 +19,19 @@ interface LayoutProps {
export const Layout = ({
navbarLinks,
+ navbarBgColor,
noNavbar,
footerLinks,
children,
}: LayoutProps) => {
return (
- {!noNavbar &&
}
+ {!noNavbar && (
+
+ )}
{children}
diff --git a/packages/frontend/src/components/ui/navbar/index.tsx b/packages/frontend/src/components/ui/navbar/index.tsx
index 5ef9d8208..56fc33ed9 100644
--- a/packages/frontend/src/components/ui/navbar/index.tsx
+++ b/packages/frontend/src/components/ui/navbar/index.tsx
@@ -10,15 +10,30 @@ import { PreferencesPopover } from "./popovers/preferences";
import { useClickAway } from "react-use";
import { NavbarVerticalLayout } from "./vertical-layout";
import type { NavbarLink } from "../../../constants";
+import { cva } from "class-variance-authority";
+
+const rootStyles = cva(
+ ["flex", "justify-center", "px-4", "xl:px-32", "bg-grid-light"],
+ {
+ variants: {
+ bgColor: {
+ orange: ["bg-orange"],
+ transparent: ["bg-transparent"],
+ },
+ },
+ },
+);
export interface NavbarProps {
mode?: "standard" | "modal";
+ bgColor?: "transparent" | "orange";
onDismiss?: () => void;
links?: NavbarLink[];
}
export const Navbar = ({
mode = "standard",
+ bgColor = "transparent",
onDismiss,
links = [],
}: NavbarProps) => {
@@ -58,7 +73,7 @@ export const Navbar = ({
links={links}
onNavbarClose={() => setOpen(false)}
/>
-
+
diff --git a/packages/frontend/src/pages/campaigns/index.tsx b/packages/frontend/src/pages/campaigns/index.tsx
index 0876092f9..b69f933b5 100644
--- a/packages/frontend/src/pages/campaigns/index.tsx
+++ b/packages/frontend/src/pages/campaigns/index.tsx
@@ -115,45 +115,41 @@ export const Campaigns = () => {
);
return (
-
-
-
-
-
- {t("campaign.all")}
-
-
-
-
-
-
-
+
+
+ {t("campaign.all")}
+
+
+
+
+
+
diff --git a/packages/frontend/src/pages/campaigns/top-nav/index.tsx b/packages/frontend/src/pages/campaigns/top-nav/index.tsx
index 7474e678b..c109051a8 100644
--- a/packages/frontend/src/pages/campaigns/top-nav/index.tsx
+++ b/packages/frontend/src/pages/campaigns/top-nav/index.tsx
@@ -41,8 +41,8 @@ export const CampaignsTopNav = ({
);
return (
-
-
+
+
{/*
{
return (
-
+
{featuredKPITokens.length === 0 ? (
diff --git a/packages/frontend/src/state/api.ts b/packages/frontend/src/state/api.ts
index 521ea0388..13f59da9d 100644
--- a/packages/frontend/src/state/api.ts
+++ b/packages/frontend/src/state/api.ts
@@ -31,6 +31,7 @@ export const staticApi = createCarrotApi({
>({
serializeQueryArgs: ({ endpointName, queryArgs }) => {
return `${endpointName}(${JSON.stringify({
+ chainId: queryArgs.publicClient?.chain?.id,
blacklistedAddresses: queryArgs.blacklistedAddresses,
featuredAddresses: queryArgs.featuredAddresses,
preferDecentralization: queryArgs.preferDecentralization,
@@ -94,6 +95,7 @@ export const applicationApi = createCarrotApi({
providesTags: [LATEST_KPI_TOKEN_QUERY_TAG],
serializeQueryArgs: ({ endpointName, queryArgs }) => {
return `${endpointName}(${JSON.stringify({
+ chainId: queryArgs.publicClient?.chain?.id,
blacklistedAddresses: queryArgs.blacklistedAddresses,
limit: queryArgs.limit,
preferDecentralization: queryArgs.preferDecentralization,