27 lines
1.2 KiB
TypeScript
27 lines
1.2 KiB
TypeScript
import React from 'react'
|
|
import { counterItems } from '@/constants'
|
|
|
|
export default function Counter() {
|
|
return (
|
|
<div>
|
|
<div className="flex justify-center items-center w-full bg-blue bg-[url('../public/img/patern.svg')]"
|
|
>
|
|
<div className='3xl:w-[70%] w-[80%] flex flex-row py-24 gap-9 justify-between items-center
|
|
max-md:gap-4 max-lg:flex-wrap max-lg:justify-center'>
|
|
{counterItems.map((item) => {
|
|
return (
|
|
<div className='h-48 flex flex-col justify-end items-center gap-1 px-7 py-6 rounded-lg bg-blue50
|
|
hover:bg-[#002A5B] transition-all duration-500 text-center
|
|
max-md:px-1 max-md:py-1 max-lg:h-36 max-md:h-32'
|
|
key={item.id}>
|
|
<p className='text-yellow font-bold text-base'>{item.count}</p>
|
|
<p className='text-white font-normal text-sm'>{item.name}</p>
|
|
</div>
|
|
);
|
|
})}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|