CodeHubOrg / codehub-mentorships

CodeHub Mentorship platform - built with Laravel and React
3 stars 0 forks source link

Tailwind ui layout #72

Closed fourstacks closed 4 years ago

fourstacks commented 4 years ago

This PR introduces a new AppLayout for the site - figured it was about time to make things look a bit pretty!

As well as the obvious visual changes I've made a few other additions and tweaks:

There a couple of new packages:

I renamed 'general' profile to 'account'

The form is largely unchanged (though I've split the name property into first and last names for greater flexibility) but it's now found at /account - you can navigate to this by clicking the avatar in the top right of the screen. As far as avatars are concerned, I've installed a Gravatar package so if the email in use has a gravatar then that will be used - otherwise you get a fun robot head.

I tweaked the Card component

I've added the ability to pass in a react node as a header and footer - just makes it a little more flexible.

katjad commented 4 years ago

This all looks great @fourstacks, thank you! Have checked out the branch and looked at the changes. Really good to have the desktop and mobile menus! And the dropdown on the account icon, plus the ability to use routes in JS and restrict fields used from the backend. Good to learn about all these things too.