@@ -77,6 +77,7 @@ const FEATURE_TABS = [
7777 } ,
7878 {
7979 label : 'Knowledge Base' ,
80+ mobileLabel : 'Knowledge' ,
8081 color : '#8B5CF6' ,
8182 title : 'Your context engine' ,
8283 description :
@@ -97,6 +98,7 @@ const FEATURE_TABS = [
9798 } ,
9899 {
99100 label : 'Logs' ,
101+ hideOnMobile : true ,
100102 color : '#FF6B35' ,
101103 title : 'Full visibility, every run' ,
102104 description :
@@ -150,7 +152,7 @@ function DotGrid({
150152 return (
151153 < div
152154 aria-hidden = 'true'
153- className = { `shrink-0 bg-[#F6F6F6] p-[6px] ${ borderLeft ? 'border-[#E9E9E9] border-l' : '' } ` }
155+ className = { `h-full shrink-0 bg-[#F6F6F6] p-[6px] ${ borderLeft ? 'border-[#E9E9E9] border-l' : '' } ` }
154156 style = { {
155157 width : width ? `${ width } px` : undefined ,
156158 display : 'grid' ,
@@ -192,8 +194,11 @@ export default function Features() {
192194 />
193195 </ div >
194196
195- < div className = 'relative z-10 pt-[100px]' >
196- < div ref = { sectionRef } className = 'flex flex-col items-start gap-[20px] px-[80px]' >
197+ < div className = 'relative z-10 pt-[60px] lg:pt-[100px]' >
198+ < div
199+ ref = { sectionRef }
200+ className = 'flex flex-col items-start gap-[20px] px-[24px] lg:px-[80px]'
201+ >
197202 < Badge
198203 variant = 'blue'
199204 size = 'md'
@@ -211,7 +216,7 @@ export default function Features() {
211216 </ Badge >
212217 < h2
213218 id = 'features-heading'
214- className = 'max-w-[900px] font-[430] font-season text-[#1C1C1C] text-[40px ] leading-[110%] tracking-[-0.02em]'
219+ className = 'max-w-[900px] font-[430] font-season text-[#1C1C1C] text-[28px ] leading-[110%] tracking-[-0.02em] md:text-[40px ]'
215220 >
216221 { HEADING_LETTERS . map ( ( char , i ) => (
217222 < ScrollLetter key = { i } scrollYProgress = { scrollYProgress } charIndex = { i } >
@@ -225,18 +230,25 @@ export default function Features() {
225230 </ h2 >
226231 </ div >
227232
228- < div className = 'relative mt-[73px] pb-[80px]' >
233+ < div className = 'relative mt-[40px] pb-[40px] lg:mt-[ 73px] lg: pb-[80px]' >
229234 < div
230235 aria-hidden = 'true'
231- className = 'absolute top-0 bottom-0 left-[80px] z-20 w-px bg-[#E9E9E9]'
236+ className = 'absolute top-0 bottom-0 left-[80px] z-20 hidden w-px bg-[#E9E9E9] lg:block '
232237 />
233238 < div
234239 aria-hidden = 'true'
235- className = 'absolute top-0 right-[80px] bottom-0 z-20 w-px bg-[#E9E9E9]'
240+ className = 'absolute top-0 right-[80px] bottom-0 z-20 hidden w-px bg-[#E9E9E9] lg:block '
236241 />
237242
238- < div className = 'flex h-[68px] overflow-hidden border border-[#E9E9E9]' >
239- < DotGrid cols = { 10 } rows = { 8 } width = { 80 } />
243+ < div className = 'flex h-[68px] border border-[#E9E9E9] lg:overflow-hidden' >
244+ < div className = 'h-full shrink-0' >
245+ < div className = 'h-full lg:hidden' >
246+ < DotGrid cols = { 3 } rows = { 8 } width = { 24 } />
247+ </ div >
248+ < div className = 'hidden h-full lg:block' >
249+ < DotGrid cols = { 10 } rows = { 8 } width = { 80 } />
250+ </ div >
251+ </ div >
240252
241253 < div role = 'tablist' aria-label = 'Feature categories' className = 'flex flex-1' >
242254 { FEATURE_TABS . map ( ( tab , index ) => (
@@ -246,10 +258,17 @@ export default function Features() {
246258 role = 'tab'
247259 aria-selected = { index === activeTab }
248260 onClick = { ( ) => setActiveTab ( index ) }
249- className = { `relative flex h-full flex-1 items-center justify-center font-medium font-season text-[#212121] text-[14px ] uppercase${ index > 0 ? ' border-[#E9E9E9] border-l' : '' } ` }
261+ className = { `relative h-full flex-1 items-center justify-center whitespace-nowrap px-[12px] font-medium font-season text-[#212121] text-[12px ] uppercase lg:px-0 lg:text-[14px] ${ tab . hideOnMobile ? ' hidden lg:flex' : ' flex' } ${ index > 0 ? ' border-[#E9E9E9] border-l' : '' } ` }
250262 style = { { backgroundColor : index === activeTab ? '#FDFDFD' : '#F6F6F6' } }
251263 >
252- { tab . label }
264+ { tab . mobileLabel ? (
265+ < >
266+ < span className = 'lg:hidden' > { tab . mobileLabel } </ span >
267+ < span className = 'hidden lg:inline' > { tab . label } </ span >
268+ </ >
269+ ) : (
270+ tab . label
271+ ) }
253272 { index === activeTab && (
254273 < div className = 'absolute right-0 bottom-0 left-0 flex h-[6px]' >
255274 { tab . segments . map ( ( [ opacity , width ] , i ) => (
@@ -269,16 +288,23 @@ export default function Features() {
269288 ) ) }
270289 </ div >
271290
272- < DotGrid cols = { 10 } rows = { 8 } width = { 80 } />
291+ < div className = 'h-full shrink-0' >
292+ < div className = 'h-full lg:hidden' >
293+ < DotGrid cols = { 3 } rows = { 8 } width = { 24 } />
294+ </ div >
295+ < div className = 'hidden h-full lg:block' >
296+ < DotGrid cols = { 10 } rows = { 8 } width = { 80 } />
297+ </ div >
298+ </ div >
273299 </ div >
274300
275- < div className = 'mt-[60px] grid grid-cols-[1fr_2.8fr] gap-[60px] px-[120px]' >
276- < div className = 'flex h-[560px] flex-col items-start justify-between pt-[20px]' >
301+ < div className = 'mt-[32px] flex flex-col gap-[24px] px-[24px] lg:mt-[ 60px] lg: grid lg: grid-cols-[1fr_2.8fr] lg: gap-[60px] lg: px-[120px]' >
302+ < div className = 'flex flex-col items-start justify-between gap-[24px] pt-[20px] lg:h-[560px] lg:gap-0 ' >
277303 < div className = 'flex flex-col items-start gap-[16px]' >
278- < h3 className = 'font-[430] font-season text-[#1C1C1C] text-[28px ] leading-[120%] tracking-[-0.02em]' >
304+ < h3 className = 'font-[430] font-season text-[#1C1C1C] text-[24px ] leading-[120%] tracking-[-0.02em] lg:text-[28px ]' >
279305 { FEATURE_TABS [ activeTab ] . title }
280306 </ h3 >
281- < p className = 'font-[430] font-season text-[#1C1C1C]/50 text-[18px ] leading-[150%] tracking-[0.02em]' >
307+ < p className = 'font-[430] font-season text-[#1C1C1C]/50 text-[16px ] leading-[150%] tracking-[0.02em] lg:text-[18px ]' >
282308 { FEATURE_TABS [ activeTab ] . description }
283309 </ p >
284310 </ div >
@@ -310,7 +336,7 @@ export default function Features() {
310336 < FeaturesPreview activeTab = { activeTab } />
311337 </ div >
312338
313- < div aria-hidden = 'true' className = 'mt-[60px] h-px bg-[#E9E9E9]' />
339+ < div aria-hidden = 'true' className = 'mt-[60px] hidden h-px bg-[#E9E9E9] lg:block ' />
314340 </ div >
315341 </ div >
316342 </ section >
0 commit comments