Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat: Product hunt badge
Richie McIlroyfe9ca370cd59
diff --git a/apps/web/components/Navbar.tsx b/apps/web/components/Navbar.tsxindex eaae632b2..d68bf529f 100644--- a/apps/web/components/Navbar.tsx+++ b/apps/web/components/Navbar.tsx@@ -1,6 +1,6 @@"use client";-import { usePathname, useSearchParams } from "next/navigation";+import { usePathname } from "next/navigation";import { Button, ListItem } from "@cap/ui";import {NavigationMenu,@@ -18,8 +18,6 @@ import { Menu, X } from "lucide-react";export const Navbar = ({ auth }: { auth: boolean }) => {const pathname = usePathname();- const params = useSearchParams();- const ref = params.get("ref") || "";const isHomePage = pathname === "/";const [showMobileMenu, setShowMobileMenu] = useState(false);@@ -35,20 +33,6 @@ export const Navbar = ({ auth }: { auth: boolean }) => {return (<>- {ref !== "producthunt" && (- <div className="w-full py-3 bg-gradient-to-l from-[#ff4582] to-[#ff6154] text-center">- <div className="wrapper">- <Link- className="w-full h-full text-white font-semibold hover:underline text-sm sm:text-base"- href="https://www.producthunt.com/posts/cap-3/"- target="_blank"- >- Cap is on Product Hunt today! We'd love your support. Click here- to help us out!- </Link>- </div>- </div>- )}<divclassName={`${isHomePage === truediff --git a/apps/web/components/pages/HomePage.tsx b/apps/web/components/pages/HomePage.tsxindex 44016368d..8b67f6a7c 100644--- a/apps/web/components/pages/HomePage.tsx+++ b/apps/web/components/pages/HomePage.tsx@@ -16,21 +16,16 @@ export const HomePage = () => {<div className="wrapper wrapper-sm mx-auto"><div className="mb-auto -mt-20 text-center md:px-4 pt-40 pb-52 md:pb-64 space-y-8"><Link- href="/updates/cap-public-beta-launch"- className="mx-auto inline-flex justify-center text-sm font-medium transition-colors focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 border bg-transparent hover:bg-tertiary h-9 px-4 py-2 rounded-full border-border space-x-2 items-center"+ href="https://www.producthunt.com/posts/cap-3?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-cap-3"+ target="_blank">- <span>Announcing Cap Public Beta</span>- <svg- xmlns="http://www.w3.org/2000/svg"- width={12}- height={12}- fill="none"- >- <path- fill="currentColor"- d="M8.783 6.667H.667V5.333h8.116L5.05 1.6 6 .667 11.333 6 6 11.333l-.95-.933 3.733-3.733Z"- />- </svg>+ <img+ src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=452581&theme=light"+ alt="Cap - Open Source Loom Alternative | Product Hunt"+ style={{ width: 250, height: 54, margin: "0 auto" }}+ width={250}+ height={54}+ /></Link><h1 className="fade-in-down text-3xl lg:text-6xl relative z-10 text-black">