Skip to content

Commit b3610eb

Browse files
committed
Create projects filter
1 parent 715b567 commit b3610eb

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

src/components/ProjectsFilter.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
const selectOptions = [
2+
'Web Application',
3+
'Mobile Application',
4+
'UI/UX Design',
5+
'Branding',
6+
];
7+
8+
const ProjectsFilter = () => {
9+
return (
10+
<select
11+
className="
12+
px-4
13+
sm:px-6
14+
py-2
15+
border
16+
dark:border-secondary-dark
17+
rounded-lg
18+
text-sm
19+
sm:text-md
20+
dark:font-medium
21+
bg-secondary-light
22+
dark:bg-ternary-dark
23+
text-primary-dark
24+
dark:text-ternary-light
25+
"
26+
>
27+
<option value class="text-sm sm:text-md">
28+
All Projects
29+
</option>
30+
31+
{selectOptions.map((option) => (
32+
<option className="text-normal sm:text-md">{option}</option>
33+
))}
34+
</select>
35+
);
36+
};
37+
38+
export default ProjectsFilter;

src/components/ProjectsGrid.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { FiSearch } from 'react-icons/fi';
2+
import ProjectsFilter from './ProjectsFilter';
23
import ProjectSingle from './ProjectSingle';
34

45
const ProjectsGrid = () => {
@@ -80,7 +81,8 @@ const ProjectsGrid = () => {
8081
/>
8182
</div>
8283
{/* <ProjectsFilter @change="selectedProject = $event" /> */}
83-
<p>Filter projects</p>
84+
<ProjectsFilter />
85+
{/* <p>Filter projects</p> */}
8486
</div>
8587
</div>
8688
{/* Filter and search projects end */}

0 commit comments

Comments
 (0)