From 74f11f13f71eddef92f22dd624d24a6d9d29c365 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Fri, 2 Jun 2023 14:26:00 +0100 Subject: [PATCH] Made protfolio page a bit nicer --- src/app/components/portfolio/AddNew.tsx | 4 +- src/app/portfolio/[slug]/page.tsx | 65 ++++++++++++++----------- 2 files changed, 39 insertions(+), 30 deletions(-) diff --git a/src/app/components/portfolio/AddNew.tsx b/src/app/components/portfolio/AddNew.tsx index 32cf0005..9f38ef6a 100644 --- a/src/app/components/portfolio/AddNew.tsx +++ b/src/app/components/portfolio/AddNew.tsx @@ -6,8 +6,8 @@ import { PlusIcon, TableCellsIcon } from "@heroicons/react/24/outline"; export default function AddNew({ portfolioId }: { portfolioId: string }) { return ( - - + +
Add New
diff --git a/src/app/portfolio/[slug]/page.tsx b/src/app/portfolio/[slug]/page.tsx index cc869b74..a42776ed 100644 --- a/src/app/portfolio/[slug]/page.tsx +++ b/src/app/portfolio/[slug]/page.tsx @@ -252,34 +252,46 @@ export default async function Page({ return ( <>
-

Portfolio: {pageName}

+

+ Portfolio: {pageName} +

-
-

Portfolio Summary

-
    -
  • - Budget: {budget || "Not Set"} - -
  • -
  • Total Cost: £{totalCost}
  • -
  • - Number of properties: {properties.length} -
  • -
  • - Annual Co2 Savings: {co2Reduction} tonnes -
  • -
  • - Total Works Time: {totalWorksHours} hours -
  • -
  • - Total Value Increase: £{totalValueIncrease} -
  • -
  • - Annual rental yield Increase: £{rentalYieldIncrease} -
  • -
+
+
+

+ Portfolio Summary +

+
    +
  • + Budget: {budget || "Not Set"} + +
  • +
  • + Total Cost: £{totalCost} +
  • +
  • + Number of properties: {properties.length} +
  • +
  • + Annual Co2 Savings: {co2Reduction} tonnes +
  • +
  • + Total Works Time: {totalWorksHours} hours +
  • +
  • + Total Value Increase: £{totalValueIncrease} +
  • +
  • + Annual rental yield Increase: £{rentalYieldIncrease} +
  • +
+
+
{properties.length === 0 ? ( @@ -291,9 +303,6 @@ export default async function Page({ /> )}
-
- -