Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ dist-ssr
# Local docs / design specs
docs/

# Local tooling
.claude/
.superpowers/
*.code-workspace

# Editor directories and files
.vscode/*
!.vscode/extensions.json
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

<p align="center">
<img src="./src/assets/primusread_banner.svg" alt="PrimusRead — First letters. Full intelligence." width="100%"/>
</p>

# PrimusRead

> *First letters. Full intelligence.*
Expand All @@ -13,7 +17,7 @@ Open-source **React**, **Vite**, **Tailwind CSS** & **TypeScript** tool that acc

| Light mode | Dark mode |
|:---:|:---:|
| ![Light mode](./src/assets/bionic_reader_light.png) | ![Dark mode](./src/assets/bionic_reader_dark.png) |
| ![Light mode](./src/assets/primusread_light.png) | ![Dark mode](./src/assets/primusread_dark.png) |
## What is Next? 🌟

| Name | Short Description | Status |
Expand All @@ -37,7 +41,7 @@ npm install && npm run dev
```

## PDF functionality
![Save text as PDF file](./src/assets/download_functionality.PNG)
![Save text as PDF file](./src/assets/primusread_pdf_export.PNG)

PDF export uses [`html-to-image`](https://github.com/bubkoo/html-to-image) + [`jsPDF`](https://github.com/parallax/jsPDF). The Read Section is captured as a PNG at **3× pixel ratio** for sharp text, then placed on the page at its true physical size using `src/util/pdfLayout.ts` (`calcPdfImageLayout`) which converts CSS pixels to millimetres (1 px = 25.4 / 96 mm) and centres the image horizontally.

Expand Down
15 changes: 15 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@
"name": "primusread",
"private": true,
"version": "0.17.0",
"keywords": [
"primusread",
"speed-reading",
"fixation-reading",
"epub",
"epub-reader",
"pdf",
"reading",
"react",
"vite",
"tailwind",
"typescript",
"dark-mode",
"open-source"
],
"engines": {
"node": "22.x"
},
Expand Down
Binary file removed src/assets/bionic_reader_dark.png
Binary file not shown.
Binary file removed src/assets/bionic_reader_light.png
Binary file not shown.
Binary file removed src/assets/bionic_reader_v2.PNG
Binary file not shown.
95 changes: 95 additions & 0 deletions src/assets/primusread_banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/primusread_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/primusread_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import './index.css';

const router = createBrowserRouter(
[{ path: '/', element: <App /> }],
{ basename: '/vite-react-tailwind-bionic-reading/' }
{ basename: '/primusread/' }
);

const container = document.getElementById('root');
Expand Down