Skip to content

Commit 87dac88

Browse files
committed
add: reg closes scrolling banner
1 parent a14126b commit 87dac88

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/app/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function Home() {
2121

2222
return (
2323
<>
24-
<div className="fixed top-0 w-full h-[80px] z-40 overflow-x-hidden backdrop-blur-md head-5 bg-black/5" />
24+
<div className="fixed top-0 w-full h-[130px] z-40 overflow-x-hidden backdrop-blur-md head-5 bg-black/5" />
2525

2626
<Nav />
2727
<div className="z-20 relative pt-20 overflow-x-clip 1">

src/components/common/scrolling-banner.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ export default function ScrollingBanner() {
77
const repeatCount = 20; // Increase this number to add more repetitions
88

99
return (
10-
<div className="bg-gradient-to-b from-transparent from-60% via-redTheme via-75% to-transparent to-90% h-fit text-whiteTheme overflow-hidden py-2">
10+
<div
11+
className="
12+
// bg-gradient-to-b from-transparent from-60% via-redTheme via-75% to-transparent to-90%
13+
bg-redTheme h-fit text-whiteTheme overflow-hidden py-2"
14+
>
1115
<motion.div
12-
className="whitespace-nowrap inline-block mt-20 pb-4"
16+
className="whitespace-nowrap inline-block"
1317
animate={{
1418
x: ["0%", "-50%"],
1519
}}

src/components/widget/header.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import NavItem from "../navbar/nav-items";
1111
import RegisterButton from "../navbar/register-button";
1212
import { useRouter } from "next/navigation";
1313
import { Button } from "../ui/button";
14+
import ScrollingBanner from "../common/scrolling-banner";
1415
const Nav = () => {
1516
const router = useRouter();
1617
gsap.registerPlugin(ScrollTrigger);
@@ -110,6 +111,7 @@ const Nav = () => {
110111
return (
111112
<>
112113
<header className="fixed z-[100] left-0 top-0 w-screen">
114+
<ScrollingBanner />
113115
<div className="header-1 flex md:py-[10px] md:px-[30px] px-[10px] pt-1 justify-between items-center">
114116
<div className="logo">
115117
<Link href="/">

0 commit comments

Comments
 (0)