Files
next-learn/dashboard/15-final/app/lib/dummy-data.tsx
Delba de Oliveira 5f38f0fa81 Polish Mobile Styles 💅🏼 and update code for chapters 1-5 (#150)
* Add local date formatting

* Add dashboard hero image

* Update hero styles

* Polish login form

* Use Next.js symbol for logo

* Use Next.js symbol for favicon

* Use img instead of Image

* Add mobile styles to login form

* Polish nav styles to fit logo

* Fix build error

* Create og-image.png

* Remove unused code

* Replace svg logo with png

* Update Images and Links

* Misc

* Remove topnav

* Remove dummy text from cards

* Remove gradient

* Adjust button color

* Fix table horizontal scroll

* Misc

* Fix table UI bug

* Remove duplicate package-lock files

* Polish invoice form

* Rename delete button

* Misc

* Run prettier

* Fix search and pagination on mobile

* Fix pagination border px bug

* Update code to match course

* Rename global -> globals

* 💅 Home Page

* Test placeholder blur

* Use 1.5x image rather than 2x

* Update root layout

* Use <main> for pages

* Make sidebar a server component

* Don't use index for React key
2023-09-13 10:44:25 +01:00

162 lines
2.8 KiB
TypeScript

import { User, Customer, Invoice, Revenue } from './definitions';
// This file contains dummy data that you'll be replacing with real data in Chapter 7.
export const users: User[] = [
{
id: 1,
name: 'User',
email: 'user@nextmail.com',
password: '123456',
},
];
export const customers: Customer[] = [
{
id: 1,
name: 'Ada Lovelace',
email: 'ada@lovelace.com',
imageUrl: '/customers/ada-lovelace.png',
},
{
id: 2,
name: 'Grace Hopper',
email: 'grace@hopper.com',
imageUrl: '/customers/grace-hopper.png',
},
{
id: 3,
name: 'Hedy Lammar',
email: 'hedy@lammar.com',
imageUrl: '/customers/hedy-lammar.png',
},
{
id: 4,
name: 'Margaret Hamilton',
email: 'margaret@hamilton.com',
imageUrl: '/customers/margaret-hamilton.png',
},
];
export const invoices: Invoice[] = [
{
id: 1,
customerId: 1,
amount: 15795,
status: 'pending',
date: '2023-12-06',
},
{
id: 2,
customerId: 2,
amount: 20348,
status: 'pending',
date: '2023-11-14',
},
{
id: 3,
customerId: 3,
amount: 3040,
status: 'paid',
date: '2023-10-29',
},
{
id: 4,
customerId: 4,
amount: 44800,
status: 'paid',
date: '2023-09-10',
},
{
id: 5,
customerId: 1,
amount: 34577,
status: 'pending',
date: '2023-08-05',
},
{
id: 6,
customerId: 2,
amount: 54246,
status: 'pending',
date: '2023-07-16',
},
{
id: 7,
customerId: 3,
amount: 8945,
status: 'pending',
date: '2023-06-27',
},
{
id: 8,
customerId: 4,
amount: 32545,
status: 'paid',
date: '2023-06-09',
},
{
id: 9,
customerId: 3,
amount: 1250,
status: 'paid',
date: '2023-06-17',
},
{
id: 10,
customerId: 1,
amount: 8945,
status: 'paid',
date: '2023-06-07',
},
{
id: 11,
customerId: 2,
amount: 500,
status: 'paid',
date: '2023-08-19',
},
{
id: 12,
customerId: 3,
amount: 8945,
status: 'paid',
date: '2023-06-03',
},
{
id: 13,
customerId: 3,
amount: 8945,
status: 'paid',
date: '2023-06-18',
},
{
id: 14,
customerId: 4,
amount: 8945,
status: 'paid',
date: '2023-10-04',
},
{
id: 15,
customerId: 3,
amount: 1000,
status: 'paid',
date: '2022-06-05',
},
];
export const revenue: Revenue[] = [
{ month: 'Jan', revenue: 2000 },
{ month: 'Feb', revenue: 1800 },
{ month: 'Mar', revenue: 2200 },
{ month: 'Apr', revenue: 2500 },
{ month: 'May', revenue: 2300 },
{ month: 'Jun', revenue: 3200 },
{ month: 'Jul', revenue: 3500 },
{ month: 'Aug', revenue: 3700 },
{ month: 'Sep', revenue: 2500 },
{ month: 'Oct', revenue: 2800 },
{ month: 'Nov', revenue: 3000 },
{ month: 'Dec', revenue: 4800 },
];