11import Image , { StaticImageData } from 'next/image' ;
22import { CallToAction , cn , Heading } from '@theguild/components' ;
33import { ArrowIcon } from '../arrow-icon' ;
4- import dimaPhoto from './dima.webp' ;
5- // import noamPhoto from './noam.webp';
64import saihajPhoto from './saihaj.webp' ;
75
86export function TeamSection ( { className } : { className ?: string } ) {
@@ -40,9 +38,6 @@ export function TeamSection({ className }: { className?: string }) {
4038 'max-xl:-mx-4 max-xl:max-w-[calc(100%-1rem)] max-xl:px-4 max-xl:py-6 max-lg:max-w-[calc(100%+2rem)] xl:ml-auto' ,
4139 team . length === 12 ? 'xl:w-[628px]' : 'xl:w-[664px]' ,
4240 ) }
43- style = { {
44- '--size' : '120px' ,
45- } }
4641 />
4742 </ div >
4843 </ section >
@@ -56,7 +51,6 @@ const team: TeamMember[] = [
5651 'https://avatars.githubusercontent.com/enisdenjo?v=4&s=180' ,
5752 'https://github.com/enisdenjo' ,
5853 ] ,
59- [ 'Dimitri Postolov' , dimaPhoto , 'https://github.com/dimaMachina' ] ,
6054 [
6155 'Dotan Simha' ,
6256 'https://avatars.githubusercontent.com/dotansimha?v=4&s=180' ,
@@ -119,9 +113,11 @@ function TeamGallery(props: React.HTMLAttributes<HTMLElement>) {
119113 { ...props }
120114 className = { cn (
121115 'nextra-scrollbar flex shrink-0 grid-cols-5 flex-row items-stretch justify-items-stretch gap-2 [scrollbar-color:#00000029_transparent] [scrollbar-width:auto] max-lg:overflow-auto lg:flex-wrap lg:gap-6 lg:max-xl:grid' ,
122- team . length === 13
123- ? 'grid-cols-5 xl:[&>:nth-child(9n-8)]:ml-[calc(var(--size)/2)]'
124- : 'grid-cols-6 xl:[&>:nth-child(8n-7)]:ml-[calc(var(--size)/2)]' ,
116+ '[--size:120px]' ,
117+ team . length <= 12 && 'grid-cols-6 xl:[&>:nth-child(8n-7)]:ml-[calc(var(--size)/2)]' ,
118+ team . length === 13 &&
119+ 'grid-cols-5 xl:[--size:112px] xl:[&>:nth-child(9n-8)]:ml-[calc(var(--size)/2)]' ,
120+ team . length > 13 && 'nextra-scrollbar size-full flex-col p-1 xl:overflow-scroll' ,
125121 props . className ,
126122 ) }
127123 >
0 commit comments