Skip to content

Commit

Permalink
feat: Switch from Crisp to Brevo
Browse files Browse the repository at this point in the history
  • Loading branch information
storm1729 committed Dec 27, 2024
1 parent dd7b002 commit d0a83be
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 52 deletions.
12 changes: 12 additions & 0 deletions public/js/brevo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(function (d, w, c) {
w.BrevoConversationsID = "6366d410f90cc11a765868a8";
w[c] =
w[c] ||
function () {
(w[c].q = w[c].q || []).push(arguments);
};
var s = d.createElement("script");
s.async = true;
s.src = "https://conversations-widget.brevo.com/brevo-conversations.js";
if (d.head) d.head.appendChild(s);
})(document, window, "BrevoConversations");
7 changes: 5 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import "./geist.gen.css";

import { GeistProvider, myTheme } from "@/components/Geist";
import Script from "next/script";
import { Crisp } from "@/components/Crisp";

export const metadata = {
title: {
Expand All @@ -29,7 +28,6 @@ export default function RootLayout({
<GeistProvider themes={[myTheme]} themeType="default">
{children}
</GeistProvider>
<Crisp />
<Script
async
src="https://scripts.simpleanalyticscdn.com/latest.js"
Expand All @@ -43,6 +41,11 @@ export default function RootLayout({
src="/js/simpleanalytics.js"
type="text/javascript"
></Script>
<Script
async
src="/js/brevo.js"
type="text/javascript"
></Script>
</body>
</html>
);
Expand Down
50 changes: 0 additions & 50 deletions src/components/Crisp.tsx

This file was deleted.

0 comments on commit d0a83be

Please sign in to comment.