Add grayscale for archived programs and move them to the end#7770
Open
Rajesh-Nagarajan-11 wants to merge 2 commits into
Open
Add grayscale for archived programs and move them to the end#7770Rajesh-Nagarajan-11 wants to merge 2 commits into
Rajesh-Nagarajan-11 wants to merge 2 commits into
Conversation
… display Signed-off-by: Rajesh-Nagarajan-11 <rajeshnagarajan36@gmail.com>
Comment on lines
+62
to
+72
| .program-archived .icon { | ||
| filter: grayscale(100%); | ||
| opacity: 0.7; | ||
| } | ||
| .program-archived-tag { | ||
| font-size: 0.7em; | ||
| font-weight: 600; | ||
| margin-left: 0.4rem; | ||
| color: ${(props) => props.theme.tertiaryColor}; | ||
| } |
Member
Author
There was a problem hiding this comment.
Added CSS to display archived programs in grayscale.
| query allPrograms { | ||
| allMdx( | ||
| sort: [ | ||
| { frontmatter: { archived: ASC } } |
Member
Author
There was a problem hiding this comment.
Sorting by frontmatter.archived ascending puts non-archived items first and archived items last, so the grid naturally ends with archived programs.
| published: true | ||
| program: "Google Season of Docs" | ||
| programSlug: "gsod" | ||
| archived: true |
Member
Author
There was a problem hiding this comment.
Added archived: true in the frontmatter to mark this item as archived.
| published: true | ||
| program: "Google Season of Docs" | ||
| programSlug: "gsod" | ||
| archived: true |
Member
Author
There was a problem hiding this comment.
Added archived: true in the frontmatter to mark this item as archived.
Contributor
|
🚀 Preview deployment: https://layer5.io/pr-preview/pr-7770/
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Archived programs now render last in the careers programs grid and display in grayscale with an “(Archived)” label.
Kindly ignore the lint changes — they were automatically modified during the pre-commit process.
Screencast.from.2026-06-02.13-23-57.webm
Signed commits