kinda/src/ui/books.rs

40 lines
1.6 KiB
Rust

pub(crate) struct Book {
pub title: &'static str,
pub author: &'static str,
pub pages: &'static [&'static str],
}
const BOOK_ONE_PAGES: [&str; 3] = [
"The first screen of a reader should make the page feel stable.\n\nButtons can move slowly, but the page should not jump around.\n\nDown turns the page. Up goes back.",
"A first draft can use prepared page text.\n\nLater the book service can replace this with real layout output.\n\nThe reader screen should not care where the page came from.",
"This is the last mock page.\n\nBack returns to the library. Select can become the reader menu later.",
];
const BOOK_TWO_PAGES: [&str; 2] = [
"WiFi setup is part of the device, not a separate utility.\n\nThe network list and password editor are real UI screens.",
"Password entry uses a single active character.\n\nUp and down change it, select appends it, and back deletes it.",
];
const BOOK_THREE_PAGES: [&str; 2] = [
"E-paper refresh is a UI concern.\n\nFast updates are useful while moving around. Full updates are useful when changing screens.",
"Fonts can wait until the flow is right.\n\nOnce the screens feel correct, custom bitmap fonts can replace the built-in ones.",
];
pub(crate) const BOOKS: [Book; 3] = [
Book {
title: "Reader Notes",
author: "Kinda",
pages: &BOOK_ONE_PAGES,
},
Book {
title: "Onboarding Plan",
author: "Kinda",
pages: &BOOK_TWO_PAGES,
},
Book {
title: "Display Notes",
author: "Kinda",
pages: &BOOK_THREE_PAGES,
},
];