diff --git a/package-lock.json b/package-lock.json index 517ab39..a18857f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.1.0", "dependencies": { "@headlessui/react": "^1.7.14", + "@heroicons/react": "^2.0.18", "@types/node": "20.2.3", "@types/react": "18.2.7", "@types/react-dom": "18.2.4", @@ -115,6 +116,14 @@ "react-dom": "^16 || ^17 || ^18" } }, + "node_modules/@heroicons/react": { + "version": "2.0.18", + "resolved": "https://registry.npmjs.org/@heroicons/react/-/react-2.0.18.tgz", + "integrity": "sha512-7TyMjRrZZMBPa+/5Y8lN0iyvUU/01PeMGX2+RE7cQWpEUIcb4QotzUObFkJDejj/HUH4qjP/eQ0gzzKs2f+6Yw==", + "peerDependencies": { + "react": ">= 16" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", diff --git a/package.json b/package.json index 503a273..41832c2 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ }, "dependencies": { "@headlessui/react": "^1.7.14", + "@heroicons/react": "^2.0.18", "@types/node": "20.2.3", "@types/react": "18.2.7", "@types/react-dom": "18.2.4", diff --git a/src/app/portfolio/[slug]/property/[lmkKey]/page.tsx b/src/app/portfolio/[slug]/property/[lmkKey]/page.tsx index 5a4e834..187d9b6 100644 --- a/src/app/portfolio/[slug]/property/[lmkKey]/page.tsx +++ b/src/app/portfolio/[slug]/property/[lmkKey]/page.tsx @@ -1,7 +1,120 @@ -export default function () { +"use client"; + +import { useState } from "react"; +import { Dialog } from "@headlessui/react"; +import Link from "next/link"; +import { ArrowLeftIcon } from "@heroicons/react/24/outline"; + +const PropertyPage = ({ params }: { params: { slug: string } }) => { + const portfolioId = params.slug; + + const [isEditModalOpen, setIsEditModalOpen] = useState(false); + const [isDetailModalOpen, setIsDetailModalOpen] = useState(false); + + const handleEditClick = () => { + setIsEditModalOpen(true); + }; + + const handleDetailClick = () => { + setIsDetailModalOpen(true); + }; + return ( - <> -

Hello world

- +
+
+ {/* +
+ + Back to portfolio +
+ */} + +
+ + Back to portfolio +
+ +
+

Your Property

+ +

123 Main St, City, State

+ +
+
+

Current EPC rating

+

Rating: A

+
+ +
+

Target EPC rating

+

Rating: B

+
+
+ +
+
+

Card Title

+ +
+

Short description of the card

+
+ + {/* Add more rectangular cards here */} + + {/* Edit Modal */} + setIsEditModalOpen(false)} + className="fixed inset-0 z-10" + > +
+ + +
+ Edit Target EPC Rating + + This is the modal content for editing the target EPC rating. + + + {/* Add your form inputs and actions here */} +
+
+
+ + {/* Detail Modal */} + setIsDetailModalOpen(false)} + className="fixed inset-0 z-10" + > +
+ + +
+ Card Details + + This is the modal content for the card details. + + + {/* Add your card details and actions here */} +
+
+
+
+
); -} +}; + +export default PropertyPage;