PokerMans Log Entry #2

March 07, 2022Reading Time: 1 min.

This week I knocked out some basic styling for the pages. I'm really excited how it turned out. Technically, it's not difficult to do, but getting page layouts and styling right, at least for me, is a challenge. I'm an engineer not a designer, Jim. When I do get it right, it's incredibly rewarding. I was able to get a good mobile and a decent desktop experience. This is due to leaning on the Chakra UI framework, and it's default theme. The teal color scheme turned out nicely for this project.

This week I knocked out some basic styling for the pages. I'm really excited how it turned out. Technically, it's not difficult to do, but getting page layouts and styling right, at least for me, is a challenge. I'm an engineer not a designer, Jim. When I do get it right, it's incredibly rewarding.

I was able to get a good mobile and a decent desktop experience. This is due to leaning on the Chakra UI framework, and it's default theme. The teal color scheme turned out nicely for this project.

I'm not sure I am a fan of Chakra UI yet. I am not used to their style props, and methodology so I think this is where my hesitancy is coming from. Normally I am using something akin to Styled Components, and feel much quicker styling in that system. That said, I do appreciate that I don't have to style everything from scratch. If I never have to style a text input again, I will be a happy man.

While testing my changes I discovered that user profiles are not being created in the database when the user registers an account. I assumed Prisma or Nexus would do this for me, since the user and profile tables are linked in the prism schema. (This is very not true) Luckily, NextAuth provides options in its configuration to run functions when a user is created! So next step is to fix this bug, and then continue on the User Profiles milestone!

- Angus