Reference index

Blocks

Print A4

Block: an A4 page shell (210 by 297mm, 44 to 52px margins, main column plus a 210 to 228px side column), a named @page rule for print and a page-break helper. Pure layout.

Preview

Curriculum vitae

Alex Example

Software engineer, placeholder profile

Profile

Placeholder text. A short paragraph about the person, set in the body face, that runs for three or four lines and says what they build and how they work.

Experience

2023 – present

Lead engineer, Procurement Docs Platform

Placeholder text. Designed the document workflow and the review screens, and kept the release process calm.

2020 – 2023

Senior engineer, Example Studio

Placeholder text. Built internal tools for editors and wrote the first test suite for the publishing system.

2017 – 2020

Engineer, Example Works

Placeholder text. Maintained a set of services and moved the team to a weekly release.

Install

bash

npx shadcn add @eloquent/print-a4

This is a block: it installs components/blocks/print-a4.tsx and styles/print-a4.css, and adds @import "../styles/print-a4.css" to your global stylesheet. The stylesheet holds one rule, a named page, so only a sheet prints on it and the rest of your site prints as before.

Usage

tsx

import { PrintA4, PrintA4Aside, PrintA4Columns, PrintA4Main, PrintA4PageBreak } from "@/components/blocks/print-a4";

<PrintA4 margin={48}>
  <PrintA4Columns asideWidth={216}>
    <PrintA4Main>{/* the story */}</PrintA4Main>
    <PrintA4Aside aria-label="Contact and skills">{/* the side column */}</PrintA4Aside>
  </PrintA4Columns>
</PrintA4>
<PrintA4PageBreak />
<PrintA4 margin={52}>{/* page 2 */}</PrintA4>

One PrintA4 is one printed page: it is clipped to 297mm in print, so split longer content across sheets and put a PrintA4PageBreak between them. To keep a block whole inside a column, add break-inside-avoid to it. Print from the browser with margins set to "None" (the page rule already sets none).

States

Margin 44px

Placeholder text inside a 44px margin.

Margin 48px

Placeholder text inside a 48px margin.

Margin 52px

Placeholder text inside a 52px margin.

Curriculum vitae

Alex Example

Software engineer, placeholder profile

Profile

Placeholder text. A short paragraph about the person, set in the body face, that runs for three or four lines and says what they build and how they work.

Experience

2023 – present

Lead engineer, Procurement Docs Platform

Placeholder text. Designed the document workflow and the review screens, and kept the release process calm.

2020 – 2023

Senior engineer, Example Studio

Placeholder text. Built internal tools for editors and wrote the first test suite for the publishing system.

2017 – 2020

Engineer, Example Works

Placeholder text. Maintained a set of services and moved the team to a weekly release.

Capability

What we build, and how

Placeholder text. One short paragraph on the kind of work taken on, set in the body face.

Practice

  • Document workflows
  • Review and approval screens
  • Reporting for the desk
PartScreenPrint
PrintA4210mm wide, at least 297mm tall, hairline edge, margin 44, 48 or 52pxExactly one page of 297mm on the named page eloquent-a4; no edge; clipped
PrintA4ColumnsMain column plus a side column of 210 to 228px (default 216)The same
PrintA4AsideA complementary landmark with a 1px ink rule on its leftThe same
PrintA4PageBreakA 32px gap between sheetsNo space; the next sheet starts a new page

Keyboard

The layout is not interactive and is not a tab stop. The examples wrap each sheet in a scrollable region so a narrow screen can scroll a sheet at its true size; that region is the only stop.

KeyAction
TabMoves to the scrollable region around a sheet (examples only), then on
Arrow keysScroll the focused region

Vietnamese

Sơ yếu lý lịch

Alex Mẫu

Kỹ sư phần mềm, hồ sơ mẫu

Giới thiệu

Nội dung mẫu. Một đoạn ngắn về bản thân, dài ba hoặc bốn dòng, nói rõ người này xây dựng gì và làm việc ra sao.

Kinh nghiệm

2023 – nay

Kỹ sư trưởng, Procurement Docs Platform

Nội dung mẫu. Thiết kế quy trình tài liệu và các màn hình duyệt, giữ cho việc phát hành luôn êm.

2020 – 2023

Kỹ sư cao cấp, Example Studio

Nội dung mẫu. Xây công cụ nội bộ cho biên tập viên và viết bộ kiểm thử đầu tiên cho hệ thống xuất bản.

2017 – 2020

Kỹ sư, Example Works

Nội dung mẫu. Duy trì một nhóm dịch vụ và chuyển đội ngũ sang phát hành hằng tuần.

Ink adaptation

Brand block with no upstream. Paper and ink only: the side column is divided by a hairline rule, not a box, and there is no radius or shadow. The sample content is placeholder text.