quality26 / store-framework

https://lab.github.com/vtex-trainings/store-framework
0 stars 0 forks source link

Inserting an Iframe on our about us page #20

Closed github-learning-lab[bot] closed 4 years ago

github-learning-lab[bot] commented 4 years ago

Inserting an Iframe on our about us page

:sparkles: Branch: iframe

Introduction

An Iframe is a HTML element that allows the incorporation of another HTML page to the current one. Therefore, using the Iframe block, you can embed content from other URLs and display them on your page. It's important to remember that URLs rendered by Iframe have their own context, with independent session history and DOMs.

WARNING: Iframes are only allowed on custom page templates.

The iframe block has very simple properties:

Below, we can see an implementation example of the iframe block:

"store.custom#about-us": {
   "blocks": [
     "flex-layout.row#about-us",
     "iframe"
   ]
 },

"iframe": {
  "props": {
    "src": "http://someURL.com/resource",
    "width": 100,
    "height": 200
  }
}

Activity

Let's display an Instagram post on your store page:

  1. Change the label of the "Electronics" tab to "Instagram";
  2. In the Instagram tab's content, delete the rich-text and include an iframe block;
  3. In the iframe props, display the following link content in a 800px-wide by 1000px-high container: https://www.instagram.com/p/B973Qp8BacC/embed

:information_source: Remember to access the Iframe documentation if you have any questions during this activity.

Expected result:


If you're still unsure as to how to send your answers, click here.

github-learning-lab[bot] commented 4 years ago

You have successfully completed this step!

Go to the next step!

vtex-course-hub[bot] commented 4 years ago

Oopsie, something went wrong :crying_cat_face:

Results

:x::x::x::x:

Tests

:x: Didn't manage to load a about-us.jsonc file on your repository :( :x: tab-list.item#home2 does not have the expected label :x: Could not find an iframe block inside your "Instagram" tab :x: Your iframe is not configured according to the instructions for this step

Try again :grin:

vtex-course-hub[bot] commented 4 years ago

Oopsie, something went wrong :crying_cat_face:

Results

:white_check_mark::white_check_mark::white_check_mark::x:

Tests

:white_check_mark: Getting the file :white_check_mark: Update the label from the tab-list.item#home2 to Instagram :white_check_mark: Add an iframe to the tab labeled "Instagram" :x: Your iframe is not configured according to the instructions for this step

Try again :grin:

vtex-course-hub[bot] commented 4 years ago

Oopsie, something went wrong :crying_cat_face:

Results

:white_check_mark::white_check_mark::white_check_mark::x:

Tests

:white_check_mark: Getting the file :white_check_mark: Update the label from the tab-list.item#home2 to Instagram :white_check_mark: Add an iframe to the tab labeled "Instagram" :x: Your iframe is not configured according to the instructions for this step

Try again :grin: