Black Friday er her! Lag en app og få 50 % rabatt nå!

Visual Card

Meta-Cells

The Visual Card gives the image the leading role, a large visual on top, the text and the actions under it. It is made for content that has strong visuals to show.

Introduction

The Visual Card is the cell that puts the image first. A large visual takes the top of the card, the text comes under it, and the author and the actions close it. It is the cell to choose when the image matters more than the information around it, for articles, videos, podcasts, events, map points and photos with strong visuals, in a section as in a widget of the home page.

It is one of the meta-cells of the design system, a layout made of elements that stays the same whatever the content it shows.

Anatomy

The elements

The card stacks three elements. The Media holds the image, on the full width of the card, and the elements that sit on it. The Content comes under it, with an information above the title, the title and an information below. The ToolBar closes the card, with the author on the left and the actions on the right. For a place or an event, the Address comes under the text, in place of the ToolBar.

The elements of the card

The elements of the card

What the card shows

By type of content

An article shows its image, its text and its ToolBar. A video adds the play icon at the center of the image and the duration in a corner. A podcast gets its Player on the image. A map point shows the favorite action and the distance on the image, and its address under the text. An event shows the favorite action and its DateBullet on the image, and its address too. A photo keeps its text and its actions, with a line of information in place of the author.

An article, a video, a podcast, a map point, an event and a photo

An article, a video, a podcast, a map point, an event and a photo

Free and paid

When a piece of content is reserved to subscribers, the Premium Sticker comes in front of the title, and the ToolBar keeps fewer actions. The Player of a podcast is disabled. A map point no longer shows its distance or its address, and an event no longer shows its address.

The same map point, free and reserved

The same map point, free and reserved

The lines of text

In a list, the title is never cut, the card grows with it. In a banner, where all the cards share the height of the tallest, the title is limited to a few lines. The information above and below the title keep a few lines each, and the line of author and information stays on one line.

Layout

Spacing

By default, the card has a padding of one G on its four sides. The Media, the Content and the ToolBar are one G apart, and the blocks of the Content are half a G apart. These values follow the gutter of the app.

One G around and between the elements, half a G between the lines

One G around and between the elements, half a G between the lines

Image formats

The image takes the full width of the card, and its height follows the format chosen for the list, 4:3 by default, 16:9, square or golden ratio. The aspect ratios offered depend on the type of content, and photos get the widest choice.

The same card in 16:9, 4:3, square and golden ratio

The same card in 16:9, 4:3, square and golden ratio

Edge to edge

By default, the image sits inside the padding of the card. With the edge to edge option, it runs to the edges of the card on three sides, top, left and right, while the text keeps its inset.

Inset, and edge to edge

Inset, and edge to edge

Small cards

In a grid or in a compact banner, the card shrinks and its elements follow. The Author takes its small size, the play icon too, and the ToolBar gives way to the Actions Menu.

A card, and two small cards

A card, and two small cards

Columns and banners

A list of Visual Cards can run on several columns. As the Grid explains, their number comes from the width of the window and from the column threshold of the layout, never from the device. Each card fills the width it has, and the list adds a column as soon as a card would exceed that threshold. On a row, all the cards take the height of the tallest. When the last row is not full, its cards keep the width of the others. In a banner, the cards line up side by side and scroll sideways.

Properties

Background and border

The card can take a Background, a color or a gradient, and a Border. The list sets both. A list shows separators between its cards or borders around them, never both at the same time. Without a background, the card has no padding, its content runs to its edges, and the cards are set two G apart.

A background, a border, and no background

A background, a border, and no background

Shape

The Shape of the app applies to the card and to its thumbnail, with sharp, rounded or round corners.

Sharp, rounded and round

Sharp, rounded and round

Shadow

The Shadow atom applies to the card when it has a background. Without a background, it moves to the thumbnail.

On the card, or on the thumbnail without a background

On the card, or on the thumbnail without a background

Slideshow

When a piece of content has several images, the card can show them all as a slideshow, one after the other, with a Pager to tell the position. The list sets how many images are shown, all of them by default.

The images of a place, with the pager

The images of a place, with the pager

Behavior

Without an image

The card never goes without its image. When a piece of content has none, a default thumbnail takes its place.

The default thumbnail

The default thumbnail