Skip to content

Commit

Permalink
Removed launch week banner and add launch week link in footer (#801)
Browse files Browse the repository at this point in the history
Co-authored-by: ankit01-oss <>
  • Loading branch information
ankit01-oss authored Sep 21, 2024
1 parent 5902641 commit 6cea5ec
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
28 changes: 16 additions & 12 deletions components/Banner/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,22 @@ const Banner = () => {

if (!visible || !isHomePage) return null;

return (
<div className="w-full bg-indigo-500 flex items-center justify-center py-2">
<div className="w-full flex justify-between items-center px-4 md:justify-center">
<Link href="/launch-week/" className="text-base font-medium text-white leading-5">
Join us for a week of exciting new features - SigNoz Launch Week 2.0 🚀
</Link>
<button className="text-white md:absolute md:right-4" onClick={() => setVisible(false)}>
<X size={16} />
</button>
</div>
</div>
);
//Uncomment the below code to launch a banner on homepage and comment our return null

// return (
// <div className="w-full bg-indigo-500 flex items-center justify-center py-2">
// <div className="w-full flex justify-between items-center px-4 md:justify-center">
// <Link href="/launch-week/" className="text-base font-medium text-white leading-5">
// Join us for a week of exciting new features - SigNoz Launch Week 2.0 🚀
// </Link>
// <button className="text-white md:absolute md:right-4" onClick={() => setVisible(false)}>
// <X size={16} />
// </button>
// </div>
// </div>
// );

return null;
};

export default Banner;
6 changes: 6 additions & 0 deletions components/mainFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ function Footer() {
</Link>
<ArrowUpRight size={16} />
</div>
<div className="mt-5 flex items-center gap-2 whitespace-nowrap pr-8 hover:underline max-md:pr-5">
<Link href="/launch-week/" target="_blank">
Launch Week
</Link>
<ArrowUpRight size={16} />
</div>
<div className="mt-5 flex items-center gap-2 pr-7 hover:underline max-md:pr-5">
<Link href="/changelog">Changelog</Link>
</div>
Expand Down

0 comments on commit 6cea5ec

Please sign in to comment.