Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
lol: remove BF banner
Richie McIlroy9fc95cfa3910
diff --git a/apps/web/app/(site)/BlackFridayBanner.tsx b/apps/web/app/(site)/BlackFridayBanner.tsxdeleted file mode 100644index 005aa3633..000000000--- a/apps/web/app/(site)/BlackFridayBanner.tsx+++ /dev/null@@ -1,47 +0,0 @@-"use client";--import { buildEnv } from "@cap/env";-import Link from "next/link";-import { useState } from "react";--export function BlackFridayBanner() {- const [isHovered, setIsHovered] = useState(false);-- if (buildEnv.NEXT_PUBLIC_IS_CAP !== "true") {- return null;- }-- return (- <Link- href="https://pay.cap.so/b/aFa5kD2EnaNH2Pdg4obII00?prefilled_promo_code=BLACKFRIDAY"- target="_blank"- onMouseEnter={() => setIsHovered(true)}- onMouseLeave={() => setIsHovered(false)}- className="fixed top-0 left-0 right-0 z-[52] flex items-center justify-center gap-1 sm:gap-2 bg-black py-2 px-3 text-center text-xs sm:text-sm text-white cursor-pointer hover:bg-gray-900 transition-colors"- >- <span className="font-semibold">Black Friday:</span>- <span className="hidden sm:inline">50% off Cap Pro Annual with code</span>- <span className="sm:hidden">50% off Cap Pro</span>- <span className="relative font-mono font-bold bg-white/20 px-1.5 sm:px-2 py-0.5 rounded text-xs sm:text-sm overflow-hidden">- <span- className={`inline-block transition-all duration-300 ${- isHovered- ? "-translate-y-full opacity-0"- : "translate-y-0 opacity-100"- }`}- >- BLACKFRIDAY- </span>- <span- className={`absolute inset-0 flex items-center justify-center transition-all duration-300 ${- isHovered- ? "translate-y-0 opacity-100"- : "translate-y-full opacity-0"- }`}- >- Buy Now- </span>- </span>- </Link>- );-}diff --git a/apps/web/app/(site)/Navbar.tsx b/apps/web/app/(site)/Navbar.tsxindex 862cb0012..29a54eccc 100644--- a/apps/web/app/(site)/Navbar.tsx+++ b/apps/web/app/(site)/Navbar.tsx@@ -1,6 +1,5 @@"use client";-import { buildEnv } from "@cap/env";import {Button,Logo,@@ -132,14 +131,7 @@ export const Navbar = () => {return (<>- <header- className={classNames(- "fixed left-0 right-0 z-[51] animate-in fade-in slide-in-from-top-4 duration-500",- buildEnv.NEXT_PUBLIC_IS_CAP === "true"- ? "top-[60px] lg:top-[65px]"- : "top-4 lg:top-10",- )}- >+ <header className="fixed left-0 right-0 z-[51] animate-in fade-in slide-in-from-top-4 duration-500 top-4 lg:top-6"><nav className="p-2 mx-auto w-full max-w-[calc(100%-20px)] bg-white rounded-full border backdrop-blur-md lg:max-w-fit border-zinc-200 h-fit"><div className="flex gap-12 justify-between items-center mx-auto max-w-4xl h-full transition-all"><div className="flex items-center">diff --git a/apps/web/app/(site)/layout.tsx b/apps/web/app/(site)/layout.tsxindex 7d5dea56b..d8deb49e2 100644--- a/apps/web/app/(site)/layout.tsx+++ b/apps/web/app/(site)/layout.tsx@@ -1,18 +1,12 @@-import { buildEnv } from "@cap/env";import type { PropsWithChildren } from "react";import { Intercom } from "../Layout/Intercom";-import { BlackFridayBanner } from "./BlackFridayBanner";import { Footer } from "./Footer";import { Navbar } from "./Navbar";export default function Layout(props: PropsWithChildren) {- const showBanner = buildEnv.NEXT_PUBLIC_IS_CAP === "true";-return (<>- <BlackFridayBanner /><Navbar />- {showBanner && <div className="h-[36px]" />}{props.children}<Footer /><Intercom />