IFFDAYIFFDAYDesign
Film and community

FilmTile

A poster with a title and a second line, with an optional rank and badge.

import { FilmTile } from '@iffday/web/src/kit';

Example

Under the poster comes one line of title, a 13px grey second line and an optional meta row. The title keeps to one line and ends in an ellipsis when it is too long; on hover it is underlined and the poster fades a little. rank puts a position above the title, as rankings do.

1.Possible LoveLEE Chang-dong
2.The HandmaidenPARK Chan-wook
3.DustTSAI Ming-Liang
4.Angel’s EggOSHII Mamoru
5.Nagi NotesFUKADA Koji

In a grid

Put tiles in .tile-grid: by default each column is at least 150px and the row fills up; cols-5 and cols-6 fix the count. At 1020px and narrower the grid has four columns, and three on phones. For a single row use Shelf.

Accessibility

The poster and the title link to the same address. The poster link is hidden from screen readers and skipped by Tab, so each film is read once and takes one Tab stop.

Props

Poster, title and a muted second line; optional rank and meta row.

PropTypeDefault
entry*Pick<Entry, 'id' | 'title' | 'titleEn' | 'posterUrl'> & FilmVisuals
to*string
subtitleReactNode
metaReactNode
ranknumber
badgeReactNode
size'sm' | 'md' | 'lg''md'