Open github-learning-lab[bot] opened 4 years ago
:white_check_mark::white_check_mark::white_check_mark::white_check_mark::white_check_mark::x::white_check_mark::white_check_mark:
:white_check_mark: Getting the file
:white_check_mark: Add a flex-layout.row
inside of footer-layout.desktop
:white_check_mark: Add flex-layout.col#footer-left-desktop
inside of flex-layout.row#footer-1-desktop
:white_check_mark: Add flex-layout.col#footer-right-desktop
inside of flex-layout.row#footer-1-desktop
:white_check_mark: accepted-payment-methods
inside of flex-layout.col#footer-left-desktop
:x: Couldn't find the required props in accepted-payment-methods
:white_check_mark: social-networks
inside of flex-layout.col#footer-right-desktop
:white_check_mark: props of social-networks
are properly configured
:white_check_mark::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: Add a flex-layout.row
inside of footer-layout.desktop
:white_check_mark: Add flex-layout.col#footer-left-desktop
inside of flex-layout.row#footer-1-desktop
:white_check_mark: Add flex-layout.col#footer-right-desktop
inside of flex-layout.row#footer-1-desktop
:white_check_mark: accepted-payment-methods
inside of flex-layout.col#footer-left-desktop
:white_check_mark: props of accepted-payment-methods
are properly configured
:white_check_mark: social-networks
inside of flex-layout.col#footer-right-desktop
:white_check_mark: props of social-networks
are properly configured
Footer
:sparkles: Branch: footer
Introduction
In this step, we will learn how to create a component that is commonly seen as unimportant, but which is critical to providing a good user experience: the footer.
Few users scroll until the footer. However, the ones that do make it that far may be looking for information that is usually housed in this block, such as links to social media and payment methods accepted by the store. It can also house customized pages that direct to the company's recruitment site, customer support and category menus.
FOTO Footer
Configuring the Footer
The Footer block, just as the Header, is responsive, meaning that it can be configured to adapt to different devices, such as desktop and mobile.
Below, we can see an Footer implementation example for desktop:
Activity
We are now going to configure a footer for the store's main page, considering the above-mentioned example code for desktop and mobile.
We will not implement the menu during this activity, since it's already be dealt with during the Header context. We will instead look at accepted payment methods and the store's social media networks.
In the
footer.jsonc
file, copy the code above and to use in your theme;Thereafter, declare the following block:
Based on the block above, build the
flex-layout.col#footer-left-desktop
, having the following children:accepted-payment-methods
;Then, build the
accepted-payment-methods
block with the following payment methods:MasterCard
,Visa
andDiners Club
. And just to gain a bit more knowledge, find out how to display payment methods in color in this documentation;In this step, we will use the
social-networks
block to display our store's social media networks. Check the documentation for more on this, and then implement as the social media networks as children of theflex-layout.col#footer-right-desktop
block. We want to displayFacebook
,Instagram
andTwitter
.Lastly, make the social media network logos appear in color. Read the footer's documentation for more on this.
:information_source: Remember to access the footer's documentation in case you have any questions during the activity.
Expected result:
If you're still unsure as to how to send your answers, click here.