From 3760983f4c570b8e0085def9e24cd13c35404890 Mon Sep 17 00:00:00 2001 From: Thom Heymann <190132+thomheymann@users.noreply.github.com> Date: Mon, 25 Mar 2024 21:54:02 +0000 Subject: [PATCH] Implement basic page layout for new landing page (#179327) Resolves #178943 ## :notebook: Summary The observability onboarding page renders the new onboarding page: ![download](https://github.com/elastic/kibana/assets/190132/41f96946-8266-4ce9-9b38-6d2628a4fce0) ## :heavy_check_mark: Acceptance criteria - Basic layout is rendered (header, questions, footer) - User can choose between "Collect and analyze my logs", "Monitor my applications performance", "Monitor my infrastructure" - On hover, additional description is shown. --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../public/application/app.tsx | 5 +- .../experimental_onboarding_flow.tsx | 38 +- .../public/application/footer/demo_icon.svg | 468 ++++++ .../public/application/footer/docs_icon.svg | 285 ++++ .../public/application/footer/footer.tsx | 101 ++ .../public/application/footer/forum_icon.svg | 908 ++++++++++ .../application/footer/integrations_icon.svg | 417 +++++ .../public/application/header/background.svg | 1479 +++++++++++++++++ .../public/application/header/header.tsx | 80 + .../onboarding_flow_form.tsx | 281 ++++ 10 files changed, 4052 insertions(+), 10 deletions(-) create mode 100644 x-pack/plugins/observability_solution/observability_onboarding/public/application/footer/demo_icon.svg create mode 100644 x-pack/plugins/observability_solution/observability_onboarding/public/application/footer/docs_icon.svg create mode 100644 x-pack/plugins/observability_solution/observability_onboarding/public/application/footer/footer.tsx create mode 100644 x-pack/plugins/observability_solution/observability_onboarding/public/application/footer/forum_icon.svg create mode 100644 x-pack/plugins/observability_solution/observability_onboarding/public/application/footer/integrations_icon.svg create mode 100644 x-pack/plugins/observability_solution/observability_onboarding/public/application/header/background.svg create mode 100644 x-pack/plugins/observability_solution/observability_onboarding/public/application/header/header.tsx create mode 100644 x-pack/plugins/observability_solution/observability_onboarding/public/application/onboarding_flow_form/onboarding_flow_form.tsx diff --git a/x-pack/plugins/observability_solution/observability_onboarding/public/application/app.tsx b/x-pack/plugins/observability_solution/observability_onboarding/public/application/app.tsx index 79e356300655e..0301f2b33c2cc 100644 --- a/x-pack/plugins/observability_solution/observability_onboarding/public/application/app.tsx +++ b/x-pack/plugins/observability_solution/observability_onboarding/public/application/app.tsx @@ -181,10 +181,9 @@ export function ObservabilityOnboardingAppRoot({ )} - {experimentalOnboardingFlowEnabled && ( + {experimentalOnboardingFlowEnabled ? ( - )} - {!experimentalOnboardingFlowEnabled && ( + ) : ( )} diff --git a/x-pack/plugins/observability_solution/observability_onboarding/public/application/experimental_onboarding_flow.tsx b/x-pack/plugins/observability_solution/observability_onboarding/public/application/experimental_onboarding_flow.tsx index b99ac495a3e6b..394f933a8aef7 100644 --- a/x-pack/plugins/observability_solution/observability_onboarding/public/application/experimental_onboarding_flow.tsx +++ b/x-pack/plugins/observability_solution/observability_onboarding/public/application/experimental_onboarding_flow.tsx @@ -4,17 +4,41 @@ * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ -import { i18n } from '@kbn/i18n'; import React from 'react'; +import { EuiPageTemplate, EuiSpacer } from '@elastic/eui'; +import { css } from '@emotion/react'; +import backgroundImageUrl from './header/background.svg'; +import { Footer } from './footer/footer'; +import { OnboardingFlowForm } from './onboarding_flow_form/onboarding_flow_form'; +import { Header } from './header/header'; export function ExperimentalOnboardingFlow() { return ( -
- {i18n.translate( - 'xpack.observability_onboarding.experimentalOnboardingFlow.experimentalOnboardingFlowLabel', - { defaultMessage: 'Experimental onboarding flow' } - )} -
+ <> + div { + background-image: url(${backgroundImageUrl}); + background-position: right center; + background-repeat: no-repeat; + } + `} + grow={false} + restrictWidth + > + +
+ + + + + + +