mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-16 07:26:47 +00:00
40 lines
1.0 KiB
JavaScript
40 lines
1.0 KiB
JavaScript
/* eslint-disable @next/next/no-img-element */
|
|
|
|
import { siteConfig } from '@/lib/config'
|
|
|
|
/**
|
|
* 合作伙伴
|
|
* @returns
|
|
*/
|
|
export const Brand = () => {
|
|
const brands = siteConfig('STARTER_BRANDS')
|
|
return (
|
|
<>
|
|
{/* <!-- ====== Brands Section Start --> */}
|
|
<section className='py-20 dark:bg-dark'>
|
|
<div className='container px-4'>
|
|
<div className='-mx-4 flex flex-wrap items-center justify-center gap-8 xl:gap-11'>
|
|
{brands?.map((item, index) => {
|
|
return (
|
|
<a key={index} href={item.URL}>
|
|
<img
|
|
src={item.IMAGE}
|
|
alt={item.TITLE}
|
|
className='dark:hidden'
|
|
/>
|
|
<img
|
|
src={item.IMAGE_WHITE}
|
|
alt={item.TITLE}
|
|
className='hidden dark:block'
|
|
/>
|
|
</a>
|
|
)
|
|
})}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{/* <!-- ====== Brands Section End --> */}
|
|
</>
|
|
)
|
|
}
|