From 109d7788ee9a8547548939741a470a8e9f495ff6 Mon Sep 17 00:00:00 2001 From: Vehbi Sinan Tunalioglu Date: Sun, 31 Mar 2024 03:24:23 +0800 Subject: [PATCH] feat(website): add report to its own page, make room for landing page --- website/src/app/layout.tsx | 11 ++++++++++- website/src/app/page.tsx | 27 ++++++++++++------------- website/src/app/report/page.tsx | 5 +++++ website/src/components/header.tsx | 33 +++++++++++++++++++++++++++---- 4 files changed, 57 insertions(+), 19 deletions(-) create mode 100644 website/src/app/report/page.tsx diff --git a/website/src/app/layout.tsx b/website/src/app/layout.tsx index e11c849..095714c 100644 --- a/website/src/app/layout.tsx +++ b/website/src/app/layout.tsx @@ -1,5 +1,8 @@ +import Header from '@/components/header'; import type { Metadata } from 'next'; import { JetBrains_Mono } from 'next/font/google'; +import { ToastContainer } from 'react-toastify'; +import 'react-toastify/dist/ReactToastify.css'; import './globals.css'; import { Providers } from './providers'; @@ -18,7 +21,13 @@ export default function RootLayout({ return ( - {children} + +
+
+
{children}
+ +
+
); diff --git a/website/src/app/page.tsx b/website/src/app/page.tsx index efcae9d..58e8671 100644 --- a/website/src/app/page.tsx +++ b/website/src/app/page.tsx @@ -1,19 +1,18 @@ -import { AppMain } from '@/components/app'; -import Header from '@/components/header'; -import { ToastContainer } from 'react-toastify'; +import Link from 'next/link'; -import 'react-toastify/dist/ReactToastify.css'; - -export default function Home() { +export default function Page() { return ( -
-
- -
- +
+
+

Landing page is coming soon...

+

+ Check{' '} + + report + {' '} + page. +

- - -
+ ); } diff --git a/website/src/app/report/page.tsx b/website/src/app/report/page.tsx new file mode 100644 index 0000000..8deebfa --- /dev/null +++ b/website/src/app/report/page.tsx @@ -0,0 +1,5 @@ +import { AppMain } from '@/components/app'; + +export default function Page() { + return ; +} diff --git a/website/src/components/header.tsx b/website/src/components/header.tsx index 3363a2b..de4deae 100644 --- a/website/src/components/header.tsx +++ b/website/src/components/header.tsx @@ -1,6 +1,5 @@ 'use client'; -import { Link } from '@nextui-org/link'; import { Navbar, NavbarBrand, @@ -10,6 +9,7 @@ import { NavbarMenuItem, NavbarMenuToggle, } from '@nextui-org/navbar'; +import Link from 'next/link'; import { useState } from 'react'; export default function Header() { @@ -27,22 +27,47 @@ export default function Header() {

lhp

- + Lazy Hacker's Linux Host Patrol - + + + Home + + + + + + Report + + + + GitHub + - + + Home + + + + + + Report + + + + + GitHub