File tree Expand file tree Collapse file tree 4 files changed +68
-6
lines changed Expand file tree Collapse file tree 4 files changed +68
-6
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react'
2+ import { cn } from 'ui'
3+
4+ const logos = [
5+ {
6+ image : `/images/logos/publicity/mozilla.svg` ,
7+ alt : 'mozilla' ,
8+ name : 'mozilla' ,
9+ } ,
10+ {
11+ image : `/images/logos/publicity/1password.svg` ,
12+ alt : '1password' ,
13+ name : '1password' ,
14+ } ,
15+ {
16+ image : `/images/logos/publicity/pwc.svg` ,
17+ alt : 'pwc' ,
18+ name : 'pwc' ,
19+ } ,
20+ {
21+ image : `/images/logos/publicity/langchain.svg` ,
22+ alt : 'langchain' ,
23+ name : 'langchain' ,
24+ } ,
25+ ]
26+
27+ interface Props {
28+ className ?: string
29+ }
30+
31+ const EnterpriseLogos : React . FC < Props > = ( { className } ) => {
32+ return (
33+ < div
34+ className = { cn (
35+ 'flex lg:grid grid-cols-2 xl:flex flex-wrap gap-4 md:gap-8 lg:gap-4 2xl:gap-8' ,
36+ className
37+ ) }
38+ suppressHydrationWarning
39+ >
40+ { logos . map ( ( logo ) => (
41+ < div key = { `ent-logo-${ logo . name } ` } className = "h-12 lg:h-12 w-max" >
42+ < img
43+ src = { logo . image }
44+ alt = { logo . alt }
45+ className = "
46+ w-auto block
47+ h-10 !min-h-10
48+ md:h-12 md:!min-h-12
49+ lg:h-11 lg:!min-h-11
50+ 2xl:h-12 2xl:!min-h-12
51+ "
52+ draggable = { false }
53+ />
54+ </ div >
55+ ) ) }
56+ </ div >
57+ )
58+ }
59+
60+ export default EnterpriseLogos
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ interface Props {
1616 footerPosition ?: 'bottom' | 'left'
1717 ctas ?: CTA [ ]
1818 className ?: string
19+ sectionContainerClassName ?: string
1920}
2021
2122const ProductHeader = ( props : Props ) => (
@@ -25,7 +26,7 @@ const ProductHeader = (props: Props) => (
2526 props . className
2627 ) }
2728 >
28- < SectionContainer className = " !py-0 grid grid-cols-12" >
29+ < SectionContainer className = { cn ( ' !py-0 grid grid-cols-12' , props . sectionContainerClassName ) } >
2930 < div className = "relative z-10 col-span-12 gap-8 lg:col-span-5" >
3031 < div >
3132 { ( props . icon || props . title ) && (
@@ -63,7 +64,7 @@ const ProductHeader = (props: Props) => (
6364 ) ) }
6465 </ div >
6566 { props . footer && props . footerPosition === 'left' && (
66- < div className = "relative z-10 mt-4 md:mt-8 lg:mt-20 xl:mt-32 col-span-12" >
67+ < div className = "ph-footer relative z-10 mt-4 md:mt-8 lg:mt-20 xl:mt-32 col-span-12" >
6768 { props . footer }
6869 </ div >
6970 ) }
Original file line number Diff line number Diff line change 33/// <reference types="next/navigation-types/compat/navigation" />
44
55// NOTE: This file should not be edited
6- // see https://nextjs.org/docs/basic-features /typescript for more information.
6+ // see https://nextjs.org/docs/app/building-your-application/configuring /typescript for more information.
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Layout from '~/components/Layouts/Default'
66import ProductHeader from '~/components/Sections/ProductHeader2'
77
88import content from '~/data/enterprise/content'
9- import Logos from '../components/logos '
9+ import EnterpriseLogos from '../components/Enterprise/EnterpriseLogos '
1010
1111const EnterpriseUseCases = dynamic ( ( ) => import ( 'components/Enterprise/UseCases' ) )
1212const EnterprisePerformance = dynamic ( ( ) => import ( 'components/Enterprise/Performance' ) )
@@ -34,8 +34,9 @@ const Enterprise: NextPage = () => (
3434 < Layout className = "overflow-visible" >
3535 < ProductHeader
3636 { ...content . heroSection }
37- className = "[&_h1]:2xl:!text-5xl bg-default border-0 lg:pb-8"
38- footer = { < Logos className = "!pb-0" showHeading = { false } align = "left" /> }
37+ className = "[&_h1]:2xl:!text-5xl bg-default border-0 lg:pb-8 [&_.ph-footer]:mt-0 [&_.ph-footer]:lg:mt-16 [&_.ph-footer]:xl:mt-32"
38+ sectionContainerClassName = "lg:gap-4"
39+ footer = { < EnterpriseLogos className = "lg:max-w-xs xl:max-w-none" /> }
3940 footerPosition = "left"
4041 />
4142 < EnterpriseUseCases { ...content [ 'use-cases' ] } />
You can’t perform that action at this time.
0 commit comments