Tweak wording on ebook placeholder page

This commit is contained in:
Alex Cabal 2024-12-13 14:09:46 -06:00
parent 31cadd0617
commit e8f958558a
2 changed files with 22 additions and 3 deletions

View file

@ -90,3 +90,7 @@ article.ebook.ebook-placeholder > header{
article.ebook.ebook-placeholder .placeholder-details{
padding-top: 2rem;
}
article.ebook.ebook-placeholder .placeholder-details ul{
list-style: disc;
}

View file

@ -74,11 +74,26 @@ catch(Exceptions\EbookNotFoundException){
<section class="placeholder-details">
<? if($ebook->EbookPlaceholder->IsPublicDomain){ ?>
<p>We dont have this ebook in our catalog yet.</p>
<p>You can <a href="/donate#sponsor-an-ebook">sponsor the production of this ebook</a> and well get working on it immediately!</p>
<? if($ebook->EbookPlaceholder->Status == \Enums\EbookPlaceholderStatus::InProgress){ ?>
<p>We dont have this ebook in our catalog yet, but someone is working on it now! We hope to have it available for you to read very soon.</p>
<? }else{ ?>
<p>We dont have this ebook in our catalog yet, but its <? if($ebook->EbookPlaceholder->IsWanted){ ?>on our <a href="/contribute/wanted-ebooks">Wanted Ebooks list</a><? }else{ ?>in the U.S. public domain<? } ?>!</p>
<ul>
<li>
<p><a href="/donate#sponsor-an-ebook">Sponsor this ebook</a> and well get working on it immediately, so that you and everyone can read it for free forever. You can also choose to have your name inscribed in the ebooks colophon.</p>
</li>
<li>
<? if($ebook->EbookPlaceholder->Difficulty == \Enums\EbookPlaceholderDifficulty::Beginner){ ?>
<p><a href="/contribute#technical-contributors">Produce this ebook yourself</a> and your work will allow others to read it for free forever. <em>This book is a good choice to start with if youve never created an ebook for us before</em>—well help you through the process!</p>
<? }else{ ?>
<p>If youve created an ebook for us before, you can <a href="/contribute#technical-contributors">produce this ebook yourself</a> so that others can read it for free. Your name will inscribed in the colophon as the ebooks producer.</p>
<? } ?>
</li>
</ul>
<? } ?>
<? }elseif($ebook->EbookPlaceholder->YearPublished !== null){ ?>
<p>This book was published in <?= $ebook->EbookPlaceholder->YearPublished ?>, and will therefore enter the U.S. public domain <?= $ebook->EbookPlaceholder->TimeTillIsPublicDomain != '' ? 'in ' . $ebook->EbookPlaceholder->TimeTillIsPublicDomain : '' ?> on <b>January 1, <?= $ebook->EbookPlaceholder->YearPublished + 96 ?>.</b></p>
<p>We cant work on it any earlier than that.</p>
<p><a href="/about/standard-ebooks-and-the-public-domain">Read more about Standard Ebooks and the U.S. Public Domain.</a></p>
<? }else{ ?>
<p>This book is not yet in the U.S. public domain. We cant offer it until it is.</p>
<? } ?>