WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 9fc95cf

Browse files
committed
lol: remove BF banner
1 parent 5a3fbbc commit 9fc95cf

File tree

3 files changed

+1
-62
lines changed

3 files changed

+1
-62
lines changed

apps/web/app/(site)/BlackFridayBanner.tsx

Lines changed: 0 additions & 47 deletions
This file was deleted.

apps/web/app/(site)/Navbar.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"use client";
22

3-
import { buildEnv } from "@cap/env";
43
import {
54
Button,
65
Logo,
@@ -132,14 +131,7 @@ export const Navbar = () => {
132131

133132
return (
134133
<>
135-
<header
136-
className={classNames(
137-
"fixed left-0 right-0 z-[51] animate-in fade-in slide-in-from-top-4 duration-500",
138-
buildEnv.NEXT_PUBLIC_IS_CAP === "true"
139-
? "top-[60px] lg:top-[65px]"
140-
: "top-4 lg:top-10",
141-
)}
142-
>
134+
<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">
143135
<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">
144136
<div className="flex gap-12 justify-between items-center mx-auto max-w-4xl h-full transition-all">
145137
<div className="flex items-center">

apps/web/app/(site)/layout.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
import { buildEnv } from "@cap/env";
21
import type { PropsWithChildren } from "react";
32
import { Intercom } from "../Layout/Intercom";
4-
import { BlackFridayBanner } from "./BlackFridayBanner";
53
import { Footer } from "./Footer";
64
import { Navbar } from "./Navbar";
75

86
export default function Layout(props: PropsWithChildren) {
9-
const showBanner = buildEnv.NEXT_PUBLIC_IS_CAP === "true";
10-
117
return (
128
<>
13-
<BlackFridayBanner />
149
<Navbar />
15-
{showBanner && <div className="h-[36px]" />}
1610
{props.children}
1711
<Footer />
1812
<Intercom />

0 commit comments

Comments
 (0)