The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Added Crisp
Steven Teydfb5bab07e6a
diff --git a/components/home/footer.tsx b/components/home/footer.tsxnew file mode 100644index 0000000000..f429961ea7--- /dev/null+++ b/components/home/footer.tsx@@ -0,0 +1,13 @@+import { Github, Logo, Twitter } from "../shared/icons";++const Footer = () => {+ return (+ <div className="border-t border-gray-200 h-20 flex items-center justify-center space-x-3">+ <Github className="w-4 h-4 text-gray-600" />+ <Logo className="w-6 h-6 text-gray-600" />+ <Twitter className="w-4 h-4 text-gray-600" />+ </div>+ );+};++export default Footer;diff --git a/pages/_document.tsx b/pages/_document.tsxindex 4c94398e1c..25fa6b51b9 100644--- a/pages/_document.tsx+++ b/pages/_document.tsx@@ -1,10 +1,20 @@import { Html, Head, Main, NextScript } from "next/document";+import Script from "next/script";++const CRISP_SCRIPT = `window.$crisp=[];window.CRISP_WEBSITE_ID="2c09b1ee-14c2-46d1-bf72-1dbb998a19e0";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();`;export default function Document() {return (<Html className="min-h-screen bg-white"><Head /><body>+ <Script+ id="script-crisp"+ dangerouslySetInnerHTML={{+ __html: CRISP_SCRIPT,+ }}+ strategy="afterInteractive"+ /><Main /><NextScript /></body>diff --git a/pages/index.tsx b/pages/index.tsxindex 8d1705472b..68d95cebe6 100644--- a/pages/index.tsx+++ b/pages/index.tsx@@ -2,12 +2,12 @@ import HomeLayout from "@/components/layout/home";import { useCallback, useEffect } from "react";import { useRouter } from "next/router";import { useStatsModal } from "@/components/stats/stats-modal";-import MaxWidthWrapper from "@/components/shared/max-width-wrapper";import Hero from "@/components/home/hero";import Demo from "@/components/home/demo";import Globe from "@/components/home/globe";import Features from "@/components/home/features";import Pricing from "@/components/home/pricing";+import Footer from "@/components/home/footer";export default function Home({ stars }: { stars: number }) {const router = useRouter();@@ -46,14 +46,6 @@ export default function Home({ stars }: { stars: number }) {);}-const Footer = () => {- return (- <div className="border-t border-gray-200 h-20">- <MaxWidthWrapper>Footer</MaxWidthWrapper>- </div>- );-};-export async function getStaticProps() {const { stargazers_count: stars } = await fetch("https://api.github.com/repos/steven-tey/dub"