-
Notifications
You must be signed in to change notification settings - Fork 0
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
Finishing your pdp #13
Comments
Oopsie, something went wrong 😿Results✅✅✅✅✅✅❌ Tests✅ Getting the file Try again 😁 |
3 similar comments
Oopsie, something went wrong 😿Results✅✅✅✅✅✅❌ Tests✅ Getting the file Try again 😁 |
Oopsie, something went wrong 😿Results✅✅✅✅✅✅❌ Tests✅ Getting the file Try again 😁 |
Oopsie, something went wrong 😿Results✅✅✅✅✅✅❌ Tests✅ Getting the file Try again 😁 |
You did great! 😁Results✅✅✅✅✅✅✅ Tests✅ Getting the file |
You have successfully completed this step!Go to the next step! |
Finishing your pdp
✨ Branch: pdp3
Introduction
In this step we'll finish setting up our product page. We've learned how to stack blocks using Stack Layout, and we've also learned how to suggest similar product and better customize the SKU Selector for products with SKU images.
Use the following product URL to test this step:
/3-colors-retro-stand-mixer/p
.Stack Layout
stack-layout
is a type of layout that allows blocks to stack on top of others. It comes in handy when you want to a badge on top of an image or product. It's also useful when placing rich text onto images (using arich-text
and animage
).(In the image, a shelf is stacked on top a carrossel 👆)
In this step, we'll use
stack-layout
to place the brand on top of product images.Activity
Develop the product page by adding the step below to
product.jsonc
:Declare a
shelf.relatedProducts
under the product's main line/3-colors-retro-stand-mixer/p
product.From the left column, change
product-images
with astack-layout
declaration;Define
stack-layout
and setproduct-images
andproduct-brand
as children;Consult the documentation to change the way in which
product-brand
is displayed. You should make the logo appear with a height of 30 and include thedisplayMode: "logo"
prop.Review the documentation to make the
sku-selector
do the following:image
, as it's shown in the documentation mentioned before;ℹ️ Remember to read through the Stack Layout documentation if you have any questions during the activity.
ℹ️ Remember to use the
/3-colors-retro-stand-mixer/p
product to test this step.🚫 Are you lost?
Is there any problem with this step? What about sending us a feedback? 🙏
Submit feedback
If you're still unsure as to how to send your answers, click here.
The text was updated successfully, but these errors were encountered: