diff --git a/CLAUDE.md b/CLAUDE.md index 27fe85e..63dcfc0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -18,29 +18,29 @@ The application uses CDN-hosted dependencies: Single-page application using AlpineJS for reactivity. Key structure in `index.html`: -- **`qrCodeApp()`** (line 255): AlpineJS component containing all application state and logic +- **`qrCodeApp()`** (line 259): AlpineJS component containing all application state and logic - `generateLabels()`: Creates label data array with QR code URLs via external API (api.qrserver.com) - `printLabels()`: Triggers browser print dialog - - Generates 189 labels per sheet (7 columns × 27 rows) + - Generates 80 labels per sheet (4 columns × 20 rows) -- **Print styling**: Uses CSS `@page` rule for A4 paper with zero margins (requires Chrome/Chromium) +- **Print styling**: Uses CSS `@page` rule for US Letter paper with zero margins (requires Chrome/Chromium) -- **Label format**: Hardcoded for Avery L4731REV-25 labels (see specifications below) +- **Label format**: Hardcoded for Avery 8167 labels (see specifications below) -## Avery L4731REV-25 Label Specifications +## Avery 8167 Label Specifications -Page: A4 (210mm × 297mm) +Page: US Letter (8.5" × 11" / 215.9mm × 279.4mm) | Dimension | Value | |-----------|-------| -| Label size | 25.4mm × 10mm | -| Grid | 7 columns × 27 rows (189 labels) | -| Top/Bottom margin | 13.5mm | -| Left/Right margin | 8.6mm | -| Horizontal gap | 2.5mm | -| Vertical gap | 0mm (labels touch) | -| Horizontal pitch | 27.9mm | -| Vertical pitch | 10mm | +| Label size | 1.75" × 0.5" (44.45mm × 12.7mm) | +| Grid | 4 columns × 20 rows (80 labels) | +| Top/Bottom margin | 0.5" (12.7mm) | +| Left/Right margin | 0.3" (7.62mm) | +| Horizontal gap | 0.3" (7.62mm) | +| Vertical gap | 0" (labels touch) | +| Horizontal pitch | 2.05" (52.07mm) | +| Vertical pitch | 0.5" (12.7mm) | ## Code Style diff --git a/index.html b/index.html index 5739b5d..131a6fe 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ @page { /* Remove default margin set by the browser */ margin: 0mm; - size: A4; + size: Letter; } } @@ -56,8 +56,8 @@

This tool generates QR code labels for the ASN feature. You can - generate labels for up to 189 documents at once. The labels are - formatted to fit on Avery L4731REV-25 labels. + generate labels for up to 80 documents at once. The labels are + formatted to fit on Avery 8167 labels (US Letter size).

@@ -100,12 +100,12 @@

- The number of labels generated will be 7 x 27 = 189. This means + The number of labels generated will be 4 x 20 = 80. This means the next batch of labels should start with - 19081.

@@ -198,14 +198,14 @@
-
    +