File tree 2 files changed +41
-1
lines changed
2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change 1
1
import { FiSearch } from 'react-icons/fi' ;
2
+ import ProjectsFilter from './ProjectsFilter' ;
2
3
import ProjectSingle from './ProjectSingle' ;
3
4
4
5
const ProjectsGrid = ( ) => {
@@ -80,7 +81,8 @@ const ProjectsGrid = () => {
80
81
/>
81
82
</ div >
82
83
{ /* <ProjectsFilter @change="selectedProject = $event" /> */ }
83
- < p > Filter projects</ p >
84
+ < ProjectsFilter />
85
+ { /* <p>Filter projects</p> */ }
84
86
</ div >
85
87
</ div >
86
88
{ /* Filter and search projects end */ }
You can’t perform that action at this time.
0 commit comments