Удалены компоненты FlatCard и ProjectFilter; обновлены стили в Footer и SearchFilters, добавлены новые компоненты ProjectSelect и UnitTypesSelect для улучшения фильтрации проектов.

This commit is contained in:
2025-04-28 19:23:11 +05:00
parent a44f2fbb98
commit f82b114db1
9 changed files with 200 additions and 109 deletions
+6 -6
View File
@@ -83,17 +83,17 @@ function MultiRangeSlider({
return (
<div className="2xl:space-y-[0.556vw] space-y-2">
<p className="text-s">{label}</p>
<div className="bg-white/80 rounded-lg relative p-3 flex justify-between border !border-[#E2E2DC]">
<p className="text-s text-[#0D1922]/70">{label}</p>
<div className="bg-white/80 2xl:rounded-[0.833vw] rounded-xl relative 2xl:px-[1.111vw] 2xl:py-[0.972vw] px-4 py-3.5 flex justify-between 2xl:ring-[0.069vw] ring-1 ring-[#E2E2DC]">
<p className={clsx("text-s", disabled && "text-[#0D1922]/40")}>
{Intl.NumberFormat("en").format(Math.round(currentMin))}
</p>
<p className={clsx("text-s", disabled && "text-[#0D1922]/40")}>
{Intl.NumberFormat("en").format(Math.round(currentMax))}
</p>
<div className="absolute bottom-0 left-0 w-full px-4 translate-y-1/2">
<div className="absolute bottom-0 left-0 w-full 2xl:px-[1.111vw] px-4 translate-y-1/2">
<div
className="relative flex h-4"
className="relative flex 2xl:h-[1.111vw] h-4"
ref={rangeRef}
onMouseMove={
handleChange as React.MouseEventHandler<HTMLDivElement>
@@ -108,7 +108,7 @@ function MultiRangeSlider({
left: `${((currentMin - min) / (max - min)) * 100}%`,
}}
className={clsx(
"h-0.5 self-center relative",
"2xl:h-[0.139vw] h-0.5 self-center relative",
disabled ? "bg-[#D2D2D2]" : "bg-[#00BED7]"
)}
/>
@@ -119,7 +119,7 @@ function MultiRangeSlider({
onTouchStart={() => setCurrent(type as "min" | "max")}
style={getThumbStyle(type === "min" ? currentMin : currentMax)}
className={clsx(
"rounded-full w-4 h-4 absolute bottom-0 -translate-x-1/2",
"rounded-full 2xl:w-[1.111vw] 2xl:h-[1.111vw] w-4 h-4 absolute bottom-0 -translate-x-1/2",
current === type ? "cursor-grabbing" : "cursor-grab",
disabled ? "bg-[#D2D2D2] !cursor-default" : "bg-[#00BED7]"
)}