feat: change button style in project
This commit is contained in:
parent
25278db128
commit
10c2c68da1
1 changed files with 4 additions and 4 deletions
|
|
@ -241,16 +241,16 @@ export default function Page() {
|
|||
}}
|
||||
className="flex flex-row justify-center items-start flex-wrap gap-3 md:gap-5 my-5 ">
|
||||
{Object.keys(category).map((key, index) => (
|
||||
<div
|
||||
<button
|
||||
key={index}
|
||||
className={`px-2 md:px-4 py-2 rounded-lg cursor-pointer transition-all ease duration-300 ${
|
||||
className={`px-2 md:px-4 py-2 rounded-lg cursor-pointer transition-all ease duration-300 focus:bg-gray-300 focus:text-black focus:ring focus:ring-slate-500 ${
|
||||
activeCategory === key
|
||||
? "bg-gray-300 text-black hover:bg-gray-700 hover:text-white"
|
||||
: "bg-gray-700 text-white hover:bg-gray-300 hover:text-black"
|
||||
}`}
|
||||
onClick={() => setActiveCategory(key)}>
|
||||
{category[key]}
|
||||
</div>
|
||||
</button>
|
||||
))}
|
||||
</motion.div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue