Spaces:
Running
Running
Florin Bobiș
commited on
Commit
·
f36babf
1
Parent(s):
a5b8a0c
added dashboard page
Browse files
src/app/(main)/(pages)/dashboard/page.tsx
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const DashboardPage = () => {
|
2 |
+
return (
|
3 |
+
<div className="flex flex-col gap-4 relative">
|
4 |
+
<h1 className="text-4xl sticky top-0 z-[10] p-6 bg-background/50 backdrop-blur-lg flex items-center border-b">Dashboard</h1>
|
5 |
+
</div>
|
6 |
+
);
|
7 |
+
}
|
8 |
+
|
9 |
+
export default DashboardPage;
|
src/app/(main)/(pages)/layout.tsx
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
type Props = {
|
2 |
+
children: React.ReactNode
|
3 |
+
}
|
4 |
+
const Layout = ({children}: Props) => {
|
5 |
+
return ( <div className="border-l-[1px] border-t-[1px] pb-20 h-screen rounded-l-3xl border-muted-foreground/20 overflow-scroll">
|
6 |
+
{children}
|
7 |
+
</div> );
|
8 |
+
}
|
9 |
+
|
10 |
+
export default Layout;
|
src/app/(main)/layout.tsx
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import React from "react";
|
2 |
+
type Props = {
|
3 |
+
children: React.ReactNode
|
4 |
+
}
|
5 |
+
const Layout = (props: Props) => {
|
6 |
+
return (
|
7 |
+
<div className="flex overflow-hidden h-screen">
|
8 |
+
<div className="w-full">
|
9 |
+
{props.children}
|
10 |
+
</div>
|
11 |
+
</div>
|
12 |
+
);
|
13 |
+
}
|
14 |
+
|
15 |
+
export default Layout;
|