From 687af03cc3938942f360fe7cd81c8265ddf2de4f Mon Sep 17 00:00:00 2001 From: Bailey Pumfleet Date: Tue, 19 Oct 2021 11:35:52 +0100 Subject: [PATCH] Improve iframe embed UI (#990) --- pages/integrations/index.tsx | 93 +++++++++++++++++++++++------------ public/integrations/embed.svg | 15 ++++++ 2 files changed, 76 insertions(+), 32 deletions(-) create mode 100644 public/integrations/embed.svg diff --git a/pages/integrations/index.tsx b/pages/integrations/index.tsx index 6acccad424..e7fcd49fb8 100644 --- a/pages/integrations/index.tsx +++ b/pages/integrations/index.tsx @@ -1,4 +1,5 @@ import { PencilAltIcon, TrashIcon } from "@heroicons/react/outline"; +import { ClipboardIcon } from "@heroicons/react/solid"; import { WebhookTriggerEvents } from "@prisma/client"; import Image from "next/image"; import { getErrorFromUnknown } from "pages/_error"; @@ -52,8 +53,8 @@ function WebhookListItem(props: { webhook: TWebhook; onEditWebhook: () => void } }); return ( - -
+ +
{props.webhook.eventTriggers.map((eventTrigger, ind) => ( @@ -284,40 +285,68 @@ function WebhookEmbed(props: { webhooks: TWebhook[] }) {
- -
-
-

-

-
+ +
+ + +
+ Embed +
+ {t("standard_iframe")} + Embed your calendar within your webpage +
+
+ + +
+
+
+ +
+ Embed +
+ {t("responsive_fullscreen_iframe")} + A fullscreen scheduling experience on your website +
+
+ + +
+
+
+
- -
-