From 75d6498763265b14090d9e11212845be99a11128 Mon Sep 17 00:00:00 2001 From: anmolsinghbhatia Date: Tue, 2 May 2023 18:27:22 +0530 Subject: [PATCH] style: onboarding logo --- apps/app/components/onboarding/index.ts | 3 +- .../components/onboarding/onboarding-logo.tsx | 29 +++++++++++++++++++ apps/app/pages/onboarding.tsx | 14 +++++---- 3 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 apps/app/components/onboarding/onboarding-logo.tsx diff --git a/apps/app/components/onboarding/index.ts b/apps/app/components/onboarding/index.ts index 4708aaaf8..af0951109 100644 --- a/apps/app/components/onboarding/index.ts +++ b/apps/app/components/onboarding/index.ts @@ -1,4 +1,5 @@ export * from "./invite-members"; export * from "./onboarding-card"; export * from "./user-details"; -export * from "./workspace"; \ No newline at end of file +export * from "./workspace"; +export * from "./onboarding-logo"; diff --git a/apps/app/components/onboarding/onboarding-logo.tsx b/apps/app/components/onboarding/onboarding-logo.tsx new file mode 100644 index 000000000..4c4386267 --- /dev/null +++ b/apps/app/components/onboarding/onboarding-logo.tsx @@ -0,0 +1,29 @@ +import React from "react"; + +type Props = { + className?: string; + width?: string | number; + height?: string | number; + color?: string; +}; + +export const OnboardingLogo: React.FC = ({ + width = "378", + height = "117", + color = "#858E96", + className, +}) => ( + + + + + + +); diff --git a/apps/app/pages/onboarding.tsx b/apps/app/pages/onboarding.tsx index 0536a40b8..3891dba50 100644 --- a/apps/app/pages/onboarding.tsx +++ b/apps/app/pages/onboarding.tsx @@ -13,13 +13,17 @@ import useUser from "hooks/use-user"; import DefaultLayout from "layouts/default-layout"; import { UserAuthorizationLayout } from "layouts/auth-layout/user-authorization-wrapper"; // components -import { InviteMembers, OnboardingCard, UserDetails, Workspace } from "components/onboarding"; +import { + InviteMembers, + OnboardingCard, + OnboardingLogo, + UserDetails, + Workspace, +} from "components/onboarding"; // ui import { PrimaryButton } from "components/ui"; // constant import { ONBOARDING_CARDS } from "constants/workspace"; -// images -import Logo from "public/onboarding/logo.svg"; // types import type { NextPage } from "next"; import { ICurrentUserResponse } from "types"; @@ -42,8 +46,8 @@ const Onboarding: NextPage = () => {
{step <= 3 ? (
-
- Plane Logo +
+
{step === 1 ? (