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.

Move logo/logotype components out of icons and rename logotype to wordmark

Tim Wilson83c9c33c1b31
diff --git a/packages/ui/src/footer.tsx b/packages/ui/src/footer.tsx
index 3cd5e09357..a65cdbc79e 100644
--- a/packages/ui/src/footer.tsx
+++ b/packages/ui/src/footer.tsx
@@ -8,8 +8,9 @@ import { useParams } from "next/navigation";
import { useEffect, useState } from "react";
import useSWR from "swr";
import { FEATURES_LIST } from "./content";
-import { Github, LinkedIn, LogoType, Twitter, YouTube } from "./icons";
+import { Github, LinkedIn, Twitter, YouTube } from "./icons";
import { MaxWidthWrapper } from "./max-width-wrapper";
+import { Wordmark } from "./wordmark";
const navigation = {
features: FEATURES_LIST.map(({ shortTitle, slug }) => ({
@@ -64,7 +65,7 @@ export function Footer() {
<span className="sr-only">
{process.env.NEXT_PUBLIC_APP_NAME} Logo
</span>
- <LogoType className="h-7 text-gray-800" />
+ <Wordmark className="h-7 text-gray-800" />
</Link>
<p className="max-w-xs text-sm text-gray-500">
Giving modern marketing teams superpowers with short links that
diff --git a/packages/ui/src/icons/index.tsx b/packages/ui/src/icons/index.tsx
index a6a2d3f49e..5578775cd5 100644
--- a/packages/ui/src/icons/index.tsx
+++ b/packages/ui/src/icons/index.tsx
@@ -11,10 +11,6 @@ export { default as LoadingCircle } from "./loading-circle";
export { default as LoadingDots } from "./loading-dots";
export { default as LoadingSpinner } from "./loading-spinner";
-// dub logos
-export { default as Logo } from "./logo";
-export { default as LogoType } from "./logotype";
-
// brand logos
export { default as Facebook } from "./facebook";
export { default as Github } from "./github";
diff --git a/packages/ui/src/index.tsx b/packages/ui/src/index.tsx
index 75477e3fe4..f29866da13 100644
--- a/packages/ui/src/index.tsx
+++ b/packages/ui/src/index.tsx
@@ -41,7 +41,11 @@ export * from "./icon-menu";
export * from "./inline-snippet";
export * from "./link-logo";
export * from "./link-preview";
-export * from "./nav-logo";
export * from "./popup";
export * from "./progress-bar";
export * from "./tab-select";
+
+// logos
+export * from "./logo";
+export * from "./nav-logo";
+export * from "./wordmark";
diff --git a/packages/ui/src/icons/logo.tsx b/packages/ui/src/logo.tsx
similarity index 94%
rename from packages/ui/src/icons/logo.tsx
rename to packages/ui/src/logo.tsx
index 39bf4497fb..33cec8ebfd 100644
--- a/packages/ui/src/icons/logo.tsx
+++ b/packages/ui/src/logo.tsx
@@ -1,6 +1,6 @@
import { cn } from "@dub/utils";
-export default function Logo({ className }: { className?: string }) {
+export function Logo({ className }: { className?: string }) {
return (
<svg
width="191"
diff --git a/packages/ui/src/nav-logo.tsx b/packages/ui/src/nav-logo.tsx
index 7fb5b386ff..47bd7e64d4 100644
--- a/packages/ui/src/nav-logo.tsx
+++ b/packages/ui/src/nav-logo.tsx
@@ -6,8 +6,9 @@ import { Home, LayoutGrid, Type } from "lucide-react";
import { MouseEvent, useCallback, useContext, useState } from "react";
import { toast } from "sonner";
import { Button, ButtonProps } from "./button";
-import { Logo, LogoType } from "./icons";
+import { Logo } from "./logo";
import { NavContext } from "./nav";
+import { Wordmark } from "./wordmark";
const logoSvg = `<svg width="191" height="191" viewBox="0 0 191 191" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_36_30)">
@@ -78,7 +79,7 @@ export function NavLogo({
<Popover.Anchor asChild>
<div onContextMenu={handleContextMenu}>
{variant === "full" ? (
- <LogoType className={className} />
+ <Wordmark className={className} />
) : (
<Logo
className={cn(
diff --git a/packages/ui/src/icons/logotype.tsx b/packages/ui/src/wordmark.tsx
similarity index 98%
rename from packages/ui/src/icons/logotype.tsx
rename to packages/ui/src/wordmark.tsx
index 4c0040e3bd..f3a8665ada 100644
--- a/packages/ui/src/icons/logotype.tsx
+++ b/packages/ui/src/wordmark.tsx
@@ -1,6 +1,6 @@
import { cn } from "@dub/utils";
-export default function LogoType({ className }: { className?: string }) {
+export function Wordmark({ className }: { className?: string }) {
return (
<svg
width="834"