mirror of
https://github.com/michivonah/nextjs.git
synced 2025-12-22 22:16:28 +01:00
add metadata
This commit is contained in:
parent
759acde045
commit
069c8529fb
10 changed files with 79 additions and 1 deletions
|
|
@ -5,6 +5,11 @@ import { lusitana } from '../../ui/fonts';
|
|||
import { Suspense } from 'react';
|
||||
import { RevenueChartSkeleton, LatestInvoicesSkeleton, CardsSkeleton, CardSkeleton} from '@/app/ui/skeletons';
|
||||
import CardWrapper from '@/app/ui/dashboard/cards';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Dashboard',
|
||||
};
|
||||
|
||||
export default async function Page(){
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
import { Metadata } from 'next';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Customers',
|
||||
};
|
||||
|
||||
export default function Page(){
|
||||
return <p>Customers Page</p>
|
||||
}
|
||||
|
|
@ -2,6 +2,11 @@ import Form from '@/app/ui/invoices/edit-form';
|
|||
import Breadcrumbs from '@/app/ui/invoices/breadcrumbs';
|
||||
import { fetchCustomers, fetchInvoiceById } from '@/app/lib/data';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Edit invoice',
|
||||
};
|
||||
|
||||
export default async function Page(props: {
|
||||
params: Promise<{
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
import Form from '@/app/ui/invoices/create-form';
|
||||
import Breadcrumbs from '@/app/ui/invoices/breadcrumbs';
|
||||
import { fetchCustomers } from '@/app/lib/data';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'New invoice',
|
||||
};
|
||||
|
||||
export default async function Page(){
|
||||
const customers = await fetchCustomers();
|
||||
|
|
|
|||
|
|
@ -6,6 +6,11 @@ import { lusitana } from "@/app/ui/fonts";
|
|||
import { InvoicesTableSkeleton } from "@/app/ui/skeletons";
|
||||
import { Suspense } from "react";
|
||||
import { fetchInvoicesPages } from "@/app/lib/data";
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Invoices',
|
||||
};
|
||||
|
||||
export default async function Page(props: {
|
||||
searchParams?: Promise<{
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
|
@ -1,5 +1,15 @@
|
|||
import '@/app/ui/global.css';
|
||||
import {inter} from '@/app/ui/fonts';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
template: '%s | Acme Dashboard',
|
||||
default: 'Acme Dashboard',
|
||||
},
|
||||
description: 'The official Next.js Course Dashboard, built with App Router.',
|
||||
metadataBase: new URL('http://localhost:3000/dashboard'),
|
||||
}
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
import AcmeLogo from "../ui/acme-logo";
|
||||
import LoginForm from "../ui/login-form";
|
||||
import { Suspense } from "react";
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Login',
|
||||
};
|
||||
|
||||
export default function LoginPage(){
|
||||
return (
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 238 KiB After Width: | Height: | Size: 238 KiB |
Loading…
Add table
Add a link
Reference in a new issue