docs: use an optimized PPTX screenshot as the README preview

Replace the placeholder hero.svg with a real app screenshot (PPTX viewer
with the thumbnail rail and toolbar). Downscaled 1920->1456px and
re-encoded to 92 KB.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-25 15:08:50 +02:00
co-authored by Claude Opus 4.8
parent dd2fd55ae7
commit 5339effffd
3 changed files with 1 additions and 82 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ A browser-based document viewer that renders **PDF, ODF, RTF, DOC, DOCX, Markdow
To give it a try without installing anything, visit the [live demo](https://alpaq92.github.io/ReaderJS/).
![ReaderJS — universal document viewer](gallery/hero.svg)
![ReaderJS — universal document viewer](gallery/preview.png)
---
-81
View File
@@ -1,81 +0,0 @@
<svg viewBox="0 0 1200 720" xmlns="http://www.w3.org/2000/svg" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">
<rect x="0" y="0" width="1200" height="720" rx="10" fill="#525659"/>
<rect x="0" y="0" width="1200" height="46" fill="#474747"/>
<rect x="0" y="46" width="1200" height="1" fill="#1a1a1a"/>
<g transform="translate(14,13) scale(0.8333)"><path d="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z" fill="#e8e8e8"/></g>
<rect x="44" y="14" width="1" height="20" fill="#666"/>
<g transform="translate(56,13) scale(0.7500)"><path d="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z" fill="#cfcfcf"/></g>
<rect x="82" y="13" width="46" height="21" rx="3" fill="#636363" stroke="#3a3a3a"/>
<text x="96" y="28" text-anchor="middle" font-size="13" fill="#fff">1</text>
<text x="110" y="28" font-size="13" fill="#999">/</text>
<text x="118" y="28" font-size="13" fill="#999">—</text>
<g transform="translate(132,13) scale(0.7500)"><path d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z" fill="#cfcfcf"/></g>
<g transform="translate(514.0,13) scale(0.7500)"><path d="M19,13H5V11H19V13Z" fill="#e8e8e8"/></g>
<rect x="540.0" y="13" width="74" height="22" rx="3" fill="#636363" stroke="#3a3a3a"/>
<text x="550.0" y="28" font-size="12.5" fill="#fff">100%</text>
<path d="M598.0 21 l5 5 l5 -5" fill="none" stroke="#fff" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
<g transform="translate(622.0,13) scale(0.7500)"><path d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" fill="#e8e8e8"/></g>
<rect x="980" y="13" width="86" height="22" rx="3" fill="#636363" stroke="#3a3a3a"/>
<text x="990" y="28" font-size="12.5" fill="#fff">English</text>
<path d="M1052 21 l5 5 l5 -5" fill="none" stroke="#fff" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
<rect x="1080" y="14" width="1" height="20" fill="#666"/>
<g transform="translate(1096,13) scale(0.8333)"><path d="M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z" fill="#e8e8e8"/></g>
<g transform="translate(1136,13) scale(0.8333)"><path d="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z" fill="#e8e8e8"/></g>
<rect x="240.0" y="110" width="720" height="540" rx="12" fill="none" stroke="#6b6e70" stroke-width="2" stroke-dasharray="7 6"/>
<g transform="translate(568.0,160) scale(2.6667)"><path d="M11 20H6.5Q4.22 20 2.61 18.43 1 16.85 1 14.58 1 12.63 2.17 11.1 3.35 9.57 5.25 9.15 5.88 6.85 7.75 5.43 9.63 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 17.38 21.69 18.69 20.38 20 18.5 20H13V12.85L14.6 14.4L16 13L12 9L8 13L9.4 14.4L11 12.85Z" fill="#90caf9"/></g>
<text x="600.0" y="280" text-anchor="middle" font-size="30" fill="#e9e9e9">Open a Document</text>
<text x="600.0" y="315" text-anchor="middle" font-size="16" fill="#b9bcbe">Drop a file here, or <tspan fill="#90caf9">browse</tspan></text>
<rect x="321.0" y="360" width="51" height="26" rx="13" fill="#e53935"/>
<text x="346.5" y="377" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">PDF</text>
<rect x="381.0" y="360" width="51" height="26" rx="13" fill="#43a047"/>
<text x="406.5" y="377" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">ODT</text>
<rect x="441.0" y="360" width="51" height="26" rx="13" fill="#43a047"/>
<text x="466.5" y="377" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">ODS</text>
<rect x="501.0" y="360" width="51" height="26" rx="13" fill="#43a047"/>
<text x="526.5" y="377" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">ODP</text>
<rect x="561.0" y="360" width="51" height="26" rx="13" fill="#1e88e5"/>
<text x="586.5" y="377" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">RTF</text>
<rect x="621.0" y="360" width="51" height="26" rx="13" fill="#2b6cb0"/>
<text x="646.5" y="377" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">DOC</text>
<rect x="681.0" y="360" width="60" height="26" rx="13" fill="#5e35b1"/>
<text x="711.0" y="377" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">DOCX</text>
<rect x="750.0" y="360" width="60" height="26" rx="13" fill="#d24726"/>
<text x="780.0" y="377" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">PPTX</text>
<rect x="819.0" y="360" width="60" height="26" rx="13" fill="#217346"/>
<text x="849.0" y="377" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">XLSX</text>
<rect x="291.0" y="400" width="42" height="26" rx="13" fill="#d81b60"/>
<text x="312.0" y="417" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">MD</text>
<rect x="342.0" y="400" width="51" height="26" rx="13" fill="#6d4c41"/>
<text x="367.5" y="417" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">TXT</text>
<rect x="402.0" y="400" width="51" height="26" rx="13" fill="#7cb342"/>
<text x="427.5" y="417" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">CSV</text>
<rect x="462.0" y="400" width="60" height="26" rx="13" fill="#546e7a"/>
<text x="492.0" y="417" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">JSON</text>
<rect x="531.0" y="400" width="51" height="26" rx="13" fill="#546e7a"/>
<text x="556.5" y="417" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">XML</text>
<rect x="591.0" y="400" width="60" height="26" rx="13" fill="#546e7a"/>
<text x="621.0" y="417" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">YAML</text>
<rect x="660.0" y="400" width="51" height="26" rx="13" fill="#00acc1"/>
<text x="685.5" y="417" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">JPG</text>
<rect x="720.0" y="400" width="51" height="26" rx="13" fill="#00acc1"/>
<text x="745.5" y="417" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">PNG</text>
<rect x="780.0" y="400" width="60" height="26" rx="13" fill="#00acc1"/>
<text x="810.0" y="417" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">TIFF</text>
<rect x="849.0" y="400" width="60" height="26" rx="13" fill="#00acc1"/>
<text x="879.0" y="417" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">EXIF</text>
<rect x="381.0" y="440" width="51" height="26" rx="13" fill="#f4511e"/>
<text x="406.5" y="457" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">CBZ</text>
<rect x="441.0" y="440" width="51" height="26" rx="13" fill="#f4511e"/>
<text x="466.5" y="457" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">CBR</text>
<rect x="501.0" y="440" width="51" height="26" rx="13" fill="#f4511e"/>
<text x="526.5" y="457" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">CBT</text>
<rect x="561.0" y="440" width="60" height="26" rx="13" fill="#00897b"/>
<text x="591.0" y="457" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">EPUB</text>
<rect x="630.0" y="440" width="60" height="26" rx="13" fill="#00897b"/>
<text x="660.0" y="457" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">MOBI</text>
<rect x="699.0" y="440" width="60" height="26" rx="13" fill="#00897b"/>
<text x="729.0" y="457" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">AZW3</text>
<rect x="768.0" y="440" width="51" height="26" rx="13" fill="#00897b"/>
<text x="793.5" y="457" text-anchor="middle" font-size="12.5" font-weight="700" fill="#fff" font-family="-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif">FB2</text>
<text x="600.0" y="624" text-anchor="middle" font-size="12.5" fill="#7f8284">Powered by PDF.js · JSDoc · RTF.js · mammoth.js · PptxViewJS · SheetJS · marked · JSZip · libarchive.js · foliate-js · UTIF.js · exifr</text>
</svg>

Before

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB