mirror of
https://github.com/andwati/dokploy.git
synced 2026-12-01 07:28:45 +00:00
feat: interactive feature showcase on the signup panel
Replaces the static quote in the onboarding layout's left panel with an auto-rotating carousel of product highlights (Deploy / Manage / Scale, 3 slides x 4 items), shown on the cloud signup page only. - OnboardingLayout gets an optional leftPanel override, default quote untouched everywhere else (login, invitation, password reset). - Auto-advances every 6s, pauses on hover/focus, respects prefers-reduced-motion, manual dot + arrow navigation. - Copy pulled from the website's existing first-features.tsx section to stay consistent with approved marketing copy.
This commit is contained in:
@@ -8,8 +8,10 @@ import { Button } from "../ui/button";
|
||||
|
||||
interface Props {
|
||||
children: React.ReactNode;
|
||||
/** Overrides the default quote in the left panel (desktop only). */
|
||||
leftPanel?: React.ReactNode;
|
||||
}
|
||||
export const OnboardingLayout = ({ children }: Props) => {
|
||||
export const OnboardingLayout = ({ children, leftPanel }: Props) => {
|
||||
const { config: whitelabeling } = useWhitelabelingPublic();
|
||||
const appName = whitelabeling?.appName || "Dokploy";
|
||||
const appDescription =
|
||||
@@ -30,9 +32,11 @@ export const OnboardingLayout = ({ children }: Props) => {
|
||||
{appName}
|
||||
</Link>
|
||||
<div className="relative z-20 mt-auto">
|
||||
<blockquote className="space-y-2">
|
||||
<p className="text-lg text-primary">{appDescription}</p>
|
||||
</blockquote>
|
||||
{leftPanel ?? (
|
||||
<blockquote className="space-y-2">
|
||||
<p className="text-lg text-primary">{appDescription}</p>
|
||||
</blockquote>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex min-h-svh w-full flex-col">
|
||||
|
||||
Reference in New Issue
Block a user