Aaron William Po
ea3e8a0023
Refactor beer comment section and incorporate image carousel
...
Beer comment section now uses a ternary expression for isLoading. Image carousel implemented in beer by id page.
2023-04-11 20:23:55 -04:00
Aaron William Po
915adb722a
Implement react-intersection-observer to facilitate infinite scroll
...
Uses react-intersection-observer to load more comments when the last of the previously loaded comments is in the viewport.
2023-04-09 18:41:58 -04:00
Aaron William Po
8981bcb4b8
Replace useSWR with useSWRInfinite to facilitate infinite scrolling
2023-04-09 11:25:10 -04:00
Aaron William Po
80bed9b4dc
Style updates
...
fix navbar to remain sticky, add fade in to layout component, update font to Space Grotesk
2023-04-08 02:11:13 -04:00
Aaron William Po
0d3785ad1a
Add environment variable validation and parsing
...
Adds a validation schema for the application's environment variables using the Zod library. The parsed environment variables are then exported as constants that can be imported throughout the application, replacing the direct use of process.env.
2023-04-07 11:37:30 -04:00
Aaron William Po
c8a8c70127
Update login to redirect to current user page
2023-04-05 22:24:02 -04:00
Aaron William Po
796a5fce3f
Styling changes and refactor
...
Switch google fonts to use Next.js font optimization, animate comment fade in, and refactor beer like handler and comment submit handler.
2023-04-04 20:51:29 -04:00
Aaron William Po
b69dbc95b4
Work on brewery page, refactors
...
Refactor query types to explicitly use z.infer
2023-03-31 21:13:35 -04:00
Aaron William Po
d8a8dad37f
Refactor beer by id page
...
Extracted services to separate files.
2023-03-27 19:02:45 -04:00
Aaron William Po
7194f140aa
refactor: update Spinner component to accept size prop
...
This commit updates the `Spinner` component to accept a `size` prop that determines the width of the spinner
2023-03-27 19:00:32 -04:00
Aaron William Po
cf6a8309f1
Rework pagination and cookies
2023-03-19 18:04:13 -04:00
Aaron William Po
584e3b349f
Implement confirm user functionality
...
This commit adds the necessary functionality to confirm a user's account.
It includes the addition of a new column in the user table to track whether an account is confirmed or not, and the implementation of JWT for confirmation tokens.
This commit integrates the SparkPost API as well as React Email to send dynamic emails for whatever purpose.
Upon user registration, a confirmation email will be sent to the user.
2023-03-13 22:35:57 -04:00
Aaron William Po
472ead9abd
Refactoring beer by id page, add delete comment
...
Refactored the comments ui into various new components, added the delete beer comment by id feature.
2023-03-03 21:28:44 -05:00
Aaron William Po
7126c74d5d
Add edit beer post, 500 page, and redirectIfLoggedIn getServerSideProps.
...
Implement edit beer post functionality.
Register, edit and create beer post forms are now using the same layout found in components/ui/forms/BeerPostFormPageLayout. All forms are now extracted into their own components and are now found in components.
Added redirectIfLoggedIn getServerSidesProp fn for login and register pages.
2023-02-27 18:19:58 -05:00
Aaron William Po
6f604b9768
Change font, add meta title/desc to 404 page
2023-02-20 22:57:00 -05:00
Aaron William Po
cee7942f1c
add isSubmitting state to BeerForm
2023-02-20 16:19:33 -05:00
Aaron William Po
249bfdaf5a
fix logout
2023-02-13 16:15:10 -05:00
Aaron William Po
80261a713b
Add comments pagination, login and register pages
2023-02-13 10:56:09 -05:00
Aaron William Po
45cc10a009
Update next-connect, begin work on cloud img upload
2023-02-09 23:58:03 -05:00
Aaron William Po
dbd342fd3e
Refactor codebase, format
2023-02-09 04:03:52 -05:00
Aaron William Po
f6880deeb6
add user context and likes
2023-02-08 07:43:59 -05:00
Aaron William Po
9a9d8bcb94
Implement login, add useUser hook
2023-02-06 17:19:28 -05:00
Aaron William Po
5cf2087cd1
Refactored api services into sep files. Client fix
...
Fixed hydration errors in beers/[id] by implementing timeDistanceState
2023-01-31 23:16:43 -05:00
Aaron William Po
0b96c8f1f5
Did more work to beer post page, seed
...
Worked on comments and beer recs features. Fine tuning database seed amounts.
2023-01-29 21:53:05 -05:00
Aaron William Po
fe277d5964
Refactor api requests and components out of pages
2023-01-28 21:05:20 -05:00
Aaron William Po
972846f5a8
scaffold create/edit beer form, scaffold beer page
2023-01-23 20:13:25 -05:00