Commit Graph

102 Commits

Author SHA1 Message Date
Michael Novotny
68be8ee164 Renames globals.cssglobal.css (#181)
* Renames `globals.css` → `global.css`

* Missed one
2023-09-28 14:27:59 +01:00
Stephanie Dietz
c478aa149b Adds auth to dashboard using NextAuth (#173) 2023-09-27 15:23:12 -05:00
Delba de Oliveira
38725bc4e9 Fix loading skeleton bug (#169) 2023-09-21 08:09:56 -05:00
Delba de Oliveira
2897b290d3 Simplify invoices table.tsx component (#166)
* Rename file and add data fetches for overview page

* Rename calculations.ts to utils.ts

* Update code to match course

* Add temporary calculation

* Fix error

* Move types to data fetching file

* Add error handling

* Parallelize data fetches

* Add skeletons

* Add delayed data request

* Fix ts errors

* Code for chapter 8

* Fix error

* Clean up

* Move formatDateToLocal to utils file

* Extract add invoice button

* Extract edit invoice button

* Extract InvoiceStatus

* Use formatCurrency from utils

* Misc

* Use outline icon

* outline!

* Rename table-search to search
2023-09-19 13:24:38 -05:00
Delba de Oliveira
24bcb816e5 Add code for chapters 7-8 (#164)
* Rename file and add data fetches for overview page

* Rename calculations.ts to utils.ts

* Update code to match course

* Add temporary calculation

* Fix error

* Move types to data fetching file

* Add error handling

* Parallelize data fetches

* Add skeletons

* Add delayed data request

* Fix ts errors

* Code for chapter 8

* Fix error

* Clean up

---------

Co-authored-by: Stephanie Dietz <49788645+StephDietz@users.noreply.github.com>
2023-09-19 12:55:02 -05:00
Stephanie Dietz
2ccc7c6461 Removes unnecessary search state (#165) 2023-09-19 09:15:25 -05:00
Stephanie Dietz
f4239681ad Fix search bug in table (#163)
* add database to project. Seed data. Update customerId to customer_id

* seed customers table data

* use database everywhere

* refactor

* fix ts lint errors

* add type to invoice edit page

* remove fetch-data file and fetch data directly in components

* update lates invoices to use sql

* in invoice table,  search the database here with SQL

* rename tsx files to ts and add node script to seed data

* address rest of PR comments

* move all data fetches to own file

* add types to filter invoices function

* remove unused param

* prettier

* update function names

* switch page back to one when search param changes

* make input auto fill with current search query on page reload
2023-09-13 12:22:45 -05:00
Stephanie Dietz
7e4b69351e Add database (#153)
* add database to project. Seed data. Update customerId to customer_id

* seed customers table data

* use database everywhere

* refactor

* fix ts lint errors

* add type to invoice edit page

* remove fetch-data file and fetch data directly in components

* update lates invoices to use sql

* in invoice table,  search the database here with SQL

* rename tsx files to ts and add node script to seed data

* address rest of PR comments

* move all data fetches to own file

* add types to filter invoices function

* remove unused param

* prettier

* update function names
2023-09-13 12:16:09 -05:00
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
Michael Novotny
8e302d6725 Fixes inconsistent CSS (#151) 2023-09-08 09:12:57 -05:00
Delba de Oliveira
1af130179b Add project assets: hero image, OG image, logo, and favicon (#147)
* 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 duplicate package-lock files

* Prettier
2023-09-07 17:47:48 +01:00
Stephanie Dietz
b8935abc32 add pagination and search bar to the invoice table (#146)
* add pagination and search bar to the invoice table

* make table component server

* fix eslint

* eslint

* eslint

* Updates pagination url to not use state or router and moves pagination component up above the table

* fix eslint typing error

* resolve github convos

* update all 'q' to be 'query'

---------

Co-authored-by: Michael Novotny <manovotny@gmail.com>
2023-09-07 16:37:23 +01:00
Michael Novotny
a7063b9cb5 Updates GitHub urls and adds a note about a Could not locate the repository error message (#149) 2023-09-07 08:13:53 -05:00
dependabot[bot]
5a9bee297a Bump actions/checkout from 3 to 4 (#148) 2023-09-06 13:00:09 -05:00
Michael Novotny
1725e58866 Moves prettier and lint to root of the project (#143) 2023-09-06 12:57:56 -05:00
Spoof14
a657dd215b Adds consistency between Create a Next.js App and Navigate Between Pages tutorials (#116) 2023-09-06 10:45:10 -05:00
Delba de Oliveira
62271d7986 Add total paid/pending columns to customer table (#145)
* Delete individual invoice pages

* Add pending / paid totals to customer table

* Misc
2023-09-06 10:19:15 -05:00
Delba de Oliveira
83293ab924 Add "edit" invoice functionality (#144)
* Organize components

* Add delete invoice component and action

* Update customer emails

* Add delete button, pending/paid UI, and placeholder edit button

* Fix build errors

* More errors

* Fix table corners

* Rename add invoice form, and make it generic for edit or add

* Wire it up!

* Add server action placeholder

* Fix TS errors

* Misc
2023-09-06 08:18:40 -05:00
Stephanie Dietz
482f4bf042 Add customer table UI (#142)
* add customers table

* remove unused imports

* fix width issue for prof image in small screens
2023-09-06 13:06:56 +01:00
Delba de Oliveira
b85b3e217b Add delete invoice functionality (#140)
* Organize components

* Add delete invoice component and action

* Update customer emails

* Add delete button, pending/paid UI, and placeholder edit button

* Fix build errors

* More errors
2023-09-05 10:30:42 -05:00
Delba de Oliveira
340cd8dd05 Add "create" invoice form (#139)
* Install @tailwindcss/forms

* Add invoice form

* Replace -zinc- with -gray- for consistency
2023-09-05 09:11:54 -05:00
Stephanie Dietz
ab4d446e34 Implement new table component (#136)
* add table compoennt

* format

* format

* change table type to be a card

* update table header and link

* update layout and table width

* edit table

* fix layout overflow issue with table

* fix mege issue with dummy data

* make only content portion scrollable

* increase w of side nav in mobile

* remove duplicate date key

---------

Co-authored-by: Delba de Oliveira <delbabrown@gmail.com>
2023-09-05 14:23:34 +01:00
Delba de Oliveira
acc531b370 Add dashboard overview page (#135)
* Run create-next-app

* Add READMEs

* Remove stuff we don't need

* Add dummy data

* Add types for dummy data

* Add dummy routes

* Remove unused CSS

* Split dummy data and definitions

* Add prettier plugin for tailwind

* Create background-blur.tsx

* Create hero.tsx

* Create login-form.tsx

* Tweak

* Install hero icons and clsx

* Create calculations.tsx

* Update dummy-data.tsx

* Create card.tsx

* Create dashboard-overview.tsx

* Update page.tsx

* Add placeholder for dashboard-topnav

* Adjust sizings for whole page

* Update card styles and add icons

* ugh, fonts are hard

* misc

* Misc

* Switch to flex

* Add revenue data and definitions

* Misc

* Merge branch 'master' into example-f9sv

* Remove unused code

* Add sort invoices calc - to be replaced with SQL

* Add date to invoices table

* Add customer images

* Add LatestInvoices component

* Optimize for mobile

* Misc

* Tweak

* Remove duplicate date fields

* Mobile tweaks
2023-09-01 11:38:55 -05:00
Stephanie Dietz
5225fc3b54 Add table component (#132)
* add table compoennt

* format

* format

* change table type to be a card

* update table header and link

* update layout and table width

* Update dashboard/15-final/app/ui/table.tsx

---------

Co-authored-by: Delba de Oliveira <delbabrown@gmail.com>
Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2023-09-01 14:49:59 +01:00
Stephanie Dietz
fa5258ed80 create search bar component (#134) 2023-09-01 12:15:38 +01:00
Michael Novotny
754910a22d Updates minimum node version in documentation (#133) 2023-08-31 17:15:13 +01:00
Delba de Oliveira
c0f63f4d25 Add card component and calculations (#130)
* Run create-next-app

* Add READMEs

* Remove stuff we don't need

* Add dummy data

* Add types for dummy data

* Add dummy routes

* Remove unused CSS

* Split dummy data and definitions

* Add prettier plugin for tailwind

* Create background-blur.tsx

* Create hero.tsx

* Create login-form.tsx

* Tweak

* Install hero icons and clsx

* Create calculations.tsx

* Update dummy-data.tsx

* Create card.tsx

* Create dashboard-overview.tsx

* Update page.tsx

* Add placeholder for dashboard-topnav

* Adjust sizings for whole page

* Update card styles and add icons

* ugh, fonts are hard

* misc

* Remo unused import
2023-08-31 08:50:05 -05:00
Stephanie Dietz
24f9a5fa45 Add side nav and hero icons (#129)
* add side nav component and hero icons

* update file name

* Update dashboard/15-final/app/dashboard/layout.tsx

Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>

* make nav mobile friendly

---------

Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
2023-08-31 11:02:52 +01:00
Michael Novotny
3edf913e1c Updates node versions (#131) 2023-08-30 13:31:53 -05:00
Delba de Oliveira
4376abb821 Add components for home and login pages (#128)
* Run create-next-app

* Add READMEs

* Remove stuff we don't need

* Add dummy data

* Add types for dummy data

* Add dummy routes

* Remove unused CSS

* Split dummy data and definitions

* Add prettier plugin for tailwind

* Create background-blur.tsx

* Create hero.tsx

* Create login-form.tsx

* Tweak

* Fix ts error
2023-08-30 16:47:42 +01:00
Delba de Oliveira
8dd0d1d863 Add dummy data and routes (#127)
* Run create-next-app

* Add READMEs

* Remove stuff we don't need

* Add dummy data

* Add types for dummy data

* Add dummy routes

* Remove unused CSS

* Split dummy data and definitions
2023-08-30 10:37:50 -05:00
Delba de Oliveira
77fbb51681 Adds dashboard course skeleton (#126) 2023-08-30 09:11:57 -05:00
Sergej Brazdeikis
0972c7fd79 Update index.js (#110)
fix typo some prettiers complain about
2023-01-22 15:11:12 -06:00
Ismael
fee5818823 Fix a tag styling (#104)
* added styles folder for assets css example

* update styles on index for css starter example

* added styles folder in basic starter and nav starter and put back local global and selector css as _app.js is not added yet

* fix bottom logo style

* fix a text color in first 3 examples
2022-11-22 14:47:15 -07:00
Ismael
9bac578cd0 Update CSS starter example to use module css styling (#103) 2022-11-22 08:56:58 -06:00
Lee Robinson
d6203927fe Update all dependencies for Next.js 13. (#100) 2022-11-04 11:22:52 -05:00
Broda Noel
a7e15ef472 Update command as shown in docs (#95) 2022-11-04 11:18:21 -05:00
Delba de Oliveira
be08bc6085 Update react version (#97) 2022-10-31 13:08:25 +00:00
Ismael
3754f53366 added styles folder for assets css example (#87) 2022-10-17 14:24:44 -05:00
dependabot[bot]
b38689a23f Bump next from 11.1.2 to 12.0.9 in /seo/demo (#65) 2022-01-28 19:32:59 -06:00
dependabot[bot]
b2eab448fc Bump next from 12.0.3 to 12.0.9 in /seo (#64) 2022-01-28 19:30:05 -06:00
Timothy Yirenkyi
454c97aebc Update template url (#59) 2021-12-12 14:10:40 -06:00
Lee Robinson
3a1387166d Update all dependencies. (#56) 2021-11-09 10:59:56 -06:00
Luis Alvarez D
90fcf55666 Fix restcountries API (#53) 2021-10-20 08:41:59 -05:00
dependabot[bot]
4929e5afa5 Bump browserslist from 4.16.1 to 4.16.6 in /seo/demo (#49)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.1 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.1...4.16.6)

---
updated-dependencies:
- dependency-name: browserslist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-09 09:21:02 -05:00
dependabot[bot]
a65d16d20d Bump next from 10.1.4-canary.16 to 11.1.2 in /seo/demo (#48)
Bumps [next](https://github.com/vercel/next.js) from 10.1.4-canary.16 to 11.1.2.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v10.1.4-canary.16...v11.1.2)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-09 09:20:55 -05:00
Lee Robinson
8c063097e7 Update README.md (#50) 2021-09-09 09:08:06 -05:00
Lee Robinson
3e8d1c5051 Update README.md (#47) 2021-09-09 09:07:31 -05:00
Delba de Oliveira
f3a215a416 Create monorepo and add SEO starter example. (#46) 2021-09-09 09:06:21 -05:00
JJ Kasper
c1abbdb54c Update next/react versions (#41) 2021-07-19 13:32:43 -05:00