---
updatedAt: 2025-05-14T08:04:06.000Z
agentTools:
  projectIndex: https://learn.vtex.com/llms.txt
---

# Info Card: Store Framework's call to action

<HTMLBlock>{`
<style>
      section#hub-content header h1, section#hub-content header h2 {
        color: #f71963
      }
    
      p {
        line-height: 1.5rem;
      }
    </style>
`}</HTMLBlock>

# Info Card: Store Framework's call to action

## Introduction

A store needs a good *home page* to engage users, increasing session time and therefore conversion chances. To achieve this, several elements need to be used, such as promotional banners, shelves with highlights, material about the store, etc.

We have created the next block on the *home page* using a *call to action*. In Store Framework, we have a block designed for this purpose, called [**Info Card**](https://developers.vtex.com/docs/guides/vtex-store-components-infocard).

## Starting out with Info Card

![image](https://user-images.githubusercontent.com/18701182/68480411-7b085800-0213-11ea-9426-31dcb0d0aa7d.png)

Using the Info Card, you can create images which have links and buttons (top or side of the block) that direct the user's flow (*Call to action*).

Looking at the [documentation](https://developers.vtex.com/docs/guides/vtex-store-components-infocard#configuration), we can see that:

* `isFullModeStyle` defines whether the *Call to Action (CTA)* is set above the banner;
* `textPosition` defines the position of the text;
* `textAlignment` defines the text's alignment;
* `imageUrl` defines which image will be used as banner;
* `headline` determines which text will be used as headline;
* `callToActionMode` allows to choose the *CTA* mode as either a link or a button;
* `callToActionText` defines the *CTA* text;
* `callToActionUrl` determines the URL to which it redirects;

We therefore have the following props:

```json
{
  "store.home": {
    "blocks": ["rich-text", "info-card"]
  },
  "rich-text": {
    "props": {
      "text": "*Hello, World!*",
      "textPosition": "RIGHT"
    }
  },
  "info-card": {
    "props": {
      "isFullModeStyle": false,
      "textPosition": "right",
      "imageUrl": "https://appliancetheme.vteximg.com.br/arquivos/cozinha-rosa-min.png",
      "headline": "Vintage Pink",
      "subhead": "Give your kitchen a boho style adding vintage apparels.<br>Available until January 2020.",
      "callToActionMode": "button",
      "callToActionText": "Explore",
      "callToActionUrl": "/sale/d",
      "textAlignment": "center"
    }
  }
}
```

## Instancing blocks

You may have asked yourself:

> "What if I wanted to have two different Info Cards?"

It's possible through **block instancing**.

All block have pre-established names, but you can create block instances and define different ways in which the block types appear. After each block has been defined, simply place an '#' with an **arbitrary** name that makes, for example:

```json
  {
    "store.home": {
      "blocks": [
        "rich-text",
        "info-card#button-right"
      ]
    },
    ...
    "info-card#button-right": {
      "props": {
        "isFullModeStyle": false,
        "textPosition": "right",
        "imageUrl": "https://appliancetheme.vteximg.com.br/arquivos/cozinha-rosa-min.png",
        "headline": "Vintage Pink",
        "subhead": "Give your kitchen a boho style adding vintage apparels.<br>Available until January 2020.",
        "callToActionMode": "button",
        "callToActionText": "Explore",
        "callToActionUrl": "/sale/d",
        "textAlignment": "center"
      }
    }
  }
```

## Activity

1. In the `home.jsonc` file, based on the code above, create the `info-card#button-left` right under the info card: `info-card#button-right`. This new info card must implement the following props:

   * The title must be `Shining chrome`
   * A link type call-to-action with the following text instead of a button: `Go to Collection`
   * The following image `https://appliancetheme.vteximg.com.br/arquivos/cozinha-cinza-min.png`
   * The following subtitle `Give your kitchen a cool style adding warm metallic finishes.<br>Available until January 2020.`
   * Text to the left of the image (`textPosition`).

   ```json
   ...
     "info-card#button-left": {
       "props": {
       "isFullModeStyle": false,
       "textPosition": "left",
       "imageUrl": "https://appliancetheme.vteximg.com.br/arquivos/cozinha-cinza-min.png",
       "headline": "Shining chrome",
       "subhead": "Give your kitchen a cool style adding warm metallic finishes.<br>Available until January 2020.",
       "callToActionMode": "link",
       "callToActionText": "Go to collection",
       "textAlignment": "center"
       }
     }
   ...
   ```

The expected result will look similar to this:

![image](https://appliancetheme.vteximg.com.br/arquivos/info-card-activity.png)

Note: Remember to access the [Info Card](https://developers.vtex.com/docs/guides/vtex-store-components-infocard) documentation if you have any questions regarding the activity.

### Any questions?

See the [answersheet for this step](https://learn.vtex.com/docs/course-basic-blocks-step03infocard-answersheet-lang-en) or check our [office hours](https://www.youtube.com/c/VTEXDevelopers) on the VTEX Developers channel.

<hr/>
<div id="contribute-container">
  <p id="contribute-title"> 
    Help us make this content better!
  </p>
  <p id="contribute-description">
    VTEX IO courses are open source. If you see something wrong, you can open a pull request!
  </p>

  <a id="contribute-button" href="https://github.com/vtex/vtex-courses/edit/master/courses/basic-blocks/steps/03_infocard/en.md">
    Make a contribution
  </a>

  <p id="contribute-issue">
    or <a href="https://github.com/vtex/vtex-courses/issues/new/choose">open an issue</a>
  </p>

</div>