fixes and updates
This commit is contained in:
+16
-12
@@ -2,12 +2,12 @@ import { clients } from '../consts/clients';
|
||||
|
||||
export function Clients() {
|
||||
return (
|
||||
<div className="space-y-6 overflow-hidden mt-16">
|
||||
<div className="flex items-center overflow-hidden w-screen min-h-[117px]">
|
||||
<div className="space-y-8">
|
||||
<div className="flex items-center overflow-hidden w-screen lg:-mx-10 -mx-6 mt-10 min-h-[117px]">
|
||||
<MarqueeHalf items={clients.slice(0, clients.length / 3)} />
|
||||
<MarqueeHalf items={clients.slice(0, clients.length / 3)} />
|
||||
</div>
|
||||
<div className="flex items-center overflow-hidden w-screen min-h-[117px]">
|
||||
<div className="flex items-center overflow-hidden w-screen lg:-mx-10 -mx-6 min-h-[117px]">
|
||||
<MarqueeHalf
|
||||
reversed
|
||||
items={clients.slice(clients.length / 3, (2 * clients.length) / 3)}
|
||||
@@ -17,7 +17,7 @@ export function Clients() {
|
||||
items={clients.slice(clients.length / 3, (2 * clients.length) / 3)}
|
||||
/>
|
||||
</div>
|
||||
<div className="border-b border-[#3D425C] flex items-center overflow-hidden w-screen min-h-[117px] pb-16">
|
||||
<div className="border-b border-[#3D425C] flex items-center overflow-hidden w-screen lg:-mx-10 -mx-6 min-h-[117px] pb-16">
|
||||
<MarqueeHalf items={clients.slice(2 * (clients.length / 3))} />
|
||||
<MarqueeHalf items={clients.slice(2 * (clients.length / 3))} />
|
||||
</div>
|
||||
@@ -35,17 +35,21 @@ function MarqueeHalf({
|
||||
return (
|
||||
<div
|
||||
className={
|
||||
'flex flex-nowrap overflow-clip items-center py-2 [flex:0_0_auto] animate-infinite-scroll ' +
|
||||
(reversed ? '[animation-direction:reverse]' : '')
|
||||
'flex flex-nowrap ' +
|
||||
(reversed
|
||||
? '[animation:infinite-scroll_45s_linear_infinite_reverse]'
|
||||
: 'animate-infinite-scroll')
|
||||
}
|
||||
>
|
||||
{items.map(client => (
|
||||
<img
|
||||
key={client.src}
|
||||
src={client.src}
|
||||
alt={client.src}
|
||||
className="max-w-full h-auto !relative object-covesr mx-12"
|
||||
/>
|
||||
<div className="border-l border-[#3D425C] w-[312px] h-[124px] flex justify-center items-center relative">
|
||||
<img
|
||||
key={client.src}
|
||||
src={client.src}
|
||||
alt={client.src}
|
||||
className="!relative"
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -210,5 +210,3 @@ export function FeedbackForm({
|
||||
</form>
|
||||
);
|
||||
}
|
||||
|
||||
FeedbackForm.displayName = 'FeedbackForm';
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
export function ModalMenu() {
|
||||
return <div></div>;
|
||||
}
|
||||
@@ -8,6 +8,7 @@ import { useRef, useState } from 'react';
|
||||
import { useOnClickOutside } from 'usehooks-ts';
|
||||
import { ChevronUpIcon } from './icons/ChevronUpIcon';
|
||||
import { ChevronDownIcon } from './icons/ChevronDownIcon';
|
||||
import { ClassNameWrapper } from '../hocs/ClassNameWrapper';
|
||||
|
||||
export function SelectPhoneCode({
|
||||
currentPhoneCodeAndCountry: [currentPhoneCode, currentCountry],
|
||||
@@ -23,10 +24,7 @@ export function SelectPhoneCode({
|
||||
useOnClickOutside(ref, () => setOpen(false));
|
||||
|
||||
return (
|
||||
<div
|
||||
ref={ref}
|
||||
className="relative flex flex-col sm:w-1/3 min-w-[max(10vw,20%)]"
|
||||
>
|
||||
<div ref={ref} className="relative flex flex-col sm:w-1/3 max-w-[350px]">
|
||||
<button
|
||||
className="flex gap-x-1 justify-between items-center relative"
|
||||
onClick={e => {
|
||||
@@ -40,7 +38,10 @@ export function SelectPhoneCode({
|
||||
alt=""
|
||||
/>
|
||||
<p className="h4">{currentPhoneCode}</p>
|
||||
{open ? <ChevronUpIcon /> : <ChevronDownIcon />}
|
||||
<ClassNameWrapper
|
||||
className="flex-1 max-sm:w-4 sm:max-lg:w-5"
|
||||
element={open ? <ChevronUpIcon /> : <ChevronDownIcon />}
|
||||
/>
|
||||
</button>
|
||||
{open && (
|
||||
<div className="space-y-1 absolute z-10 bg-[#14161F] top-[100%] -left-1 border border-t-0 rounded-b-lg border-[#3D425C] max-h-[300px] overflow-y-auto overflow-x-hidden">
|
||||
|
||||
Reference in New Issue
Block a user