forked from tangly1024/NotionNext
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/tangly1024/NotionNext
- Loading branch information
Showing
23 changed files
with
1,008 additions
and
1,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** | ||
* CTA,用于创建一个呼吁用户行动的部分(Call To Action,简称 CTA)。 | ||
* 该组件通过以下方式激励用户进行特定操作 | ||
* 用户的公告栏内容将在此显示 | ||
**/ | ||
export default function CTA({ notice }) { | ||
return ( | ||
<> | ||
{/* 底部 */} | ||
<Announcement | ||
post={notice} | ||
className={ | ||
'text-center text-black bg-[#7BE986] dark:bg-hexo-black-gray py-16' | ||
} | ||
/> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
/* eslint-disable @next/next/no-img-element */ | ||
|
||
import CONFIG from '../config' | ||
import { siteConfig } from '@/lib/config' | ||
|
||
/** | ||
* 合作伙伴 | ||
* @returns | ||
*/ | ||
export const Brand = () => { | ||
return <> | ||
|
||
{/* <!-- ====== Brands Section Start --> */} | ||
<section className="pb-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" | ||
> | ||
{CONFIG.STARTER_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> | ||
})} | ||
const brands = siteConfig('STARTER_BRANDS') | ||
return ( | ||
<> | ||
{/* <!-- ====== Brands Section Start --> */} | ||
<section className='pb-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> | ||
</div> | ||
</section> | ||
{/* <!-- ====== Brands Section End --> */} | ||
</section> | ||
{/* <!-- ====== Brands Section End --> */} | ||
</> | ||
) | ||
} |
Oops, something went wrong.