diff --git a/app/layout.tsx b/app/layout.tsx index 47dfa25..c058c3c 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -3,6 +3,7 @@ import { Inter } from 'next/font/google' import './globals.css' import { ThemeProvider } from '@/components/theme-provider' import { Toaster } from '@/components/ui/toaster' +import Navbar from '@/components/Navbar' const inter = Inter({ subsets: ['latin'] }) @@ -27,6 +28,7 @@ export default function RootLayout({ enableSystem disableTransitionOnChange > + {children} diff --git a/app/page.tsx b/app/page.tsx index ac0c567..278060c 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,4 +1,5 @@ import RouteCards from '@/components/RouteCards'; +import { CardTitle, Card, CardDescription, CardHeader, CardContent } from '@/components/ui/card'; import { getRoutes } from '@/lib/serverActions'; export default async function Home() { @@ -6,10 +7,21 @@ export default async function Home() { return (
-
-
- -
+
+ + + Active Routes + Amount of configured routes + + +
+

{routes.length}

+
+
+
+
+
+
) diff --git a/components/Navbar.tsx b/components/Navbar.tsx new file mode 100644 index 0000000..db842d5 --- /dev/null +++ b/components/Navbar.tsx @@ -0,0 +1,7 @@ +export default function Navbar() { + return ( +
+

Navbar

+
+ ) +} \ No newline at end of file diff --git a/components/RouteCards.tsx b/components/RouteCards.tsx index f6d9eb2..bc3654a 100644 --- a/components/RouteCards.tsx +++ b/components/RouteCards.tsx @@ -41,7 +41,7 @@ export default function RouteCards({ routes }: { routes: Array }) {

- Proxying to + Tunneling to

{getRouteUpstreams(route)?.map((upstream => upstream.dial))}