Monday, June 19, 2023

139: Tailwind Grid

 Today I made a section of the app using CSS Grid and Tailwind. This was relatively easy actually, and only required making a wrapper div with all the grid specifications, and then individually styling the cells inside. Since most of the cells shared common styling, I declared a commonStyles string with all the Tailwind classes in it, and then used Javascript string interpolation to inject these styles into each div. This way, the individual cells needed only the styling that was unique to them. 


No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...