Skip to content

feat: replace ColoringBookSection with LiteratureCarousel (Issue #114) - #527

Open
Prat260104 wants to merge 1 commit into
containers:mainfrom
Prat260104:feature/issue-114-literature-carousel
Open

feat: replace ColoringBookSection with LiteratureCarousel (Issue #114)#527
Prat260104 wants to merge 1 commit into
containers:mainfrom
Prat260104:feature/issue-114-literature-carousel

Conversation

@Prat260104

@Prat260104 Prat260104 commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes #114

Added Podman in Action and Podman for DevOps to the books/resources section.

Since we now have multiple books, I replaced the existing ColoringBookSection with a LiteratureCarousel so users can go through all three books.

Changes

  • Added static/data/literature.ts for the three books:

    • Container Commandos coloring book
    • Podman in Action
    • Podman for DevOps
  • Added a new LiteratureCarousel component while keeping the existing look and layout.

  • Added left/right navigation and dots for switching between books.

  • The first book shown is picked randomly on page load, as mentioned in the issue.

  • Removed the old ColoringBookSection and moved its content to the new carousel.

  • Updated the home and features pages to use LiteratureCarousel.

  • Added links and cover images for the two new books. Since Podman for DevOps is a paid book, its button says Learn More instead of Download.

For Book data

Podman in Action — Official free Red Hat Developer e-book. The description and cover image are sourced from developers.redhat.com.
Podman for DevOps — This is a paid Packt Publishing book rather than a free Red Hat e-book

@Prat260104
Prat260104 force-pushed the feature/issue-114-literature-carousel branch from 2c57958 to 2b7fa54 Compare July 25, 2026 11:03
@Prat260104

Copy link
Copy Markdown
Contributor Author

Hi @ashley-cui @TomSweeneyRedHat ,
The carousel looks like this ,
would love your feedback on this ,

image image image

Tried to keep it consistent with the existing website layout ,
Would be happy if you want me to approach in any other way

Comment thread src/components/content/LiteratureCarousel/index.tsx Outdated
Comment thread src/components/content/LiteratureCarousel/index.tsx Outdated
Comment thread static/data/literature.ts Outdated
@Prat260104
Prat260104 force-pushed the feature/issue-114-literature-carousel branch from e46788a to 3cf9792 Compare July 30, 2026 12:16
@TomSweeneyRedHat

Copy link
Copy Markdown
Member

@Prat260104 looks like a rebase may be needed, or some other conflict resolution.

@Prat260104

Copy link
Copy Markdown
Contributor Author

@Prat260104 looks like a rebase may be needed, or some other conflict resolution.

Yes sir Just one of PR got merged so i need to rebase and resolve the conflicts .
I'll update the PR shortly

@Prat260104
Prat260104 force-pushed the feature/issue-114-literature-carousel branch 2 times, most recently from 1d93805 to ecb209e Compare July 30, 2026 13:29
@Prat260104

Copy link
Copy Markdown
Contributor Author

@Prat260104 looks like a rebase may be needed, or some other conflict resolution.

Hi @TomSweeneyRedHat sir,

I have resolved the merge conflicts and also squashed the commits.

Thank you for reviewing the PR.

@Prat260104

Copy link
Copy Markdown
Contributor Author

@Prat260104 looks like a rebase may be needed, or some other conflict resolution.

Hi @TomSweeneyRedHat sir,
just following up on this PR. I’ve addressed all the review comments and pushed the requested changes.
I have also squashed the commits and resolved any conflicts.
Whenever you have some time, could you please take another look?
Thanks!

Comment thread static/data/literature.ts Outdated
The coloring book section only displayed the Container Commandos coloring
book, which is too limited. The project now has multiple literature
resources (like the "Podman in Action" and "Podman for DevOps" books)
that should be highlighted for users to learn more about Podman.

Introduce the LiteratureCarousel component to showcase all three books
on both the home and features pages. The carousel allows users to easily navigate
between the different publications and view information about them.

- Created LiteratureCarousel component using existing carousel patterns
- Configured books: Container Commandos, Podman in Action, and Podman for DevOps
- Replaced ColoringBookSection with LiteratureCarousel on home and features pages
- Added randomized initial slide selection to ensure equal visibility for all books
- Cleaned up obsolete ColoringBookSection component and its data

Fixes: containers#114
Signed-off-by: Prateek Rai <prateekrai903@gmail.com>
@Prat260104
Prat260104 force-pushed the feature/issue-114-literature-carousel branch from ecb209e to 312e1f0 Compare August 3, 2026 20:42
@Prat260104

Copy link
Copy Markdown
Contributor Author

Now all books are consistent in sizing

image image image

@Prat260104

Copy link
Copy Markdown
Contributor Author

Hi @ashley-cui mam,
Updated the PR with changes as per your review ( Moved extraImages object to a single line in
literature.ts) to prevent overflow as well as ,

The main issue was that the "Container Commandos" book has extra images (coloring pages) displayed below the main content, while the other two books don't. This caused inconsistent carousel heights when navigating between items.

made some changes to fix this also and ensure consistency

Ready to make any further changes based on your feedback

Thanks !

@TomSweeneyRedHat

Copy link
Copy Markdown
Member

The coloring book seems to be just a bit off from the other two still, but it's very slight and I don't think it's a problem. I'll give this an LGTM, and will let @ashley-cui decide if it's mergeable.

@Prat260104

Copy link
Copy Markdown
Contributor Author

The coloring book seems to be just a bit off from the other two still, but it's very slight and I don't think it's a problem. I'll give this an LGTM, and will let @ashley-cui decide if it's mergeable.

Thanks for the review! I'm happy to make any changes based on the feedback. I tried to keep the design as consistent as possible with the other books, but if there are any adjustments you'd like, I'm ready to update them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add podman in action // podman for devops // to literature component

3 participants