Skip to content

Commit 80fa338

Browse files
committed
Create projects filter component
1 parent bbbbab6 commit 80fa338

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

src/components/ProjectsFilter.vue

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<template>
2+
<div>
3+
<select
4+
@change="$emit('change', $event.target.value)"
5+
:name="select"
6+
:id="select"
7+
class="
8+
px-4
9+
sm:px-6
10+
py-2
11+
border-1 border-gray-200
12+
dark:border-secondary-dark
13+
rounded-lg
14+
text-sm
15+
sm:text-md
16+
dark:font-medium
17+
bg-secondary-light
18+
dark:bg-ternary-dark
19+
text-primary-dark
20+
dark:text-ternary-light
21+
"
22+
>
23+
<option value class="text-sm sm:text-md">All Projects</option>
24+
<option
25+
v-for="option in selectOptions"
26+
:key="option"
27+
:value="option"
28+
class="text-normal sm:text-md"
29+
>
30+
{{ option }}
31+
</option>
32+
</select>
33+
</div>
34+
</template>
35+
36+
<script>
37+
export default {
38+
props: {
39+
select: {
40+
type: String,
41+
default: 'projects',
42+
},
43+
selectOptions: {
44+
type: Array,
45+
default: () => [
46+
'Web Application',
47+
'Mobile Application',
48+
'UI/UX Design',
49+
'Branding',
50+
],
51+
},
52+
},
53+
};
54+
</script>
55+
56+
<style lang="scss" scoped></style>

0 commit comments

Comments
 (0)