-
-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NEXT: Cookbook Image Layouts #2786
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@kmalloy24 is attempting to deploy a commit to the Skeleton Labs Team on Vercel. A member of the Team first needs to authorize it. |
@kmalloy24 this is looking great! Just FYI you might can use Unsplash's CDN features to resize the images:
You'll note several URL params added at the end here:
You might tailor those per example to ensure they are no larger than the need to be. We'll want to try to avoid Astro-only optimization if possible, to keep this as agnostic as possible. Additionally I'm open to other image sources if you have any recommendations. Even something like: https://place-hold.it/ |
I had removed the Unsplash params to make the image sizing dependent on Tailwind classes instead. This way folks can just swap in their image sources without the need for URL params to maintain the layouts. I can go back to the previous approach - it was just a little confusing to me when I copied out the code block and lost the formatting when I put in different image urls. I'll check out place-hold.it and see if it helps make the page more lightweight. |
Note I've bumped this back to draft state until the above work is complete. Feel free to tap "ready for review" when you reach that state again please! |
@kmalloy24 just checking on the status of this. No rush, I just want to confirm you saw the requested changes above. |
@endigo9740 I did, thanks for taking the time to review! Was hoping to get to it this week, but realistically I probably won't get a chance until next week. |
@kmalloy24 I finally had a moment free so I did a quick pass through this section. I made the following changes:
The guide should now be complete, so I'll merge right away. Thanks for your contribution as always! |
@endigo9740 Sweet! TIL about Lorem Picsum...will definitely be using that in the future. This was a good experience getting my feet wet with v3 so hopefully will be more efficient on cookbook contributions in the future. |
@kmalloy24 oh yeah it's cool. Btw if you jump on another ticket (no rush) just a heads up that we're about to push a change that will make PNPM v9.50 the minimum version (9.7.x is the latest and that's fine too). I'm trying to give all the regular contributors a heads up about this one: |
Description
Adds image layouts from v2 Blocks to v3 Cookbook. Includes two new layouts,
The page seems laggy on my local dev, it might be all the image URLs loading at full size. I can implement some image optimization features from Astro, but was trying to minimize any maintainable image assets in the codebase for now. It would also complicate the interaction between example components and raw code if we are maintaining a different component for the docs than what the example raw code is showing.