Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add showcase frontend page #118

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
feat: add category filter chips
  • Loading branch information
devdeadviz committed Jul 5, 2022
commit 362f107baae4f86ff25f8e1b4c508c71d30436d0
21 changes: 21 additions & 0 deletions website/src/components/filterchip/FilterChip.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.filter-chip-wrapper {
width: max-content;
padding: 5px 1rem;
margin: 5px;
border: 1px solid white;
display: flex;
align-items: center;
}

.filter-chip-text {
padding: 0;
margin: 0;
font-size: 12px;
}

.filter-chip-icon {
margin-left: 10px;
width: 10px;
height: 10px;
border-radius: 50%;
}
16 changes: 16 additions & 0 deletions website/src/components/filterchip/FilterChip.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import React from "react";
import "./FilterChip.css";

function FilterChip({ filter }) {
return (
<div className="filter-chip-wrapper">
<p className="filter-chip-text">{filter.name}</p>
<span
style={{ backgroundColor: filter.color }}
className="filter-chip-icon"
></span>
</div>
);
}

export default FilterChip;