Skip to content

Add grayscale for archived programs and move them to the end#7770

Open
Rajesh-Nagarajan-11 wants to merge 2 commits into
layer5io:masterfrom
Rajesh-Nagarajan-11:fix/archived-programs-last
Open

Add grayscale for archived programs and move them to the end#7770
Rajesh-Nagarajan-11 wants to merge 2 commits into
layer5io:masterfrom
Rajesh-Nagarajan-11:fix/archived-programs-last

Conversation

@Rajesh-Nagarajan-11
Copy link
Copy Markdown
Member

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

  • Yes, I signed my commits.

… 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};
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added CSS to display archived programs in grayscale.

query allPrograms {
allMdx(
sort: [
{ frontmatter: { archived: ASC } }
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added archived: true in the frontmatter to mark this item as archived.

published: true
program: "Google Season of Docs"
programSlug: "gsod"
archived: true
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added archived: true in the frontmatter to mark this item as archived.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

🚀 Preview deployment: https://layer5.io/pr-preview/pr-7770/

Note: Preview may take a moment (GitHub Pages deployment in progress). Please wait and refresh. Track deployment here

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant