Skip to content

Commit dca4912

Browse files
committed
Filter
1 parent d992b74 commit dca4912

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

components/Products/ProductFilters.vue

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
<template>
22
<div class="w-full md:w-64 flex-shrink-0">
33
<div class="bg-white px-8 pb-8 sm:px-6 sm:pb-6 rounded-lg shadow-sm">
4-
<!-- PRODUCT TYPE -->
54
<div class="mb-8">
65
<h3 class="font-semibold mb-4">PRODUKT TYPE</h3>
76
<div class="space-y-2">
8-
<!-- Example checkboxes, replace with dynamic content later -->
97
<div class="flex items-center">
10-
<input type="checkbox" id="type1" class="mr-2" />
11-
<label for="type1" class="text-sm">Type 1</label>
8+
<input type="checkbox" id="clothing" class="form-checkbox h-4 w-4 text-blue-600 rounded" disabled />
9+
<label for="clothing" class="ml-2 text-sm">Clothing</label>
1210
</div>
1311
<div class="flex items-center">
14-
<input type="checkbox" id="type2" class="mr-2" />
15-
<label for="type2" class="text-sm">Type 2</label>
12+
<input type="checkbox" id="tshirts" class="form-checkbox h-4 w-4 text-blue-600 rounded" disabled />
13+
<label for="tshirts" class="ml-2 text-sm">Tshirts</label>
14+
</div>
15+
<div class="flex items-center">
16+
<input type="checkbox" id="uncategorized" class="form-checkbox h-4 w-4 text-blue-600 rounded" disabled />
17+
<label for="uncategorized" class="ml-2 text-sm">Uncategorized</label>
1618
</div>
1719
</div>
1820
</div>
1921

20-
<!-- PRICE -->
2122
<div class="mb-8">
2223
<h3 class="font-semibold mb-4">PRIS</h3>
2324
<div class="flex items-center space-x-2">
24-
<input type="range" min="0" max="1000" class="w-full" />
25-
<span class="text-sm">kr 0 - kr 1000</span>
25+
<input type="range" min="0" max="1000" class="w-full accent-blue-600" disabled />
26+
</div>
27+
<div class="flex justify-between text-sm mt-1">
28+
<span>kr 0</span>
29+
<span>kr 1000</span>
2630
</div>
2731
</div>
2832

29-
<!-- SIZE -->
3033
<div class="mb-8">
3134
<h3 class="font-semibold mb-4">STØRRELSE</h3>
32-
<div class="grid grid-cols-3 gap-2">
33-
<button class="px-2 py-1 rounded border text-sm">S</button>
34-
<button class="px-2 py-1 rounded border text-sm">M</button>
35-
<button class="px-2 py-1 rounded border text-sm">L</button>
35+
<div class="grid grid-cols-1 gap-2">
36+
<button class="px-4 py-1 rounded border text-sm bg-gray-100 text-gray-800" disabled>Large</button>
3637
</div>
3738
</div>
3839

39-
<!-- COLOR -->
4040
<div class="mb-8">
4141
<h3 class="font-semibold mb-4">FARGE</h3>
42-
<div class="grid grid-cols-3 gap-2">
43-
<button class="w-8 h-8 rounded-full bg-red-500"></button>
44-
<button class="w-8 h-8 rounded-full bg-blue-500"></button>
45-
<button class="w-8 h-8 rounded-full bg-green-500"></button>
42+
<div class="grid grid-cols-1 gap-2">
43+
<button class="w-8 h-8 rounded-full bg-blue-500" disabled></button>
4644
</div>
4745
</div>
4846

49-
<button class="mt-4 w-full py-2 rounded bg-gray-200 text-gray-700 text-sm font-medium">Resett filter</button>
47+
<button class="mt-4 w-full py-2 rounded bg-gray-100 text-gray-500 text-sm font-medium" disabled>
48+
Resett filter
49+
</button>
5050
</div>
5151
</div>
5252
</template>

components/Products/ProductSort.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
2-
<div class="flex flex-wrap items-center justify-center sm:justify-end gap-2 sm:gap-4">
3-
<label for="sort-select" class="text-sm font-medium">Sortering:</label>
2+
<div class="flex items-center gap-2">
3+
<label for="sort-select" class="text-base text-gray-700">Sortering:</label>
44
<select
55
id="sort-select"
6-
class="min-w-[140px] border rounded-md px-3 py-1.5 text-sm"
6+
class="min-w-[140px] border border-gray-200 rounded-lg px-3 py-2 text-base bg-gray-50 text-gray-700 focus:outline-none"
77
disabled
88
>
99
<option value="popular">Populær</option>

0 commit comments

Comments
 (0)