From c43c4fa2dd35a5c9011d0c1d9913df41c653c819 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Sat, 28 Dec 2024 14:57:18 -0600 Subject: [PATCH] Tweak wanted list appearance --- lib/Ebook.php | 2 +- templates/CollectionDescriptor.php | 5 ++- templates/WantedEbook.php | 34 ++++++++++++++++ www/contribute/wanted-ebooks.php | 64 +++++++++++------------------- www/css/core.css | 29 ++++++++++++++ 5 files changed, 91 insertions(+), 43 deletions(-) create mode 100644 templates/WantedEbook.php diff --git a/lib/Ebook.php b/lib/Ebook.php index e03d8ee0..e779e335 100644 --- a/lib/Ebook.php +++ b/lib/Ebook.php @@ -2433,7 +2433,7 @@ final class Ebook{ where EbookPlaceholders.IsWanted = true and EbookPlaceholders.IsInProgress = false and EbookPlaceholders.Difficulty = ? - order by Ebooks.Updated desc + order by Ebooks.Created asc ', [$difficulty], Ebook::class); } diff --git a/templates/CollectionDescriptor.php b/templates/CollectionDescriptor.php index 5ba87132..3c0bc537 100644 --- a/templates/CollectionDescriptor.php +++ b/templates/CollectionDescriptor.php @@ -7,4 +7,7 @@ $sequenceNumber = $collectionMembership?->SequenceNumber; ?> in thePart of the Name)) ?> Type !== null){ ?> - Name), mb_strtolower($collection->Type->value), -strlen(mb_strtolower($collection->Type->value))) !== 0){ ?>Type->value ?>collection + Name), mb_strtolower($collection->Type->value), -strlen(mb_strtolower($collection->Type->value))) !== 0){ ?>Type->value ?> + + collection + diff --git a/templates/WantedEbook.php b/templates/WantedEbook.php new file mode 100644 index 00000000..da06a4f2 --- /dev/null +++ b/templates/WantedEbook.php @@ -0,0 +1,34 @@ +EbookPlaceholder)){ + return; +} + +$showPlaceholderMetadata = $showPlaceholderMetadata ?? false; +?> +
  • +

    + EbookPlaceholder->TranscriptionUrl)){ ?>Title) ?>EbookPlaceholder->TranscriptionUrl)){ ?> + + + by AuthorsString) ?>. ContributorsHtml ?> + + CollectionMemberships as $index => $collectionMembership){ ?> + $collectionMembership]) ?> $collectionMembership])) ?>CollectionMemberships) - 1){ ?>, CollectionMemberships) - 1){ ?>. + + + EbookPlaceholder->Notes)){ ?> + EbookPlaceholder->Notes, true) ?> + + + — View placeholder. + + + EbookPlaceholder->IsPatron){ ?> + Patron selection! + +

    +
  • diff --git a/www/contribute/wanted-ebooks.php b/www/contribute/wanted-ebooks.php index a8b2854f..5a28a2cc 100644 --- a/www/contribute/wanted-ebooks.php +++ b/www/contribute/wanted-ebooks.php @@ -1,38 +1,7 @@ - - - 'Wanted Ebooks', 'highlight' => 'contribute', 'description' => 'A list of ebooks the Standard Ebooks editor would like to see produced, including suggestions for first-time producers.']) ?>
    @@ -47,14 +16,29 @@ function WantedEbooks(Enums\EbookPlaceholderDifficulty $difficulty, ?bool $showP

    For your first production

    If nothing on the list below interests you, you can pitch us something else you’d like to work on.

    First productions should be on the shorter side (less than 100,000 words maximum) and without too many complex formatting issues like illustrations, significant endnotes, letters, poems, etc. Most short plain fiction novels fall in this category.

    - Benefits->CanEditEbookPlaceholders) ?> + +

    Moderate-difficulty productions

    - Benefits->CanEditEbookPlaceholders) ?> + +

    Advanced productions

    - Benefits->CanEditEbookPlaceholders) ?> + +

    Jules Verne

    Verne has a complex publication and translation history. Please review these notes before starting any Verne books.

    -
    diff --git a/www/css/core.css b/www/css/core.css index 37ce25a2..93b3a352 100644 --- a/www/css/core.css +++ b/www/css/core.css @@ -3359,6 +3359,35 @@ nav.breadcrumbs + h1{ font-weight: normal; } +.patron-selection{ + background-color: #e8c50b; + border: 1px solid #c8b341; + border-radius: 5px; + box-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5) inset; +} + +a.patron-selection:any-link{ + color: #fff; + font-style: italic; + font-weight: bold; + padding: 0 .5rem; + text-decoration: none; + text-shadow: 1px 1px 0 rgba(0, 0, 0, .5); + transition: background 200ms ease; + margin-left: .5rem; + white-space: nowrap; + display: inline-block; +} + +a.patron-selection:any-link:hover{ + background: #eed967; + transition: none; +} + +.wanted-list{ + text-align: left; +} + @media (hover: none) and (pointer: coarse){ /* target ipads and smartphones without a mouse */ /* For iPad, unset the height so it matches the other elements */ select[multiple]{