Skip to content

Commit

Permalink
Add OG template
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Oct 28, 2024
1 parent 7390d4a commit 8568da8
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
Binary file added apps/website/src/app/components/invoice-og.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions apps/website/src/app/components/invoice-og/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import type { Metadata } from "next";
import Image from "next/image";
import ogInvoice from "../invoice-og.png";

export const metadata: Metadata = {
title: "Open Graph Template | Midday",
description: "A Next.js Open Graph template for invoices.",
};

export default function Page() {
return (
<div className="container mt-24 max-w-[540px]">
<Image src={ogInvoice} alt="Invoice" className="border border-border" />
<div className="mt-8">
<div className="border bg-card text-card-foreground shadow-sm">
<div className="flex flex-col space-y-1.5 p-6">
<h3 className="text-xl font-medium">Open Graph Template</h3>
<p className="text-sm text-[#878787]">
Get started with our Next.js Open Graph template
</p>
</div>
<div className="p-6 pt-0">
<a
href="https://go.midday.ai/inv-og"
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center justify-center text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2"
>
View implementation
</a>
</div>
</div>
</div>
</div>
);
}
8 changes: 8 additions & 0 deletions apps/website/src/app/components/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import type { Metadata } from "next";
import Image from "next/image";
import Link from "next/link";
import editor from "./editor.png";
import invoiceOg from "./invoice-og.png";
import invoiceReact from "./invoice-react.png";
import invoice from "./invoice.png";
import pdf from "./pdf.png";
Expand Down Expand Up @@ -39,6 +40,13 @@ const components = [
href: "/components/invoice-react",
ready: true,
},
{
name: "Invoice Open Graph Template",
description: "A Next.js Open Graph template for invoices.",
image: invoiceOg,
href: "/components/invoice-og",
ready: true,
},
{
name: "Invoice Editor",
description:
Expand Down

0 comments on commit 8568da8

Please sign in to comment.