Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

add bg-gray-50

Steven Teycb8c29eb5f9c
diff --git a/apps/web/app/[domain]/layout.tsx b/apps/web/app/[domain]/layout.tsx
index ce7db1e258..cd3d427e19 100644
--- a/apps/web/app/[domain]/layout.tsx
+++ b/apps/web/app/[domain]/layout.tsx
@@ -2,7 +2,7 @@ import { Footer, Nav, NavMobile } from "@dub/ui";
export default function CustomDomainLayout(props) {
return (
- <div className="flex min-h-screen flex-col justify-between bg-white">
+ <div className="flex min-h-screen flex-col justify-between bg-gray-50/80">
<NavMobile />
<Nav />
{props.children}
diff --git a/apps/web/app/admin.dub.co/layout.tsx b/apps/web/app/admin.dub.co/layout.tsx
index cd98ed71a2..44bb713c5b 100644
--- a/apps/web/app/admin.dub.co/layout.tsx
+++ b/apps/web/app/admin.dub.co/layout.tsx
@@ -46,9 +46,7 @@ export default async function AdminLayout({
</div>
</MaxWidthWrapper>
</div>
- <div className="flex flex-col items-center justify-center">
- {children}
- </div>
+ {children}
</div>
);
}
diff --git a/apps/web/app/app.dub.co/(dashboard)/layout.tsx b/apps/web/app/app.dub.co/(dashboard)/layout.tsx
index 628c2c6009..a7c2ccb571 100644
--- a/apps/web/app/app.dub.co/(dashboard)/layout.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/layout.tsx
@@ -12,7 +12,7 @@ export const metadata = constructMetadata();
export default function Layout({ children }: { children: ReactNode }) {
return (
<Providers>
- <div className="min-h-screen w-full bg-white">
+ <div className="min-h-screen w-full bg-gray-50/80">
<div className="sticky -top-16 z-20 border-b border-gray-200 bg-white">
<MaxWidthWrapper>
<MainNav />
diff --git a/apps/web/ui/analytics/index.tsx b/apps/web/ui/analytics/index.tsx
index d6fb305dc0..a1f1eb6efa 100644
--- a/apps/web/ui/analytics/index.tsx
+++ b/apps/web/ui/analytics/index.tsx
@@ -30,7 +30,7 @@ export default function Analytics({
{({ basePath }) => {
const isPublicStatsPage = basePath.startsWith("/stats");
return (
- <div className="py-10">
+ <div className="bg-gray-50 py-10">
<Toggle />
<div className="mx-auto grid max-w-screen-xl gap-5 px-2.5 lg:px-20">
<Main />
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsx
index 0e36e30043..9e94d2eb07 100644
--- a/apps/web/ui/analytics/toggle.tsx
+++ b/apps/web/ui/analytics/toggle.tsx
@@ -440,7 +440,7 @@ export default function Toggle({
return (
<>
<div
- className={cn("sticky top-11 z-10 bg-white py-3 md:py-3", {
+ className={cn("sticky top-11 z-10 bg-gray-50/80 py-3 md:py-3", {
"top-14": isPublicStatsPage,
"top-0": adminPage,
"top-16": demoPage,
diff --git a/apps/web/ui/links/use-link-filters.tsx b/apps/web/ui/links/use-link-filters.tsx
index 75e14ed862..d2a50a79ba 100644
--- a/apps/web/ui/links/use-link-filters.tsx
+++ b/apps/web/ui/links/use-link-filters.tsx
@@ -4,7 +4,12 @@ import useTags from "@/lib/swr/use-tags";
import useUsers from "@/lib/swr/use-users";
import useWorkspace from "@/lib/swr/use-workspace";
import { Avatar, BlurImage, Globe, Tag, User, useRouterStuff } from "@dub/ui";
-import { DUB_WORKSPACE_ID, GOOGLE_FAVICON_URL, cn } from "@dub/utils";
+import {
+ DUB_WORKSPACE_ID,
+ GOOGLE_FAVICON_URL,
+ cn,
+ nFormatter,
+} from "@dub/utils";
import { useMemo } from "react";
import { COLORS_LIST } from "./tag-badge";
@@ -33,7 +38,7 @@ export function useLinkFilters() {
options: domains.map(({ slug, count }) => ({
value: slug,
label: slug,
- right: count,
+ right: nFormatter(count, { full: true }),
})),
},
{