// The VIDEO face (image 11): a video is the still laid straight on the cream// stock with a play button and its length on it, its title typed under it// and its date in the hand. A tap on the still opens it in the one viewer// (`DeckViewer`). Every word is the core's (`FaceRead`).importCottonPaperimportCottonValuesimportSwiftUIpublicenumVideoFaceKnobs {staticlet stillInset = EdgeInsets(top: 13, leading: 16, bottom: 0, trailing: 13)staticlet stillShare: CGFloat = 0.76staticlet play: CGFloat = 42publicstaticlet playOpacity: Double = 0.78staticlet lengthSize: CGFloat = 10.5staticlet titleSize: CGFloat = 13.5staticlet dateHand: CGFloat = 16staticlet textLead: CGFloat = 26}publicstructVideoFace<Still: View>: View {let card: DeckCard/// The film's poster filling its frame.let still: Still?publicinit(card: DeckCard, still: Still?) {self.card = cardself.still = still }publicvar body: someView {GeometryReader { sheet in VStack(alignment: .leading, spacing: 0) { ZStack {iflet still { MountedPrint(photo: still) } else { Color.clear }PlayDisc(size: VideoFaceKnobs.play)iflet length = card.text("length") {LengthBadge(words: length) .frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .bottomTrailing) .padding(8) } } .accessibilityElement(children: .ignore) .accessibilityLabel(card.text("title") ?? "") .frame(height: sheet.size.height * VideoFaceKnobs.stillShare) .padding(VideoFaceKnobs.stillInset) .facePart(.picture) VStack(alignment: .leading, spacing: 8) {iflet title = card.text("title") {Text(title) .font(CottonFonts.type(VideoFaceKnobs.titleSize)) .lineLimit(2) .faceInk(.ink) .facePart(.title) }iflet date = card.text("date") {Text(date) .font(CottonFonts.hand(VideoFaceKnobs.dateHand)) .faceInk(.pencil) .facePart(.when) } } .padding(.horizontal, VideoFaceKnobs.textLead) .padding(.top, 20)Spacer(minLength: 0) } } .onCardPaper(VideoFaceCatalogue.stock.laid(card.pace)) }}/// A video's length on a small dark plate in the still's corner.structLengthBadge: View {let words: String @Environment(\.theme) privatevar themevar body: someView {Text(words) .font(CottonFonts.type(VideoFaceKnobs.lengthSize)) .foregroundStyle(theme.colors.paper.color) .padding(.horizontal, 6) .padding(.vertical, 3) .background(RoundedRectangle(cornerRadius: 3, style: .continuous).fill(theme.print(.ink).opacity(0.82))) }}/// The video face, by the kind's name, and the cards it is reviewed in. The/// still is always handed over, held or not (`HeldPicture`), as a deck hands/// it.publicenumVideoFaceCatalogue {publicstaticlet stock: FaceStock = .creampublicstaticlet ground: FaceGround = .paperpublicstaticlet face = Face(id: "video", specimens: [Specimen("falls", falls, picture: "waterfall")]) { card, picture, taps inVideoFace(card: card, still: HeldPicture(picture)) }publicstaticlet falls = DeckCard(face: .video, fields: ["title": .text("Abbey Falls, after the rain"),"date": .text("11 Sep 2026"),"length": .text("0:42"),"photo": .text("waterfall"), ])}