mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 12:35:38 +01:00
Feat: simple brand options
This commit is contained in:
parent
3e45c9d055
commit
8cce0f8c8d
6 changed files with 10 additions and 10 deletions
|
|
@ -71,7 +71,7 @@ export function NavBar() {
|
|||
<Icon size="lg">
|
||||
<Icons.Logo />
|
||||
</Icon>
|
||||
<Text>umami</Text>
|
||||
<Text>{process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'umami'}</Text>
|
||||
</div>
|
||||
<div className={styles.links}>
|
||||
{links.map(({ url, label }) => {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export default function ({ children }) {
|
|||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
template: '%s | Umami',
|
||||
default: 'Umami',
|
||||
template: `%s | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
|
||||
default: {process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export default function ({ children }) {
|
|||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
template: '%s | Settings | Umami',
|
||||
default: 'Settings | Umami',
|
||||
template: `%s | Settings | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
|
||||
default: `Settings | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export default function ({ children }) {
|
|||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
template: '%s | Umami',
|
||||
default: 'Umami',
|
||||
template: `%s | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
|
||||
default: {process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export function LoginForm() {
|
|||
<Icon className={styles.icon} size="xl">
|
||||
<Logo />
|
||||
</Icon>
|
||||
<div className={styles.title}>umami</div>
|
||||
<div className={styles.title}>{process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'umami'}</div>
|
||||
<Form className={styles.form} onSubmit={handleSubmit} error={getMessage(error)}>
|
||||
<FormRow label={formatMessage(labels.username)}>
|
||||
<FormInput name="username" rules={{ required: formatMessage(labels.required) }}>
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ export function Header() {
|
|||
return (
|
||||
<header className={styles.header}>
|
||||
<div>
|
||||
<Link href="https://umami.is" target="_blank" className={styles.title}>
|
||||
<Link href={process.env.NEXT_PUBLIC_CUSTOM_HOMEPAGE_URL || 'https://umami.is'} target="_blank" className={styles.title}>
|
||||
<Icon size="lg">
|
||||
<Icons.Logo />
|
||||
</Icon>
|
||||
<Text>umami</Text>
|
||||
<Text>{process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}</Text>
|
||||
</Link>
|
||||
</div>
|
||||
<div className={styles.buttons}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue