diff --git a/apps/web/modules/onboarding/organization/brand/organization-brand-view.tsx b/apps/web/modules/onboarding/organization/brand/organization-brand-view.tsx index 708f6b36bf..6868e24e86 100644 --- a/apps/web/modules/onboarding/organization/brand/organization-brand-view.tsx +++ b/apps/web/modules/onboarding/organization/brand/organization-brand-view.tsx @@ -7,8 +7,9 @@ import { HexColorPicker } from "react-colorful"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Button } from "@calcom/ui/components/button"; -import { Logo } from "@calcom/ui/components/logo"; +import { OnboardingCard } from "../../personal/_components/OnboardingCard"; +import { OnboardingLayout } from "../../personal/_components/OnboardingLayout"; import { useOnboardingStore } from "../../store/onboarding-store"; type OrganizationBrandViewProps = { @@ -116,70 +117,137 @@ export const OrganizationBrandView = ({ userEmail }: OrganizationBrandViewProps) }; return ( -
- {/* Header */} -
- + + + + + + }> + {/* Form */} +
+
+
+
+ {/* Left side - Form */} +
+ {/* Brand Color */} +
+

{t("brand_color")}

+
+

+ {t("onboarding_primary_color_label")} +

+ { + setBrandColor(value); + setOrganizationBrand({ color: value }); + }} + t={t} + /> +
+
- {/* Progress dots - centered */} -
-
-
-
-
-
+ {/* Logo Upload */} +
+

{t("logo")}

+
+
+ {logoPreview && ( + {t("onboarding_logo_preview_alt")} + )} +
+
+ + handleLogoChange(e.target.files?.[0] || null)} + /> +
+
+

{t("onboarding_logo_size_hint")}

+
-
-

{userEmail}

-
-
- - {/* Main content */} -
-
- {/* Card */} -
-
- {/* Card Header */} -
-
-

{t("onboarding_org_brand_title")}

-

- {t("onboarding_org_brand_subtitle")} -

+ {/* Banner Upload */} +
+

+ {t("onboarding_banner_label")} +

+
+
+ {bannerPreview && ( + {t("onboarding_banner_preview_alt")} + )} +
+
+ + handleBannerChange(e.target.files?.[0] || null)} + /> +
+
+

+ {t("onboarding_banner_size_hint")} +

+
-
- {/* Form */} -
-
-
-
- {/* Left side - Form */} -
- {/* Brand Color */} -
-

{t("brand_color")}

-
-

- {t("onboarding_primary_color_label")} -

- { - setBrandColor(value); - setOrganizationBrand({ color: value }); - }} - t={t} - /> -
-
+ {/* Right side - Preview */} +
+
+

{t("preview")}

+
+ {/* Banner preview */} +
+ {bannerPreview && ( + {t("onboarding_banner_preview_alt")} + )} +
- {/* Logo Upload */} -
-

{t("logo")}

-
-
+ {/* Content */} +
+
+
+ {/* Logo preview */} +
{logoPreview && ( )}
-
- - handleLogoChange(e.target.files?.[0] || null)} - /> +

+ {organizationDetails.name || t("onboarding_preview_nameless")} +

+
+
+
+

+ {t("onboarding_preview_example_title")} +

+

+ {t("onboarding_preview_example_description")} +

-

- {t("onboarding_logo_size_hint")} -

- - {/* Banner Upload */} -
-

{t("onboarding_banner_label")}

-
-
- {bannerPreview && ( - {t("onboarding_banner_preview_alt")} - )} +
+ {[134, 104, 84, 104].map((width, i) => ( +
+
+
-
- - handleBannerChange(e.target.files?.[0] || null)} - /> -
-
-

- {t("onboarding_banner_size_hint")} -

-
-
- - {/* Right side - Preview */} -
-
-

{t("preview")}

-
- {/* Banner preview */} -
- {bannerPreview && ( - {t("onboarding_banner_preview_alt")} - )} -
- - {/* Content */} -
-
-
- {/* Logo preview */} -
- {logoPreview && ( - {t("onboarding_logo_preview_alt")} - )} -
-

- {organizationDetails.name || t("onboarding_preview_nameless")} -

-
-
-
-

- {t("onboarding_preview_example_title")} -

-

- {t("onboarding_preview_example_description")} -

-
-
-
-
- {[134, 104, 84, 104].map((width, i) => ( -
-
-
-
- ))} -
-
-
+ ))}
- - {/* Footer */} -
- - -
-
-
+ + ); }; diff --git a/apps/web/modules/onboarding/organization/details/organization-details-view.tsx b/apps/web/modules/onboarding/organization/details/organization-details-view.tsx index be4e22b223..be492a3a40 100644 --- a/apps/web/modules/onboarding/organization/details/organization-details-view.tsx +++ b/apps/web/modules/onboarding/organization/details/organization-details-view.tsx @@ -6,9 +6,9 @@ import { useEffect, useState } from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { Button } from "@calcom/ui/components/button"; import { Label, TextField, TextArea } from "@calcom/ui/components/form"; -import { Logo } from "@calcom/ui/components/logo"; -import { OnboardingContinuationPrompt } from "../../components/onboarding-continuation-prompt"; +import { OnboardingCard } from "../../personal/_components/OnboardingCard"; +import { OnboardingLayout } from "../../personal/_components/OnboardingLayout"; import { useOnboardingStore } from "../../store/onboarding-store"; import { ValidatedOrganizationSlug } from "./validated-organization-slug"; @@ -76,101 +76,64 @@ export const OrganizationDetailsView = ({ userEmail }: OrganizationDetailsViewPr }; return ( -
- {/* Header */} -
- + + + {t("continue")} + + }> + {/* Form */} +
+
+
+
+
+ {/* Organization Name */} +
+ + setOrganizationName(e.target.value)} + placeholder={t("organization_name")} + className="border-default h-7 rounded-[10px] border px-2 py-1.5 text-sm" + /> +
- {/* Progress dots - centered */} -
-
-
-
-
-
+ {/* Organization Link */} + -
-

{userEmail}

-
-
- - {/* Main content */} -
-
- {/* Card */} -
-
- {/* Card Header */} -
-
-

- {t("onboarding_org_details_title")} -

-

- {t("onboarding_org_details_subtitle")} -

-
-
- - {/* Form */} -
-
-
-
-
- {/* Organization Name */} -
- - setOrganizationName(e.target.value)} - placeholder={t("organization_name")} - className="border-default h-7 rounded-[10px] border px-2 py-1.5 text-sm" - /> -
- - {/* Organization Link */} - - - {/* Organization Bio */} -
- -