mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-21 09:14:42 +08:00
feat: add custom site name
This commit is contained in:
@@ -146,6 +146,7 @@ Pull Bot 会反复触发无效的 PR 和垃圾邮件,严重干扰项目维护
|
||||
| NEXT_PUBLIC_ENABLE_BLOCKAD | 开启智能去广告功能(实验性) | true / false | false |
|
||||
| NEXT_PUBLIC_SEARCH_MAX_PAGE | 搜索接口可拉取的最大页数 | 1-50 | 5 |
|
||||
| NEXT_PUBLIC_AGGREGATE_SEARCH_RESULT | 搜索结果默认是否按标题和年份聚合 | true / false | true |
|
||||
| NEXT_PUBLIC_SITE_NAME | 站点名称 | 任意 string | MoonTV |
|
||||
|
||||
## 配置说明
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import { ThemeProvider } from '../components/ThemeProvider';
|
||||
const inter = Inter({ subsets: ['latin'] });
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'MoonTV',
|
||||
title: process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTV',
|
||||
description: '影视聚合',
|
||||
manifest: '/manifest.json',
|
||||
};
|
||||
|
||||
@@ -47,7 +47,7 @@ function LoginPageClient() {
|
||||
</div>
|
||||
<div className='relative z-10 w-full max-w-md rounded-3xl bg-gradient-to-b from-white/90 via-white/70 to-white/40 dark:from-zinc-900/90 dark:via-zinc-900/70 dark:to-zinc-900/40 backdrop-blur-xl shadow-2xl p-10 dark:border dark:border-zinc-800'>
|
||||
<h1 className='text-green-600 tracking-tight text-center text-3xl font-extrabold mb-8 bg-clip-text drop-shadow-sm'>
|
||||
MoonTV
|
||||
{process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTV'}
|
||||
</h1>
|
||||
<form onSubmit={handleSubmit} className='space-y-8'>
|
||||
<div>
|
||||
|
||||
@@ -12,7 +12,7 @@ const MobileHeader = () => {
|
||||
href='/'
|
||||
className='text-2xl font-bold text-green-600 tracking-tight hover:opacity-80 transition-opacity'
|
||||
>
|
||||
MoonTV
|
||||
{process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTV'}
|
||||
</Link>
|
||||
</div>
|
||||
<div className='absolute top-1/2 right-4 -translate-y-1/2'>
|
||||
|
||||
@@ -39,7 +39,7 @@ const Logo = () => (
|
||||
className='flex items-center justify-center h-16 select-none hover:opacity-80 transition-opacity duration-200'
|
||||
>
|
||||
<span className='text-2xl font-bold text-green-600 tracking-tight'>
|
||||
MoonTV
|
||||
{process.env.NEXT_PUBLIC_SITE_NAME || 'MoonTV'}
|
||||
</span>
|
||||
</Link>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user