Commit Graph

126 Commits

Author SHA1 Message Date
Aaron William Po
d20ab0fd1f Add user location marker to brewery map, Add beer sec. for brewery posts 2023-05-01 23:10:39 -04:00
Aaron William Po
f3d471be4c Update: Add html head to brewery map page 2023-04-30 23:50:34 -04:00
Aaron William Po
1a806e7aff Update tooltip location 2023-04-30 23:42:06 -04:00
Aaron William Po
adf1b55d10 Feat: Add create brewery comments and brewery cluster map 2023-04-30 23:09:03 -04:00
Aaron William Po
b3b1d5b6d1 Feat: Implement infinite scrolling brewery comment section
Refactor beer comment schemas to work on brewery comments as well. Add robots.txt to block crawling for now.
2023-04-30 14:00:38 -04:00
Aaron William Po
99e3eba7d6 Feat: add vercel analytics 2023-04-30 13:25:23 -04:00
Aaron William Po
c0d705f8cb Update seed to do bulk insert 2023-04-26 22:33:24 -04:00
Aaron William Po
c19cddceb7 Create location table for brewery post locations 2023-04-26 08:37:59 -04:00
Aaron William Po
4aeafc0de8 Feat: Implement mapbox for geocoding and location data for brewery posts 2023-04-24 21:45:25 -04:00
Aaron William Po
eec082e73a Add date established to brewery page 2023-04-23 20:31:09 -04:00
Aaron William Po
58d30b605f Continue work on brewery page, implement like system 2023-04-23 17:26:21 -04:00
Aaron Po
9504da33d6 Merge pull request #29 from aaronpo97/dev
Feature: Edit beer comments, dark/light mode switch
2023-04-22 22:47:52 -04:00
Aaron William Po
53c147eecc Remove Layout in page components, used in _app
This fixes a glitch where the theme change button would stop working on client route change.
2023-04-22 22:16:46 -04:00
Aaron William Po
603588ca54 Update docs for useTheme hook, move meta viewport to _app 2023-04-21 23:42:14 -04:00
Aaron William Po
6a00532f75 Style updates 2023-04-21 23:32:18 -04:00
Aaron William Po
2dfb080d0c Implement theming 2023-04-21 23:31:09 -04:00
Aaron William Po
070d537a6a Get basic editing functionality for beer comments 2023-04-19 23:14:43 -04:00
Aaron Po
451dfa8aa3 Merge pull request #28 from aaronpo97/style-updates
Update styles to be more mobile friendly, add favicon
2023-04-18 21:44:03 -04:00
Aaron William Po
dffbc5cdfb Update styles to be more mobile friendly, add favicon 2023-04-18 21:40:34 -04:00
Aaron Po
95778333df Merge pull request #27 from aaronpo97/create-home-page
Create home page
2023-04-18 00:05:32 -04:00
Aaron William Po
0663b78c00 Create home page 2023-04-18 00:04:16 -04:00
Aaron Po
ef226caf70 Merge pull request #26 from aaronpo97/mobile-style-updates-for-beer-pages
Mobile style updates for beer pages
2023-04-17 22:00:22 -04:00
Aaron William Po
ac90f89dc9 Remove height for comment form card, update page size for index page 2023-04-17 21:57:06 -04:00
Aaron William Po
ed4a60c6b8 Updated styles to better fit mobile layout 2023-04-17 21:46:11 -04:00
Aaron Po
9ed66a4212 Merge pull request #25 from aaronpo97/beer-infinite-scroll
Feature: Add infinite scrolling to beer index page
2023-04-16 23:29:43 -04:00
Aaron William Po
788d77e745 Add page count to api route header, update docs 2023-04-16 23:20:05 -04:00
Aaron William Po
60fe48b7c1 Begin work on infinite beer scroll 2023-04-16 20:32:42 -04:00
Aaron William Po
b1a403e4f2 Slightly alter colours in themes, change cards to compact 2023-04-16 20:32:12 -04:00
Aaron Po
7ffeb08acf Merge pull request #24 from aaronpo97/navbar-update
Update navbar, implement useNavbar hook, style updates
2023-04-15 22:20:55 -04:00
Aaron William Po
07330beb9c Update navbar, implement useNavbar hook, style updates
- Created a custom hook that returns an object with pages depending on user auth. This is a refactor of the logic found in the navbar component.
- Updated styles for card components
- Fix font size issues for mobile.
- Update theming to include a new pastel theme.
2023-04-13 23:04:25 -04:00
Aaron Po
8867c0bc56 Update README.md 2023-04-12 21:54:06 -04:00
Aaron Po
f25d5b5964 Merge pull request #23 from aaronpo97/documentation-updates
Update readme, add docs to useMediaQuery, fix security issue with vm2
2023-04-12 21:49:03 -04:00
Aaron William Po
7185734f3c Update readme, add docs to useMediaQuery, fix security issue with vm2 2023-04-12 21:41:19 -04:00
Aaron Po
8ec9f46fad Merge pull request #21 from aaronpo97/dev
Improving code structure and implement features to enhance user experience.
2023-04-12 00:15:32 -04:00
Aaron William Po
08422fe24e Restructure codebase to use src directory 2023-04-11 23:32:06 -04:00
Aaron William Po
90f2cc2c0c Begin work on tab components for beer by id page 2023-04-11 22:18:29 -04:00
Aaron William Po
f5abc518a4 Update register user form disable itself when loading
Fix error where a user could click submit multiple times while the form is submitting.
2023-04-11 20:24:40 -04:00
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
6c8a510d80 Update seed
Create new users updated to create a longer random value to prevent duplication when seeding db. Beer images now use a generated caption and alt text.
2023-04-11 20:22:21 -04:00
Aaron Po
4594e22a4f Merge pull request #20 from aaronpo97/infinite-comment-scroll
Feature: infinite comment scroll
2023-04-09 18:51:08 -04:00
Aaron William Po
851c95d621 fix linting error 2023-04-09 18:49:20 -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 Po
06f496ecd2 Merge pull request #18 from aaronpo97/style-updates-and-login-fix
Style updates and login fix
2023-04-08 02:48:44 -04:00
Aaron William Po
cbc5671b0e Fix login glitch where user session wouldn't load properly into context 2023-04-08 02:46:42 -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 Po
d2821eeec0 Merge pull request #17 from aaronpo97/env
Add environment variable validation and parsing
2023-04-07 12:12:28 -04:00
Aaron William Po
5779ff6530 Update documentation 2023-04-07 12:03:39 -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 Po
2d5998c634 Merge pull request #16 from aaronpo97/read-me
create readme
2023-04-05 23:33:41 -04:00