Expand the About page.

This commit is contained in:
barnold 2022-09-28 20:51:49 +01:00
parent 8486f59985
commit c6687ad3f5
4 changed files with 55 additions and 3 deletions

View File

@ -1,3 +1,7 @@
div.verbiage {
max-width: 40em;
}
table {
border: 1px solid grey;
background: #f0fff0;

View File

@ -2,6 +2,9 @@
% title 'Authors';
<h1><%= title %></h1>
<a href="/about#search-help">Search help</a>
<p/>
<%# On a new search, reset the page number to 1. %>
%= form_for authors => { page_number => 1 } => begin
%= label_for name_like => 'Name like'

View File

@ -2,8 +2,7 @@
% title 'Books';
<h1><%= title %></h1>
Some books have no associated author. To search for these, use
author like '[no author]'.
<a href="/about#search-help">Search help</a>
<p/>
<%# On a new search, reset the page number to 1. %>

View File

@ -2,4 +2,50 @@
% title 'About';
<h1>About</h1>
All about MyApp.
<div class="verbiage">
This is a small app for looking through
<a href="https://www.gutenberg.org/">Project Gutenberg</a>'s
book catalog, as provided via
<a href="https://tildegit.org/barnold/dbix-tutorial">this little project</a>.
<p>
In its present form it's a little bit of an oversimplification. As
presented here, each book has exactly one "author", or more
specifically one row in an "author" table. In practise, an "author" is
really a list of zero or more <em>contributors</em> - authors,
editors, illustrators etc. So really the relationship between "book"
and "author" is many-to-many between "book" and "contributor". For
simplicity, this app ignores the distinction and pretends that a book
has exactly one author.
</p>
<h2 id="search-help">Searching</h2>
<p>
For either author or book, the search returns records that contain
your search string, regardless of case. So a search for books with a
title like "anna" will return "Anna Karenina" and "Tyburn Tree: Its
History and Annals", among others.
</p>
<p>
There is a variety of not-really authors in the catalog. Some books
have no author entry. For simplicity, these are represented in this
app as having the author named "[no author]" to make them easily
searchable.
</p>
<p>
I.e. to find books with no author, put the string "[no author]" into
the author field of the search form ("Author like" on the books page
or "Name like" on the authors page). Other non-authors are
"Anonymous" and "Unknown".
</p>
<p>
Comments and questions welcome
at <a href="mailto:barnold@tilde.club?Subject=Awesome%20project!">barnold@tilde.club</a>.
</p>
</div>