diff --git a/packages/emails/templates/common/body-logo.ts b/packages/emails/templates/common/body-logo.ts deleted file mode 100644 index 61728be402..0000000000 --- a/packages/emails/templates/common/body-logo.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { BASE_URL, IS_PRODUCTION } from "@calcom/lib/constants"; - -export const emailBodyLogo = (): string => { - const image = IS_PRODUCTION - ? BASE_URL + "/emails/CalLogo@2x.png" - : "https://app.cal.com/emails/CalLogo@2x.png"; - - return ` - -
- - - - - - -
- -
- - - - - - -
- - - - - - -
- - - -
-
-
- -
-
- `; -}; diff --git a/packages/emails/templates/common/head.ts b/packages/emails/templates/common/head.ts deleted file mode 100644 index be22403827..0000000000 --- a/packages/emails/templates/common/head.ts +++ /dev/null @@ -1,91 +0,0 @@ -export const emailHead = (headerContent: string): string => { - return ` - - ${headerContent} - - - - - - - - - - - - - - - - - `; -}; diff --git a/packages/emails/templates/common/index.ts b/packages/emails/templates/common/index.ts deleted file mode 100644 index 686d871f91..0000000000 --- a/packages/emails/templates/common/index.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { emailHead } from "./head"; -export { emailSchedulingBodyHeader } from "./scheduling-body-head"; -export { emailBodyLogo } from "./body-logo"; -export { emailScheduledBodyHeaderContent } from "./scheduling-body-head-content"; -export { emailSchedulingBodyDivider } from "./scheduling-body-divider"; -export { linkIcon } from "./link-icon"; diff --git a/packages/emails/templates/common/link-icon.ts b/packages/emails/templates/common/link-icon.ts deleted file mode 100644 index 72d86bcc1d..0000000000 --- a/packages/emails/templates/common/link-icon.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BASE_URL, IS_PRODUCTION } from "@calcom/lib/constants"; - -export const linkIcon = (): string => { - return IS_PRODUCTION ? BASE_URL + "/emails/linkIcon.png" : "https://app.cal.com/emails/linkIcon.png"; -}; diff --git a/packages/emails/templates/common/scheduling-body-divider.ts b/packages/emails/templates/common/scheduling-body-divider.ts deleted file mode 100644 index b8723c3e7b..0000000000 --- a/packages/emails/templates/common/scheduling-body-divider.ts +++ /dev/null @@ -1,31 +0,0 @@ -export const emailSchedulingBodyDivider = (): string => { - return ` - -
- - - - - - -
- -
- - - - - - -
-

-

- -
-
- -
-
- `; -}; diff --git a/packages/emails/templates/common/scheduling-body-head-content.ts b/packages/emails/templates/common/scheduling-body-head-content.ts deleted file mode 100644 index 31515fc760..0000000000 --- a/packages/emails/templates/common/scheduling-body-head-content.ts +++ /dev/null @@ -1,33 +0,0 @@ -export const emailScheduledBodyHeaderContent = (title: string, subtitle: string): string => { - return ` - -
- - - - - - -
- -
- - - - - - - - - -
-
${title}
-
-
${subtitle}
-
-
- -
-
- `; -}; diff --git a/packages/emails/templates/common/scheduling-body-head.ts b/packages/emails/templates/common/scheduling-body-head.ts deleted file mode 100644 index 3245108999..0000000000 --- a/packages/emails/templates/common/scheduling-body-head.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { BASE_URL, IS_PRODUCTION } from "@calcom/lib/constants"; - -export type BodyHeadType = "checkCircle" | "xCircle" | "calendarCircle"; - -export const getHeadImage = (headerType: BodyHeadType): string => { - switch (headerType) { - case "checkCircle": - return IS_PRODUCTION - ? BASE_URL + "/emails/checkCircle@2x.png" - : "https://app.cal.com/emails/checkCircle@2x.png"; - case "xCircle": - return IS_PRODUCTION - ? BASE_URL + "/emails/xCircle@2x.png" - : "https://app.cal.com/emails/xCircle@2x.png"; - case "calendarCircle": - return IS_PRODUCTION - ? BASE_URL + "/emails/calendarCircle@2x.png" - : "https://app.cal.com/emails/calendarCircle@2x.png"; - } -}; - -export const emailSchedulingBodyHeader = (headerType: BodyHeadType): string => { - const image = getHeadImage(headerType); - - return ` - -
- - - - - - -
- -
-
- -
- - - - - - -
- -
- - - - - - -
- - - - - - -
- -
-
-
- -
-
- `; -};