Skip to content

Commit

Permalink
design: added banner
Browse files Browse the repository at this point in the history
  • Loading branch information
srdarkseer committed Apr 16, 2024
1 parent 670c7dc commit 48a0b67
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/layouts/MainLayout/MainLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Banner from "./components/Banner";
import TopBar from "./components/Topbar";

function MainLayout({ children }: any) {
Expand All @@ -7,7 +8,10 @@ function MainLayout({ children }: any) {
<TopBar />
</div>

<main className="pt-20">{children}</main>
<main className="pt-20">
<Banner />
{children}
</main>
</>
);
}
Expand Down
13 changes: 13 additions & 0 deletions src/layouts/MainLayout/components/Banner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from "react";

const Banner = () => {
return (
<div className="w-full h-9 flex items-center justify-center bg-olive">
<p className="text-white text-sm">
Please use on a Desktop - Mobile version coming soon?
</p>
</div>
);
};

export default Banner;
4 changes: 4 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ const config = {
DEFAULT: "#162D25",
foreground: "hsl(var(--hunterGreen-foreground))",
},
olive: {
DEFAULT: "#0E1A16",
foreground: "hsl(var(--olive-foreground))",
},
},
borderRadius: {
lg: "var(--radius)",
Expand Down

0 comments on commit 48a0b67

Please sign in to comment.