diff --git a/apps/formbricks-com/pages/api/oss-friends/index.ts b/apps/formbricks-com/pages/api/oss-friends/index.ts index 4bc1a79d37..452a2978ea 100644 --- a/apps/formbricks-com/pages/api/oss-friends/index.ts +++ b/apps/formbricks-com/pages/api/oss-friends/index.ts @@ -36,7 +36,8 @@ export default async function handle(req: NextApiRequest, res: NextApiResponse) }, { name: "dyrector.io", - description: "dyrector.io is an open-source continuous delivery & deployment platform with version management.", + description: + "dyrector.io is an open-source continuous delivery & deployment platform with version management.", href: "https://dyrector.io", }, { diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/ShareEmbedSurvey.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/ShareEmbedSurvey.tsx index be49c836a2..79c7d2a6b2 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/ShareEmbedSurvey.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/ShareEmbedSurvey.tsx @@ -32,6 +32,7 @@ export default function ShareEmbedSurvey({ const isSingleUseLinkSurvey = survey.singleUse?.enabled; const { email } = profile; const { brandColor } = product; + const surveyBrandColor = survey.productOverwrites?.brandColor || brandColor; const tabs = [ { id: "link", label: `${isSingleUseLinkSurvey ? "Single Use Links" : "Share the Link"}`, icon: LinkIcon }, @@ -45,9 +46,9 @@ export default function ShareEmbedSurvey({ link: isSingleUseLinkSurvey ? ( ) : ( - + ), - email: , + email: , webpage: , }; diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedTabs/EmailTab.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedTabs/EmailTab.tsx index c4b198f7dc..7e1587fbde 100644 --- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedTabs/EmailTab.tsx +++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/summary/components/shareEmbedTabs/EmailTab.tsx @@ -21,6 +21,7 @@ import { } from "@react-email/components"; import { useMemo, useState } from "react"; import toast from "react-hot-toast"; +import { isLight } from "@/lib/utils"; interface EmailTabProps { survey: TSurvey; @@ -175,7 +176,10 @@ const getEmailTemplate = (survey: TSurvey, surveyUrl: string, brandColor: string )} + className={cn( + "bg-brand-color ml-2 inline-flex cursor-pointer appearance-none rounded-md px-6 py-3 text-sm font-medium", + isLight(brandColor) ? "text-black" : "text-white" + )}> Accept @@ -215,12 +219,15 @@ const getEmailTemplate = (survey: TSurvey, surveyUrl: string, brandColor: string {/* {!firstQuestion.required && ( - - {firstQuestion.buttonLabel || "Skip"} - - )} */} + + {firstQuestion.buttonLabel || "Skip"} + + )} */} @@ -246,7 +253,10 @@ const getEmailTemplate = (survey: TSurvey, surveyUrl: string, brandColor: string )} + className={cn( + "bg-brand-color inline-flex cursor-pointer appearance-none rounded-md px-6 py-3 text-sm font-medium", + isLight(brandColor) ? "text-black" : "text-white" + )}> {firstQuestion.buttonLabel} @@ -296,12 +306,15 @@ const getEmailTemplate = (survey: TSurvey, surveyUrl: string, brandColor: string {/* {!firstQuestion.required && ( - - {firstQuestion.buttonLabel || "Skip"} - - )} */} + + {firstQuestion.buttonLabel || "Skip"} + + )} */}