feat : center btn list
This commit is contained in:
@@ -7,13 +7,13 @@ const ButtonList = ({
|
|||||||
setActiveId,
|
setActiveId,
|
||||||
}: ButtonListProps) => {
|
}: ButtonListProps) => {
|
||||||
return (
|
return (
|
||||||
<div className="w-full h-full gap-4 grid max-sm:grid-cols-1 max-md:grid-cols-2 md:grid-cols-4 ">
|
<div className="w-full h-full gap-4 flex flex-wrap justify-center max-sm:grid max-sm:grid-cols-1 ">
|
||||||
{ProductsList?.map((i) => {
|
{ProductsList?.map((i) => {
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
key={i.id}
|
key={i.id}
|
||||||
active={i.id === activeId}
|
active={i.id === activeId}
|
||||||
extra="py-4 text-lg"
|
extra="py-2 text-lg"
|
||||||
onClick={() => setActiveId(i.id)}
|
onClick={() => setActiveId(i.id)}
|
||||||
>
|
>
|
||||||
{i.title}
|
{i.title}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const ListTutorials = ({
|
|||||||
}: ListTutorialsProps) => {
|
}: ListTutorialsProps) => {
|
||||||
return (
|
return (
|
||||||
<div className="w-full h-full mt-4">
|
<div className="w-full h-full mt-4">
|
||||||
<ul className="grid grid-cols-2 gap-2 md:grid-cols-6 justify-center items-center">
|
<ul className="flex flex-wrap max-sm:grid max-sm:grid-cols-1 gap-2 justify-center items-center">
|
||||||
{tutorialList?.map((i) => {
|
{tutorialList?.map((i) => {
|
||||||
return (
|
return (
|
||||||
<li
|
<li
|
||||||
|
|||||||
Reference in New Issue
Block a user