From f9791b14376ed3a3d6492935f6d770a738d2859d Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 18 Jul 2023 20:12:40 +0100 Subject: [PATCH] feat: mobile link in qr code --- src/components/home/PromotionLinks.tsx | 24 +++++++++++++++++++----- src/components/ui/Tooltip.tsx | 2 +- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/components/home/PromotionLinks.tsx b/src/components/home/PromotionLinks.tsx index a0cc8f74..a2189170 100644 --- a/src/components/home/PromotionLinks.tsx +++ b/src/components/home/PromotionLinks.tsx @@ -1,5 +1,8 @@ +import { QRCodeSVG } from "qrcode.react" + import { DevicePhoneMobileIcon } from "@heroicons/react/24/solid" +import { Tooltip } from "~/components/ui/Tooltip" import { UniLink } from "~/components/ui/UniLink" import { DISCORD_LINK, GITHUB_LINK, TWITTER_LINK } from "~/lib/env" import { getSiteLink } from "~/lib/helpers" @@ -20,12 +23,23 @@ export default async function PromotionLinks({ > - + } + placement="bottom" > - - + + + + {GITHUB_LINK && (