Files
zeekay 9d66337dec Show the brand as the Hanzo eSign wordmark alone, under hanzo.ai's bar
The wordmark was an SVG that guessed its own width, and clipped the name
to "Hanzo Sigı". It is now text: NEXT_PUBLIC_APP_NAME, "Hanzo eSign" by
default, measured by the browser and sized by the caller, with no mark in
front of it anywhere. The mobile menu and the public profile header drew
the upstream Documenso logo; the emails and the sealed PDF's certificate
and audit log drew it too, from static/logo.png, which is now the
wordmark set in Zen.

The app header is hanzo.ai's: the wordmark at the left, quiet nav, pill
controls at the right, a hairline under it. A visitor without a session
sees the same bar with the wordmark alone, and a footer with the
copyright and hanzo.ai's terms and privacy policy, on sign-in, the other
unauthenticated pages, a recipient's completion and result pages and
public profiles. The signing pages keep their own bar, which now shows
the wordmark at every width.
2026-10-20 12:47:20 -07:00

25 lines
787 B
TypeScript

import type { HTMLAttributes } from 'react';
import { cn } from '@hanzo/esign-ui/lib/utils';
import { appName } from '~/components/branding/brand';
export type BrandingLogoProps = HTMLAttributes<HTMLSpanElement>;
/**
* The wordmark, and nothing in front of it: the app's name set as text, as hanzo.ai sets
* its own. Text rather than an SVG so it is measured by the browser and never clipped,
* whatever the tenant's name (NEXT_PUBLIC_APP_NAME). It takes its colour from the parent
* and its size from the caller's text-* class.
*/
export const BrandingLogo = ({ className, ...props }: BrandingLogoProps) => {
return (
<span
className={cn('whitespace-nowrap font-semibold tracking-[-0.02em]', className)}
{...props}
>
{appName()}
</span>
);
};