Files
Stirling-PDF/frontend/shared/auth/ui/loginSlideText.ts
T
James Brunton 1816bad1ba Unified auth for portal and editor (#6725)
# Description of Changes
Refactor frontend auth to the shared folder and hook it up to both the
portal and editor so they share the same system. Also adds various tasks
to help run the portal, including `task dev:portal` to spawn the portal
with the backend, and `task dev:portal:proxy` to spawn the editor,
portal and backend, and a reverse proxy (at localhost:3000) to allow you
to use both at once to simulate how this will actually be deployed,
allowing you to check whether the seamless transition between the two
actually works.
2026-06-22 16:22:36 +00:00

57 lines
1.9 KiB
TypeScript

import { defaultTranslate, type AuthTranslate } from "@shared/auth/types";
export type LoginSlideText = {
alt: string;
title: string;
subtitle: string;
};
/**
* Shared carousel copy (i18n-optional, English default). The editor and portal
* both build their slides from this so the text stays in sync; only the images
* differ (the editor swaps the hero for its logo-variant image). Order matches
* buildDefaultLoginSlides: [overview, edit, secure].
*
* Kept image-free on purpose: the editor imports this without dragging the
* bundled slide images into its build.
*/
export function loginSlideText(
translate: AuthTranslate = defaultTranslate,
): LoginSlideText[] {
return [
{
alt: translate("login.slides.overview.alt", "Stirling PDF overview"),
title: translate(
"login.slides.overview.title",
"Your one-stop-shop for all your PDF needs.",
),
subtitle: translate(
"login.slides.overview.subtitle",
"A privacy-first cloud suite for PDFs that lets you convert, sign, redact, and manage documents, along with 50+ other powerful tools.",
),
},
{
alt: translate("login.slides.edit.alt", "Edit PDFs"),
title: translate(
"login.slides.edit.title",
"Edit PDFs to display/secure the information you want",
),
subtitle: translate(
"login.slides.edit.subtitle",
"With over a dozen tools to help you redact, sign, read and manipulate PDFs, you will be sure to find what you are looking for.",
),
},
{
alt: translate("login.slides.secure.alt", "Secure PDFs"),
title: translate(
"login.slides.secure.title",
"Protect sensitive information in your PDFs",
),
subtitle: translate(
"login.slides.secure.subtitle",
"Add passwords, redact content, and manage certificates with ease.",
),
},
];
}