From 2cca2bc599fa4609fb33ce37207996eaa1b0b7c1 Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Fri, 25 Oct 2024 08:51:50 +0200 Subject: [PATCH] Add invoice template --- .../src/app/components/invoice/page.tsx | 5 +- apps/website/src/app/components/page.tsx | 51 ++++++++++++------- 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/apps/website/src/app/components/invoice/page.tsx b/apps/website/src/app/components/invoice/page.tsx index d8913d5db..1a1cea425 100644 --- a/apps/website/src/app/components/invoice/page.tsx +++ b/apps/website/src/app/components/invoice/page.tsx @@ -1,4 +1,6 @@ import type { Metadata } from "next"; +import Image from "next/image"; +import invoice from "public/images/update/invoice-pdf/pdf-invoice.jpg"; export const metadata: Metadata = { title: "React PDF Invoice Template | Midday", @@ -8,6 +10,7 @@ export const metadata: Metadata = { export default function Page() { return (
+ Invoice
@@ -18,7 +21,7 @@ export default function Page() {
-
- {components.map(({ name, description, image, href, ready }) => ( - - -
-

{name}

- {!ready && ( - - Coming soon - - )} -
-

{description}

+ {components.map( + ({ name, description, image, href, ready, className }) => ( + + +
+

{name}

+ {!ready && ( + + Coming soon + + )} +
+

{description}

-
- {name} -
-
- - ))} +
+ {name} +
+
+ + ), + )}
);