From 59002317674a8e3cd0acc7c70a530a1b85376e92 Mon Sep 17 00:00:00 2001 From: Brad Traversy Date: Mon, 8 Jul 2024 14:39:39 -0400 Subject: [PATCH] Initial pages and Navbar --- app/layout.jsx | 2 + app/page.jsx | 12 ++- app/properties/[id]/page.jsx | 4 + app/properties/add/page.jsx | 4 + app/properties/page.jsx | 5 + components/Navbar.jsx | 176 +++++++++++++++++++++++++++++++++++ 6 files changed, 200 insertions(+), 3 deletions(-) create mode 100644 app/properties/[id]/page.jsx create mode 100644 app/properties/add/page.jsx create mode 100644 app/properties/page.jsx create mode 100644 components/Navbar.jsx diff --git a/app/layout.jsx b/app/layout.jsx index dbc1f61..a90d051 100644 --- a/app/layout.jsx +++ b/app/layout.jsx @@ -1,3 +1,4 @@ +import Navbar from '@/components/Navbar'; import '@/assets/styles/globals.css'; export const metadata = { @@ -10,6 +11,7 @@ const MainLayout = ({ children }) => { return ( +
{children}
diff --git a/app/page.jsx b/app/page.jsx index daf815c..adc67c2 100644 --- a/app/page.jsx +++ b/app/page.jsx @@ -1,5 +1,11 @@ -const HomePage = () => { - return

HomePage

; -}; +import Link from 'next/link'; +const HomePage = () => { + return ( +
+

Welcome

+ Properties +
+ ); +}; export default HomePage; diff --git a/app/properties/[id]/page.jsx b/app/properties/[id]/page.jsx new file mode 100644 index 0000000..ff7fa43 --- /dev/null +++ b/app/properties/[id]/page.jsx @@ -0,0 +1,4 @@ +const PropertyPage = () => { + return
PropertyPage
; +}; +export default PropertyPage; diff --git a/app/properties/add/page.jsx b/app/properties/add/page.jsx new file mode 100644 index 0000000..e57dde3 --- /dev/null +++ b/app/properties/add/page.jsx @@ -0,0 +1,4 @@ +const AddPropertyPage = () => { + return
AddPropertyPage
; +}; +export default AddPropertyPage; diff --git a/app/properties/page.jsx b/app/properties/page.jsx new file mode 100644 index 0000000..a539ad5 --- /dev/null +++ b/app/properties/page.jsx @@ -0,0 +1,5 @@ +const PropertiesPage = () => { + return
PropertiesPage
; +}; + +export default PropertiesPage; diff --git a/components/Navbar.jsx b/components/Navbar.jsx new file mode 100644 index 0000000..06b0615 --- /dev/null +++ b/components/Navbar.jsx @@ -0,0 +1,176 @@ +import Link from 'next/link'; +import Image from 'next/image'; +import logo from '@/assets/images/logo-white.png'; +import profileDefault from '@/assets/images/profile.png'; + +const Navbar = () => { + return ( + + ); +}; +export default Navbar;