mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
Merge pull request #2853 from tangly1024/release/4.7.5
Starter 英雄区配图新增横幅图片
This commit is contained in:
BIN
public/images/starter/hero/banner.webp
Normal file
BIN
public/images/starter/hero/banner.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.0 KiB |
@@ -1,4 +1,5 @@
|
||||
/* eslint-disable @next/next/no-img-element */
|
||||
import LazyImage from '@/components/LazyImage'
|
||||
import { siteConfig } from '@/lib/config'
|
||||
/**
|
||||
* 英雄大图区块
|
||||
@@ -66,7 +67,8 @@ export const Hero = () => {
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={siteConfig('STARTER_HERO_PREVIEW_IMAGE')}
|
||||
alt='hero'
|
||||
alt={siteConfig('TITLE')}
|
||||
title={siteConfig('TITLE')}
|
||||
className='mx-auto max-w-full rounded-t-xl rounded-tr-xl'
|
||||
/>
|
||||
</div>
|
||||
@@ -83,6 +85,14 @@ export const Hero = () => {
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* 横幅图片 */}
|
||||
{siteConfig('STARTER_HERO_BANNER_IMAGE') && (
|
||||
<div className='w-full'>
|
||||
<LazyImage
|
||||
src={siteConfig('STARTER_HERO_BANNER_IMAGE')}></LazyImage>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{/* <!-- ====== Hero Section End --> */}
|
||||
</>
|
||||
|
||||
@@ -20,7 +20,9 @@ const CONFIG = {
|
||||
STARTER_HERO_BUTTON_2_URL: 'https://github.com/tangly1024/NotionNext', // 英雄区按钮
|
||||
STARTER_HERO_BUTTON_2_ICON: '/images/starter/github.svg', // 英雄区按钮2的图标,不需要则留空
|
||||
|
||||
// 英雄区配图,如需隐藏,改为空值即可 ''
|
||||
STARTER_HERO_PREVIEW_IMAGE: '/images/starter/hero/hero-image.webp', // 产品预览图 ,默认读取public目录下图片
|
||||
STARTER_HERO_BANNER_IMAGE: '/images/starter/hero/banner.webp', // hero区下方的全宽图
|
||||
|
||||
// 顶部右侧导航暗流
|
||||
STARTER_NAV_BUTTON_1_TEXT: 'Sign In',
|
||||
|
||||
Reference in New Issue
Block a user