Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

631 B
Raw Blame
import { Wordmark } from "@editor/components/shared/Wordmark";

interface LoginHeaderProps {
  title: string;
  subtitle?: string;
  centerOnly?: boolean;
}

export default function LoginHeader({
  title,
  subtitle,
  centerOnly = false,
}: LoginHeaderProps) {
  return (
    <div
      className={`login-header${centerOnly ? " login-header-centered" : ""}`}
    >
      <div className="login-header-logos">
        <Wordmark alt="Stirling PDF" className="login-logo-text" />
      </div>
      {title && <h1 className="login-title">{title}</h1>}
      {subtitle && <p className="login-subtitle">{subtitle}</p>}
    </div>
  );
}