Free cookie consent management tool by TermsFeed

Cards as Info Pattern

On This Page

Tip:  Interface patterns give you an opportunity to explore different interface designs. Be sure to check out How to Adapt a Pattern for Your Application.

Goal

Use this pattern to display high level summaries of options with icons and descriptions. This pattern uses card layouts with stamp fields and rich text to create visually distinct information cards. This page explains how you can use this pattern in your interface, and walks through the design structure in detail.

cards_as_info_pattern.png

Design structure

The pattern uses a column layout to create three columns, each containing a card layout. Each card displays an icon using a stamp component, a title with an optional tag component, and a description using rich text display components.

Tip:  This pattern uses columns layout to achieve fixed width cards. But when the number of cards could vary or the amount of available screen space is unknown, consider using using card group layout.

Pattern expression

When you drag and drop the cards as info pattern onto your interface, a 182-line expression will be added to the section where you dragged it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
  a!columnsLayout(
    columns: {
      a!columnLayout(
        contents: {
          a!cardLayout(
            contents: {
              a!sideBySideLayout(
                items: {
                  a!sideBySideItem(
                    /*you can also try swapping the stamp field for a!imageField to display users' profile photo*/
                    item: a!stampField(
                      labelPosition: "COLLAPSED",
                      icon: "credit-card",
                      size: "TINY",
                      backgroundColor: "#FFF9E6",
                      contentcolor: "#B38705",
                      shape: "SEMI_ROUNDED"
                    ),
                    width: "MINIMIZE"
                  ),
                  a!sideBySideItem(
                    item: {
                      a!sideBySideLayout(
                        items: {
                          a!sideBySideItem(
                            item: a!richTextDisplayField(
                              labelPosition: "COLLAPSED",
                              value: {
                                a!richTextItem(
                                  text: "Credit Card",
                                  size: "STANDARD",
                                  style: "STRONG"
                                )
                              }
                            ),
                            width: "MINIMIZE"
                          ),
                          a!sideBySideItem(
                            item: a!tagField(
                              labelPosition: "COLLAPSED",
                              tags: {
                                a!tagItem(
                                  text: "NO FEE",
                                  backgroundColor: "#E6F5F3"
                                )
                              },
                              marginBelow: "NONE",
                              size: "SMALL"
                            )
                          )
                        },
                        marginAbove: "NONE",
                        marginBelow: "NONE",
                        alignVertical: "MIDDLE"
                      ),
                      a!richTextDisplayField(
                        labelPosition: "COLLAPSED",
                        value: {
                          a!richTextItem(
                            text: "Visa or Mastercard",
                            color: "#6B6B6B"
                          )
                        },
                        marginAbove: "NONE"
                      )
                    }
                  )
                },
                alignVertical: "MIDDLE"
              )
            },
            shape: "SEMI_ROUNDED"
          )
        },
        width: "NARROW_PLUS"
      ),
      a!columnLayout(
        contents: {
          a!cardLayout(
            contents: {
              a!sideBySideLayout(
                items: {
                  a!sideBySideItem(
                    item: a!stampField(
                      labelPosition: "COLLAPSED",
                      icon: "gift",
                      size: "TINY",
                      backgroundColor: "#FCE8F5",
                      contentcolor: "#9E0E69",
                      shape: "SEMI_ROUNDED"
                    ),
                    width: "MINIMIZE"
                  ),
                  a!sideBySideItem(
                    item: {
                      a!richTextDisplayField(
                        labelPosition: "COLLAPSED",
                        value: {
                          a!richTextItem(
                            text: "Gift Card",
                            size: "STANDARD",
                            style: "STRONG"
                          )
                        },
                        marginBelow: "NONE"
                      ),
                      a!richTextDisplayField(
                        labelPosition: "COLLAPSED",
                        value: {
                          a!richTextItem(
                            text: "Pay with a store gift card",
                            color: "#6B6B6B"
                          )
                        },
                        marginAbove: "NONE"
                      )
                    }
                  )
                },
                alignVertical: "MIDDLE"
              )
            },
            shape: "SEMI_ROUNDED"
          )
        },
        width: "NARROW_PLUS"
      ),
      a!columnLayout(
        contents: {
          a!cardLayout(
            contents: {
              a!sideBySideLayout(
                items: {
                  a!sideBySideItem(
                    item: a!stampField(
                      labelPosition: "COLLAPSED",
                      icon: "university",
                      size: "TINY",
                      backgroundColor: "#FEEEE9",
                      contentcolor: "#DC491B",
                      shape: "SEMI_ROUNDED"
                    ),
                    width: "MINIMIZE"
                  ),
                  a!sideBySideItem(
                    item: {
                      a!richTextDisplayField(
                        labelPosition: "COLLAPSED",
                        value: {
                          a!richTextItem(
                            text: "Bank Transfer",
                            size: "STANDARD",
                            style: "STRONG"
                          )
                        },
                        marginBelow: "NONE"
                      ),
                      a!richTextDisplayField(
                        labelPosition: "COLLAPSED",
                        value: {
                          a!richTextItem(
                            text: "Direct bank transfer",
                            color: "#6B6B6B"
                          )
                        },
                        marginAbove: "NONE"
                      )
                    }
                  )
                },
                alignVertical: "MIDDLE"
              )
            },
            shape: "SEMI_ROUNDED"
          )
        },
        width: "NARROW_PLUS"
      )
    }
  )
}

Feedback