1
1
import Image , { StaticImageData } from 'next/image' ;
2
2
import { CallToAction , cn , Heading } from '@theguild/components' ;
3
3
import { ArrowIcon } from '../arrow-icon' ;
4
- import dimaPhoto from './dima.webp' ;
5
- // import noamPhoto from './noam.webp';
6
4
import saihajPhoto from './saihaj.webp' ;
7
5
8
6
export function TeamSection ( { className } : { className ?: string } ) {
@@ -40,9 +38,6 @@ export function TeamSection({ className }: { className?: string }) {
40
38
'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' ,
41
39
team . length === 12 ? 'xl:w-[628px]' : 'xl:w-[664px]' ,
42
40
) }
43
- style = { {
44
- '--size' : '120px' ,
45
- } }
46
41
/>
47
42
</ div >
48
43
</ section >
@@ -56,7 +51,6 @@ const team: TeamMember[] = [
56
51
'https://avatars.githubusercontent.com/enisdenjo?v=4&s=180' ,
57
52
'https://github.com/enisdenjo' ,
58
53
] ,
59
- [ 'Dimitri Postolov' , dimaPhoto , 'https://github.com/dimaMachina' ] ,
60
54
[
61
55
'Dotan Simha' ,
62
56
'https://avatars.githubusercontent.com/dotansimha?v=4&s=180' ,
@@ -119,9 +113,11 @@ function TeamGallery(props: React.HTMLAttributes<HTMLElement>) {
119
113
{ ...props }
120
114
className = { cn (
121
115
'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' ,
125
121
props . className ,
126
122
) }
127
123
>
0 commit comments