Skip to content

Commit d54f5d4

Browse files
committed
created navbar and dash layout
1 parent 2b8353b commit d54f5d4

File tree

4 files changed

+40
-0
lines changed

4 files changed

+40
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const DashLeft = () => {
2+
return (
3+
<div className="bg-yellow-300 w-[100%] h-[100%]">
4+
5+
</div>
6+
)
7+
}
8+
9+
export default DashLeft

src/components/Navbar/Navbar.jsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { useRouter } from "next/router";
2+
3+
const Navbar = () => {
4+
5+
return (
6+
<div className="flex flex-row items-center w-[100%] h-[55px] px-[50px] box-border border-b-[1.2px] font-inter text-[24px] border-[#E1E1E1] text-black cursor-pointer">
7+
<div className="h-[30px] w-[30px] bg-yellow-200 mr-[15px]"></div>
8+
<span>DeFi</span>
9+
<div className="flex flex-row gap-x-[60px] ml-auto text-[14px] font-medium font-inter text-white">
10+
Connect
11+
</div>
12+
</div>
13+
);
14+
};
15+
16+
export default Navbar;

src/pages/_app.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import '@fontsource/roboto/300.css';
99
import '@fontsource/roboto/400.css';
1010
import '@fontsource/roboto/500.css';
1111
import '@fontsource/roboto/700.css';
12+
import Navbar from "../components/Navbar/Navbar";
1213

1314
export default function App({ Component, pageProps }) {
1415
const { push } = useRouter();
@@ -22,6 +23,7 @@ export default function App({ Component, pageProps }) {
2223
<meta name="viewport" content="width=device-width, initial-scale=1" />
2324
<link rel="icon" href="/favicon.ico" />
2425
</Head>
26+
<Navbar />
2527
<Component {...pageProps} />
2628
<ToastContainer />
2729
</>

src/pages/dashboard.jsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import DashLeft from "../components/DashLeft/DashLeft"
2+
3+
const Dashboard = () => {
4+
return (
5+
<div className="flex flex-row h-[calc(100vh-55px)] bg-blue">
6+
<div className="w-[40%]">
7+
<DashLeft/>
8+
</div>
9+
</div>
10+
)
11+
}
12+
13+
export default Dashboard

0 commit comments

Comments
 (0)