File tree Expand file tree Collapse file tree 4 files changed +31
-10
lines changed
Expand file tree Collapse file tree 4 files changed +31
-10
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,14 @@ const SearchBar = ({ transform }: { transform: Transform }) => {
1717 < div className = 'relative' >
1818 < input
1919 type = 'text'
20- className = 'w-full px-4 py-2 border dark:border-slate-900 rounded-md shadow-sm focus:outline-none focus:ring focus:border-blue-300 dark:bg-slate-900'
20+ className = 'w-full px-4 py-2 border dark:border-slate-900 rounded-md shadow-sm focus:outline-none focus:ring focus:border-blue-300 bg-slate-800 text-white dark:bg-slate-900 hover:scale-[0.94] transition-all duration-200 '
2121 placeholder = 'Search'
2222 name = 'query'
2323 value = { query }
2424 onChange = { changeHandler }
25+ style = { {
26+ transition : 'all 0.2s ease-in-out !important' ,
27+ } }
2528 />
2629 </ div >
2730 </ div >
Original file line number Diff line number Diff line change @@ -127,14 +127,20 @@ export default function Sidebar({
127127 < div className = 'w-full flex items-center justify-between mt-4 gap-2' >
128128 < button
129129 type = 'submit'
130- className = 'bg-primary text-white px-4 py-2 rounded hover:bg-blue-700 focus:outline-none'
130+ className = 'bg-primary text-white px-4 py-2 rounded hover:bg-blue-700 focus:outline-none transition-all duration-200 hover:scale-[1.05]'
131+ style = { {
132+ transition : 'all 0.2s ease-in-out !important' ,
133+ } }
131134 >
132135 Apply Filters
133136 </ button >
134137 < button
135138 type = 'button'
136- className = 'bg-slate-200 dark:bg-slate-900 text-gray-700 dark:text-slate-200 px-4 py-2 rounded hover:bg-slate-300 focus:outline-none'
139+ className = 'bg-slate-200 dark:bg-slate-900 text-gray-700 dark:text-slate-200 px-4 py-2 rounded hover:bg-slate-300 dark:hover:bg-slate-700 focus:outline-none transition-all duration-200 hover:scale-[1.05] '
137140 onClick = { clearFilters }
141+ style = { {
142+ transition : 'all 0.2s ease-in-out !important' ,
143+ } }
138144 >
139145 Clear Filters
140146 </ button >
Original file line number Diff line number Diff line change @@ -22,15 +22,21 @@ export default function Checkbox({
2222 } ;
2323
2424 return (
25- < label className = 'flex items-center gap-3 px-4 py-2 cursor-pointer' >
25+ < label
26+ className = 'flex items-center gap-3 px-4 py-2 cursor-pointer hover:bg-slate-300 dark:hover:bg-slate-800 transition-all duration-200 rounded hover:scale-[1.02] group'
27+ style = { {
28+ transition : 'all 0.2s ease-in-out !important' ,
29+ } }
30+ >
2631 < input
2732 type = 'checkbox'
2833 value = { value }
2934 name = { name }
3035 checked = { isChecked }
3136 onChange = { handleChange }
37+ className = 'group-hover:scale-90 transition-all duration-200'
3238 />
33- < span className = 'text-gray-700 dark:text-slate-300 font-medium' >
39+ < span className = 'text-gray-700 dark:text-slate-300 font-medium group-hover:text-primary dark:group-hover:text-blue-400 transition-all duration-200 ' >
3440 { label }
3541 </ span >
3642 </ label >
Original file line number Diff line number Diff line change @@ -26,23 +26,28 @@ export default function DropdownMenu({
2626 } , [ router ] ) ;
2727
2828 return (
29- < div className = 'my-2 bg-slate-200 dark:bg-slate-900 p-2 rounded cursor-pointer' >
29+ < div
30+ className = 'my-2 bg-slate-200 dark:bg-slate-900 p-2 rounded cursor-pointer hover:scale-[0.94] transition-all duration-200'
31+ style = { {
32+ transition : 'all 0.2s ease-in-out !important' ,
33+ } }
34+ >
3035 < div
31- className = 'w-full flex justify-between items-center align-middle cursor-pointer'
36+ className = 'w-full flex justify-between items-center align-middle cursor-pointer group '
3237 onClick = { ( ) => {
3338 setIsDropdownOpen ( ( prev ) => ! prev ) ;
3439 } }
3540 >
3641 { React . cloneElement ( icon , {
37- className : 'mr-2 ml-2' ,
42+ className : 'mr-2 ml-2 group-hover:scale-60 transition-all duration-200 ' ,
3843 } ) }
39- < div className = 'text-slate-900 dark:text-slate-300 font-bold mr-auto' >
44+ < div className = 'text-slate-900 dark:text-slate-300 font-bold mr-auto transition-all duration-200 ' >
4045 { label }
4146 </ div >
4247 < svg
4348 style = { {
4449 transform : `${ isDropdownOpen ? 'rotate(180deg)' : 'rotate(0)' } ` ,
45- transition : 'all 0.2s linear ' ,
50+ transition : 'all 0.2s ease-in-out ' ,
4651 cursor : 'pointer' ,
4752 } }
4853 id = 'arrow'
@@ -51,6 +56,7 @@ export default function DropdownMenu({
5156 height = '32'
5257 viewBox = '0 0 24 24'
5358 width = '24'
59+ className = 'group-hover:scale-90'
5460 >
5561 < path
5662 clipRule = 'evenodd'
You can’t perform that action at this time.
0 commit comments