Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

1.9 KB
Raw Blame
import { c, t } from "ttag";

import {
  AdminSettingInput,
  SettingHeader,
  SettingsPageWrapper,
  SettingsSection,
} from "metabase/settings-components";
import { Box } from "metabase/ui";

import { getLoadingMessageOptions } from "../lib/loading-message";

import { ColorSettingsWidget } from "./ColorSettingsWidget";
import { FontWidget } from "./FontWidget";
import { ImageUploadWidget } from "./IllustrationWidget/ImageUploadWidget";

export function WhiteLabelBrandingSettingsPage() {
  return (
    <SettingsPageWrapper
      title={t`Branding`}
      description={t`Configure your instance to match your brand visuals and voice`}
    >
      <SettingsSection title={t`Colors`}>
        <Box>
          <SettingHeader
            id="color-palette"
            title={t`Color palette`}
            description={t`Choose the colors used in the user interface throughout Metabase and others specifically for the charts. You need to refresh your browser to see your changes take effect.`}
          />
        </Box>

        <ColorSettingsWidget />
      </SettingsSection>

      <SettingsSection title={t`Icons`}>
        <ImageUploadWidget
          name="application-logo-url"
          title={t`Logo`}
          description={t`For best results, use an SVG file with a transparent
            background.`}
        />
        <ImageUploadWidget name="application-favicon-url" title={t`Favicon`} />
      </SettingsSection>

      <SettingsSection title={t`Fonts`}>
        <FontWidget />
      </SettingsSection>

      <SettingsSection>
        <AdminSettingInput
          name="loading-message"
          title={c(
            "Label for a setting that selects the message shown to users while Metabase is loading",
          ).t`Loading message`}
          inputType="select"
          options={getLoadingMessageOptions()}
        />
      </SettingsSection>
    </SettingsPageWrapper>
  );
}