The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
add mail + QR code invites
Steven Teybed933d6d655
diff --git a/apps/web/app/app.dub.co/embed/widget/page-client.tsx b/apps/web/app/app.dub.co/embed/widget/page-client.tsxindex e8d92ef6f5..d1817c5b4b 100644--- a/apps/web/app/app.dub.co/embed/widget/page-client.tsx+++ b/apps/web/app/app.dub.co/embed/widget/page-client.tsx@@ -5,14 +5,13 @@ import {Button,Check2,Copy,- Facebook,LinkedIn,ToggleGroup,Twitter,useCopyToClipboard,Wordmark,} from "@dub/ui";-import { GiftFill } from "@dub/ui/src/icons";+import { EnvelopeArrowRight, GiftFill, QRCode } from "@dub/ui/src/icons";import {currencyFormatter,fetcher,@@ -111,13 +110,13 @@ export function EmbedWidgetPageClient({className="enabled:border-[var(--accent-color)] enabled:bg-[var(--accent-color)] enabled:hover:bg-[var(--accent-color)]"/></div>- <div className="mt-4 grid grid-cols-3 gap-2">+ <div className="mt-4 grid grid-cols-4 gap-2">{/* TODO: Add social sharing messages */}{[{- title: "Facebook",- icon: Facebook,- href: `https://www.facebook.com/sharer/sharer.php?u=#${link.shortLink}`,+ title: "X",+ icon: Twitter,+ href: `https://x.com/intent/tweet?text=${encodeURIComponent(link.shortLink)}`,},{title: "LinkedIn",@@ -125,9 +124,14 @@ export function EmbedWidgetPageClient({href: `https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(link.shortLink)}`,},{- title: "X",- icon: Twitter,- href: `https://x.com/intent/tweet?text=${encodeURIComponent(link.shortLink)}`,+ title: "Email",+ icon: EnvelopeArrowRight,+ href: `mailto:?subject=Check out this link&body=${encodeURIComponent(link.shortLink)}`,+ },+ {+ title: "QR Code",+ icon: QRCode,+ href: `https://api.dub.co/qr?url=${link.shortLink}?qr=1`,},].map(({ title, href, icon: Icon }) => {return (diff --git a/packages/ui/src/icons/nucleo/envelope-arrow-right.tsx b/packages/ui/src/icons/nucleo/envelope-arrow-right.tsxnew file mode 100644index 0000000000..375d818a72--- /dev/null+++ b/packages/ui/src/icons/nucleo/envelope-arrow-right.tsx@@ -0,0 +1,51 @@+import { SVGProps } from "react";++export function EnvelopeArrowRight(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="currentColor">+ <path+ d="M1.75,5.75l6.767,3.733c.301,.166,.665,.166,.966,0l6.767-3.733"+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <path+ d="M16.25,9.264V5.25c0-1.104-.895-2-2-2H3.75c-1.105,0-2,.896-2,2v7.5c0,1.104,.895,2,2,2h6.211"+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <polyline+ fill="none"+ points="14.75 11.25 17.25 13.75 14.75 16.25"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <line+ fill="none"+ stroke="currentColor"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="17.25"+ x2="12.25"+ y1="13.75"+ y2="13.75"+ />+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.tsindex c26258666f..b99a54dcbf 100644--- a/packages/ui/src/icons/nucleo/index.ts+++ b/packages/ui/src/icons/nucleo/index.ts@@ -53,6 +53,7 @@ export * from "./dots";export * from "./download";export * from "./duplicate";export * from "./earth-position";+export * from "./envelope-arrow-right";export * from "./eye";export * from "./eye-slash";export * from "./file-zip2";