Conversation
|
This pull request is being automatically deployed with Vercel (learn more). website – ./🔍 Inspect: https://vercel.com/sketchbook-js/website/Cf4afaf1UWftz5K8BToKFAoLW8N7 website-storybook – ./🔍 Inspect: https://vercel.com/sketchbook-js/website-storybook/6DwyJLfCMwEygEHD5F4pwap5w8uv |
9bedee3 to
550e119
Compare
haydn
left a comment
There was a problem hiding this comment.
@Mxchaeltrxn Nice! You got both of them working. Sorry for the slow review.
I've added a bunch of comments cause there's a lot a little things here and there, but I've also fixed them all up — I'll push up the commits right after this.
|
@haydn Hey thanks for the review. You haven't yet merged so I'm thinking the remaining part of this PR is to deploy to the URL Because Is already taken by the sketchbook repository. Just checking since you didn't mention any other tasks in your comments. |
|
@Mxchaeltrxn Hello hello! Again, apologies for the slow response! Yeah, let's setup a project in Vercel called There are 2 changes I think we should make as well:
If you'd like some inspiration, I've recently setup Storybook in this project I've been putting together for ColonyDB (it's a bit different because it's still using a few addons): https://github.com/colonydb/anthill I'm planning to add Sketchbook to that project soon too! 😄 |
|
Actually… after thinking about it some more, I reckon you'll be able to get that global CSS into const globalStylesDiv = doc.createElement("div");
doc.body.appendChild(globalStylesDiv);
ReactDOM.render(<GlobalCSSComponentThingy />, globalStylesDiv); |
|
I'm still working on this so don't review it yet. |
Changes made
It seems like there isn't an easy way for me to create a vercel project and test a production build before merging this to QuestionOn a semi-related note, should I be running Also don't worry at all about your reply speed—I'm just glad you still review what I do! |
Three changes made:
Built the sketchbook config with webpack instead of esbuild, enabling styled-jsx. Styles are now applied (see the brandmark below).

Fixed styles on Github icon. in the header (vertically centered it).
Enable styles in Storybook by 'enabling' styled-jsx again via webpack (Github social link is now together, rather than apart like before).

It'd probably be nice to deploy this as well on Vercel with the domain
demo-build.sketchbookjs.comfor easier access but I haven't done that yet.