Skip to content

Conversation

saulprl
Copy link
Contributor

@saulprl saulprl commented Sep 14, 2023

Describe your changes

This PR refactors the original context in order to allow for a more dynamic system that works with multiple templates, instead of only one.

September 24 Update

Huge changes introduced in #6. Check that PR out too.

What was done in this pull request

  • Replace the original PosterContext with TemplateContext.
  • Introduced the use of useFormContext hook to allow for a more dynamic form state.
  • Added TemplateSelector and TemplateItem components to allow the user to select from the different templates available.
  • Renamed pages.
  • Redesigned the landing page.
  • Minor style improvements.

Demo / Screenshot / Video

Landing page.
image

Template selection.
image

New Banner template.
image

Populated Banner form.
image

* Add app, layout, and page for App Router

* Add new routes for app router

* Updated to comply with app router routes

* Update to Next 13.5

* Fix zoom to fit feature, fix downloaded image dimensions

* Improve social-media component, add poster-rev template

* Delete replaced pages in pages router

* Add sharp for image optimization

* Migrate API to app router

* Add error handling for assets query

* Remove poster context

* Remove pages router, update uploadthing components

* Disable caching on assets route handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants