mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 07:26:46 +00:00
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 */
|
/* eslint-disable @next/next/no-img-element */
|
||||||
|
import LazyImage from '@/components/LazyImage'
|
||||||
import { siteConfig } from '@/lib/config'
|
import { siteConfig } from '@/lib/config'
|
||||||
/**
|
/**
|
||||||
* 英雄大图区块
|
* 英雄大图区块
|
||||||
@@ -66,7 +67,8 @@ export const Hero = () => {
|
|||||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||||
<img
|
<img
|
||||||
src={siteConfig('STARTER_HERO_PREVIEW_IMAGE')}
|
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'
|
className='mx-auto max-w-full rounded-t-xl rounded-tr-xl'
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -83,6 +85,14 @@ export const Hero = () => {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* 横幅图片 */}
|
||||||
|
{siteConfig('STARTER_HERO_BANNER_IMAGE') && (
|
||||||
|
<div className='w-full'>
|
||||||
|
<LazyImage
|
||||||
|
src={siteConfig('STARTER_HERO_BANNER_IMAGE')}></LazyImage>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
{/* <!-- ====== Hero Section End --> */}
|
{/* <!-- ====== Hero Section End --> */}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -20,7 +20,9 @@ const CONFIG = {
|
|||||||
STARTER_HERO_BUTTON_2_URL: 'https://github.com/tangly1024/NotionNext', // 英雄区按钮
|
STARTER_HERO_BUTTON_2_URL: 'https://github.com/tangly1024/NotionNext', // 英雄区按钮
|
||||||
STARTER_HERO_BUTTON_2_ICON: '/images/starter/github.svg', // 英雄区按钮2的图标,不需要则留空
|
STARTER_HERO_BUTTON_2_ICON: '/images/starter/github.svg', // 英雄区按钮2的图标,不需要则留空
|
||||||
|
|
||||||
|
// 英雄区配图,如需隐藏,改为空值即可 ''
|
||||||
STARTER_HERO_PREVIEW_IMAGE: '/images/starter/hero/hero-image.webp', // 产品预览图 ,默认读取public目录下图片
|
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',
|
STARTER_NAV_BUTTON_1_TEXT: 'Sign In',
|
||||||
|
|||||||
Reference in New Issue
Block a user