Skip to content

Commit

Permalink
feat: add chat bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
arrocke committed Oct 26, 2024
1 parent f1134a7 commit 5d155c1
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 0 deletions.
17 changes: 17 additions & 0 deletions app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import "../globals.css";
import { headFontClass } from "../fonts";
import languages from "../../languages.json";
import { FlashProvider } from "../flash";
import Script from "next/script";

export async function generateMetadata(): Promise<Metadata> {
const t = await getTranslations("RootLayout")
Expand Down Expand Up @@ -48,6 +49,22 @@ export default function RootLayout({
{children}
</FlashProvider>
</NextIntlClientProvider>
{
process.env.NODE_ENV === 'production' &&
<Script id="show-banner">
{`
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/671d701f4304e3196ad8d17a/1ib5frv2r';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
`}
</Script>
}
</body>
</html>
);
Expand Down
105 changes: 105 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5d155c1

Please sign in to comment.