Open github-learning-lab[bot] opened 4 years ago
:white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark:
:white_check_mark: Getting the file
:white_check_mark: Code compilation
:white_check_mark: Define related products shelf
:white_check_mark: Use and define a stack-layout
on the left column
:white_check_mark: Use product images and product brand within the stack layout
:white_check_mark: Define correct props on product-brand
:white_check_mark: Define correct props on sku-selector
Finishing your pdp
:sparkles: 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 :point_up_2:)
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
:shelf.relatedProducts
under the product's main line:warning: Remember, this product shelf is only displayed for the
/3-colors-retro-stand-mixer/p
product.product-images
with astack-layout
declaration;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::information_source: Remember to read through the Stack Layout documentation if you have any questions during the activity.
:information_source: Remember to use the
/3-colors-retro-stand-mixer/p
product to test this step.If you're still unsure as to how to send your answers, click here.