From 91c98254f477726372c8bcb1068afbe6aec90120 Mon Sep 17 00:00:00 2001 From: elioat <{ID}+{username}@users.noreply.github.com> Date: Tue, 30 Sep 2025 09:50:34 -0400 Subject: * --- html/rtb/public/about.html | 22 ++++++------ html/rtb/public/app.js | 85 +++++++++++++++++++++++++++++----------------- html/rtb/public/index.html | 5 +-- html/rtb/public/styles.css | 57 ++++++++++++++++++++++++++++--- 4 files changed, 122 insertions(+), 47 deletions(-) (limited to 'html') diff --git a/html/rtb/public/about.html b/html/rtb/public/about.html index 2e171f8..102525e 100644 --- a/html/rtb/public/about.html +++ b/html/rtb/public/about.html @@ -3,25 +3,27 @@ - About Read the Book + About Read the Book - Digital Reading Platform + -
-
-
+
+
+

About Read the Book

+

I felt myself falling into bad habits.

This project is meant to replace doom scrolling and encourage reading books by presenting them in really tiny digestible parts.

-

All the books are from the public domain.

-
+

All the books are from the public domain.

+ - -
-
+ + + \ No newline at end of file diff --git a/html/rtb/public/styles.css b/html/rtb/public/styles.css index 1f02622..4a47690 100644 --- a/html/rtb/public/styles.css +++ b/html/rtb/public/styles.css @@ -50,6 +50,19 @@ body { transition: background-color 0.3s ease, color 0.3s ease; } +/* Screen reader only content */ +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} + footer { text-align: center; margin-top: 2rem; @@ -86,18 +99,36 @@ h2 { } .book-item { - padding: 1.5rem; margin-bottom: 1rem; +} + +.book-button { + width: 100%; + padding: 1.5rem; background: var(--bg-secondary); + border: none; border-radius: 8px; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; + text-align: left; + font-family: inherit; +} + +.book-button:hover { + transform: translateY(-1px); + box-shadow: 0 2px 4px rgba(0,0,0,0.05); + background: rgba(255, 255, 255, 0.1); +} + +.dark-mode .book-button:hover { + box-shadow: 0 2px 4px rgba(0,0,0,0.15); + background: rgba(255, 255, 255, 0.05); } -.book-item:hover { - transform: translateY(-2px); - box-shadow: var(--shadow-hover); +.book-button:focus { + outline: 2px solid var(--button-primary); + outline-offset: 2px; } .book-title { @@ -274,4 +305,22 @@ button.secondary:hover:not(:disabled) { .back-link:hover { background: var(--button-primary-hover); +} + +/* Link styles */ +a { + color: var(--button-primary); + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +a:visited { + color: var(--text-secondary); +} + +.dark-mode a:visited { + color: var(--text-muted); } \ No newline at end of file -- cgit