Skip to content

Commit

Permalink
Add archived-project class for styling archived projects
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Mwiti <[email protected]>
  • Loading branch information
Kneatrum committed Sep 30, 2024
1 parent ca9fc9c commit 7b1e731
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/sections/Community/Handbook/Handbook.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@ export const HandbookWrapper = styled.div`
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.archived-project {
opacity: 0.3;
background-color: #808080;
// pointer-events: none;
}
.linkscol{
text-align: center;
width:8%;
Expand Down
2 changes: 1 addition & 1 deletion src/sections/Community/Handbook/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const Repository = () => {
const siteIconClasses = smpClass ? "site-icon inline smp-action" : "site-icon inline";
return (
<tbody key={project}>
<tr>
<tr className={accessRequired === "*archived" ? "archived-project" : ""}>
<td>
<img className={siteIconClasses} src={image} alt="project" />&nbsp;{project} </td>
<td>{language}</td>
Expand Down

0 comments on commit 7b1e731

Please sign in to comment.