Skip to content

Commit

Permalink
Merge pull request #214 from khushijohri2001/highlight/announcement-s…
Browse files Browse the repository at this point in the history
…ection

Feat: Added Announcement Section at the Top of main Navbar
  • Loading branch information
Vishal-raj-1 authored Oct 15, 2023
2 parents a7d577d + 4570e9e commit a3f8e5d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/(marketing)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import AnnouncementSection from "@/components/layout/announcement-section";
import SiteFooter from "@/components/layout/site-footer";
import SiteHeader from "@/components/layout/site-header";

export default function layout({ children }: { children: React.ReactNode }) {
return (
<div className="relative flex min-h-screen flex-col">
<AnnouncementSection/>
<SiteHeader />
<div className="flex-1">{children}</div>
<SiteFooter />
Expand Down
17 changes: 17 additions & 0 deletions components/layout/announcement-section.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";
import { cn } from "@/lib/utils";
import { Button } from "../ui/button";

type Props = {};

export default function AnnouncementSection({}: Props) {
return (
<footer className="dark:bg-gray-100 bg-[#161D29] py-4">
<div className="container mx-auto px-4">
<div className="flex items-center justify-center text-center text-sm md:text-lg font-bold text-white dark:text-gray-700">
LEARN AND BUILD EVERYTHING FOR <span className="text-red-400 ml-1 mr-3"> FREE </span> 🚀
</div>
</div>
</footer>
);
}

0 comments on commit a3f8e5d

Please sign in to comment.