-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement basic page layout for new landing page (#179327)
Resolves #178943 ## 📓 Summary The observability onboarding page renders the new onboarding page:  ## ✔️ 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 <[email protected]>
- Loading branch information
1 parent
a3c9ed6
commit 3760983
Showing
10 changed files
with
4,052 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
468 changes: 468 additions & 0 deletions
468
...ility_solution/observability_onboarding/public/application/footer/demo_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
285 changes: 285 additions & 0 deletions
285
...ility_solution/observability_onboarding/public/application/footer/docs_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 101 additions & 0 deletions
101
...gins/observability_solution/observability_onboarding/public/application/footer/footer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 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 type { FunctionComponent } from 'react'; | ||
import { | ||
EuiSpacer, | ||
EuiFlexGroup, | ||
EuiFlexItem, | ||
EuiAvatar, | ||
EuiText, | ||
EuiLink, | ||
} from '@elastic/eui'; | ||
import integrationsIconUrl from './integrations_icon.svg'; | ||
import demoIconUrl from './demo_icon.svg'; | ||
import docsIconUrl from './docs_icon.svg'; | ||
import forumIconUrl from './forum_icon.svg'; | ||
|
||
export const Footer: FunctionComponent = () => { | ||
const sections = [ | ||
{ | ||
iconUrl: integrationsIconUrl, | ||
title: i18n.translate( | ||
'xpack.observability_onboarding.experimentalOnboardingFlow.dataSourcesFlexItemLabel', | ||
{ defaultMessage: 'Data sources' } | ||
), | ||
description: | ||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod', | ||
}, | ||
{ | ||
iconUrl: demoIconUrl, | ||
title: i18n.translate( | ||
'xpack.observability_onboarding.experimentalOnboardingFlow.demoEnvironmentFlexItemLabel', | ||
{ defaultMessage: 'Demo environment' } | ||
), | ||
description: | ||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod', | ||
}, | ||
{ | ||
iconUrl: docsIconUrl, | ||
title: i18n.translate( | ||
'xpack.observability_onboarding.experimentalOnboardingFlow.exploreForumFlexItemLabel', | ||
{ defaultMessage: 'Explore forum' } | ||
), | ||
description: | ||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod', | ||
}, | ||
{ | ||
iconUrl: forumIconUrl, | ||
title: i18n.translate( | ||
'xpack.observability_onboarding.experimentalOnboardingFlow.browseDocumentationFlexItemLabel', | ||
{ defaultMessage: 'Browse documentation' } | ||
), | ||
description: | ||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod', | ||
}, | ||
]; | ||
|
||
return ( | ||
<EuiFlexGroup> | ||
{sections.map((section, index) => ( | ||
<EuiFlexItem key={index}> | ||
<EuiAvatar | ||
size="l" | ||
name="" | ||
imageUrl={section.iconUrl} | ||
color="subdued" | ||
/> | ||
<EuiSpacer size="m" /> | ||
<EuiText size="s"> | ||
<strong>{section.title}</strong> | ||
</EuiText> | ||
<EuiSpacer size="s" /> | ||
<EuiText size="xs"> | ||
<p>{section.description}</p> | ||
</EuiText> | ||
<EuiSpacer size="s" /> | ||
<EuiText size="xs"> | ||
<p> | ||
<EuiLink | ||
data-test-subj="observabilityOnboardingFooterLearnMoreLink" | ||
href="#/navigation/link" | ||
external | ||
> | ||
{i18n.translate( | ||
'xpack.observability_onboarding.footer.learnMoreLinkLabel', | ||
{ defaultMessage: 'Learn more' } | ||
)} | ||
</EuiLink> | ||
</p> | ||
</EuiText> | ||
</EuiFlexItem> | ||
))} | ||
</EuiFlexGroup> | ||
); | ||
}; |
Oops, something went wrong.