mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 20:45:39 +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">
|
<Icon size="lg">
|
||||||
<Icons.Logo />
|
<Icons.Logo />
|
||||||
</Icon>
|
</Icon>
|
||||||
<Text>umami</Text>
|
<Text>{process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'umami'}</Text>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.links}>
|
<div className={styles.links}>
|
||||||
{links.map(({ url, label }) => {
|
{links.map(({ url, label }) => {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ export default function ({ children }) {
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: {
|
title: {
|
||||||
template: '%s | Umami',
|
template: `%s | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
|
||||||
default: 'Umami',
|
default: {process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ export default function ({ children }) {
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: {
|
title: {
|
||||||
template: '%s | Settings | Umami',
|
template: `%s | Settings | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
|
||||||
default: 'Settings | Umami',
|
default: `Settings | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ export default function ({ children }) {
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: {
|
title: {
|
||||||
template: '%s | Umami',
|
template: `%s | ${process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}`,
|
||||||
default: 'Umami',
|
default: {process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ export function LoginForm() {
|
||||||
<Icon className={styles.icon} size="xl">
|
<Icon className={styles.icon} size="xl">
|
||||||
<Logo />
|
<Logo />
|
||||||
</Icon>
|
</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)}>
|
<Form className={styles.form} onSubmit={handleSubmit} error={getMessage(error)}>
|
||||||
<FormRow label={formatMessage(labels.username)}>
|
<FormRow label={formatMessage(labels.username)}>
|
||||||
<FormInput name="username" rules={{ required: formatMessage(labels.required) }}>
|
<FormInput name="username" rules={{ required: formatMessage(labels.required) }}>
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ export function Header() {
|
||||||
return (
|
return (
|
||||||
<header className={styles.header}>
|
<header className={styles.header}>
|
||||||
<div>
|
<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">
|
<Icon size="lg">
|
||||||
<Icons.Logo />
|
<Icons.Logo />
|
||||||
</Icon>
|
</Icon>
|
||||||
<Text>umami</Text>
|
<Text>{process.env.NEXT_PUBLIC_CUSTOM_TITLE || 'Umami'}</Text>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.buttons}>
|
<div className={styles.buttons}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue