mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Adding a drop shadow to cards on guided onboarding landing page:  **Notes:** From the [docs](https://elastic.github.io/eui/#/display/card), setting the `display` value removes the shadow. So I removed that and I tried to use `$euiTheme` vars but there was no color that matched the subdued one (`subduedText` and `lightestShade` were all too dark), so I made this as an inline style, let me know if you think it should be done differently.
This commit is contained in:
parent
72db89a777
commit
e6cbfac277
3 changed files with 133 additions and 143 deletions
|
@ -86,7 +86,6 @@ export const UseCaseCard = ({
|
|||
|
||||
return (
|
||||
<EuiCard
|
||||
display="subdued"
|
||||
image={<EuiImage src={getImageUrl(useCase)} alt={constants[useCase].logAltText} />}
|
||||
title={titleElement}
|
||||
description={description}
|
||||
|
|
|
@ -7,109 +7,104 @@ exports[`getting started should render getting started component 1`] = `
|
|||
>
|
||||
<_EuiPageSection
|
||||
alignment="center"
|
||||
>
|
||||
<EuiPanel
|
||||
color="plain"
|
||||
css={
|
||||
Object {
|
||||
"map": undefined,
|
||||
"name": "hdi05h",
|
||||
"next": undefined,
|
||||
"styles": "
|
||||
css={
|
||||
Object {
|
||||
"map": undefined,
|
||||
"name": "hdi05h",
|
||||
"next": undefined,
|
||||
"styles": "
|
||||
padding: calc(16px*3) calc(16px*4);
|
||||
",
|
||||
"toString": [Function],
|
||||
}
|
||||
"toString": [Function],
|
||||
}
|
||||
data-test-subj="onboarding--landing-page"
|
||||
hasShadow={true}
|
||||
}
|
||||
data-test-subj="onboarding--landing-page"
|
||||
>
|
||||
<EuiTitle
|
||||
className="eui-textCenter"
|
||||
size="l"
|
||||
>
|
||||
<EuiTitle
|
||||
className="eui-textCenter"
|
||||
size="l"
|
||||
<h1>
|
||||
What would you like to do first?
|
||||
</h1>
|
||||
</EuiTitle>
|
||||
<EuiSpacer
|
||||
size="s"
|
||||
/>
|
||||
<EuiText
|
||||
size="m"
|
||||
textAlign="center"
|
||||
>
|
||||
<p>
|
||||
Select a guide to help you make the most of your data.
|
||||
</p>
|
||||
</EuiText>
|
||||
<EuiSpacer
|
||||
size="s"
|
||||
/>
|
||||
<EuiSpacer
|
||||
size="xxl"
|
||||
/>
|
||||
<EuiFlexGrid
|
||||
columns={4}
|
||||
gutterSize="l"
|
||||
>
|
||||
<EuiFlexItem
|
||||
key="guideCard-search"
|
||||
>
|
||||
<h1>
|
||||
What would you like to do first?
|
||||
</h1>
|
||||
</EuiTitle>
|
||||
<EuiSpacer
|
||||
size="s"
|
||||
/>
|
||||
<EuiText
|
||||
size="m"
|
||||
textAlign="center"
|
||||
<GuideCard
|
||||
activateGuide={[Function]}
|
||||
addBasePath={[Function]}
|
||||
guides={Array []}
|
||||
isDarkTheme={false}
|
||||
useCase="search"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem
|
||||
key="guideCard-observability"
|
||||
>
|
||||
<p>
|
||||
Select a guide to help you make the most of your data.
|
||||
</p>
|
||||
</EuiText>
|
||||
<EuiSpacer
|
||||
size="s"
|
||||
/>
|
||||
<EuiSpacer
|
||||
size="xxl"
|
||||
/>
|
||||
<EuiFlexGrid
|
||||
columns={4}
|
||||
gutterSize="l"
|
||||
<GuideCard
|
||||
activateGuide={[Function]}
|
||||
addBasePath={[Function]}
|
||||
guides={Array []}
|
||||
isDarkTheme={false}
|
||||
useCase="observability"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem
|
||||
key="linkCard-observabilityLink"
|
||||
>
|
||||
<EuiFlexItem
|
||||
key="guideCard-search"
|
||||
>
|
||||
<GuideCard
|
||||
activateGuide={[Function]}
|
||||
addBasePath={[Function]}
|
||||
guides={Array []}
|
||||
isDarkTheme={false}
|
||||
useCase="search"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem
|
||||
key="guideCard-observability"
|
||||
>
|
||||
<GuideCard
|
||||
activateGuide={[Function]}
|
||||
addBasePath={[Function]}
|
||||
guides={Array []}
|
||||
isDarkTheme={false}
|
||||
useCase="observability"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem
|
||||
key="linkCard-observabilityLink"
|
||||
>
|
||||
<ObservabilityLinkCard
|
||||
addBasePath={[Function]}
|
||||
isDarkTheme={false}
|
||||
navigateToApp={[MockFunction]}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem
|
||||
key="guideCard-security"
|
||||
>
|
||||
<GuideCard
|
||||
activateGuide={[Function]}
|
||||
addBasePath={[Function]}
|
||||
guides={Array []}
|
||||
isDarkTheme={false}
|
||||
useCase="security"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGrid>
|
||||
<EuiSpacer />
|
||||
<EuiHorizontalRule />
|
||||
<EuiSpacer />
|
||||
<div
|
||||
className="eui-textCenter"
|
||||
<ObservabilityLinkCard
|
||||
addBasePath={[Function]}
|
||||
isDarkTheme={false}
|
||||
navigateToApp={[MockFunction]}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
<EuiFlexItem
|
||||
key="guideCard-security"
|
||||
>
|
||||
<EuiLink
|
||||
data-test-subj="onboarding--skipGuideLink"
|
||||
onClick={[Function]}
|
||||
>
|
||||
I’d like to do something else (skip)
|
||||
</EuiLink>
|
||||
</div>
|
||||
</EuiPanel>
|
||||
<GuideCard
|
||||
activateGuide={[Function]}
|
||||
addBasePath={[Function]}
|
||||
guides={Array []}
|
||||
isDarkTheme={false}
|
||||
useCase="security"
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGrid>
|
||||
<EuiSpacer />
|
||||
<EuiHorizontalRule />
|
||||
<EuiSpacer />
|
||||
<div
|
||||
className="eui-textCenter"
|
||||
>
|
||||
<EuiLink
|
||||
data-test-subj="onboarding--skipGuideLink"
|
||||
onClick={[Function]}
|
||||
>
|
||||
I’d like to do something else (skip)
|
||||
</EuiLink>
|
||||
</div>
|
||||
</_EuiPageSection>
|
||||
</_KibanaPageTemplate>
|
||||
`;
|
||||
|
|
|
@ -15,7 +15,6 @@ import {
|
|||
EuiLink,
|
||||
EuiLoadingSpinner,
|
||||
EuiPageTemplate,
|
||||
EuiPanel,
|
||||
EuiSpacer,
|
||||
EuiText,
|
||||
EuiTitle,
|
||||
|
@ -182,58 +181,55 @@ export const GettingStarted = () => {
|
|||
|
||||
return (
|
||||
<KibanaPageTemplate panelled={false} grow>
|
||||
<EuiPageTemplate.Section alignment="center">
|
||||
<EuiPanel
|
||||
color="plain"
|
||||
hasShadow
|
||||
css={paddingCss}
|
||||
data-test-subj="onboarding--landing-page"
|
||||
>
|
||||
<EuiTitle size="l" className="eui-textCenter">
|
||||
<h1>{title}</h1>
|
||||
</EuiTitle>
|
||||
<EuiSpacer size="s" />
|
||||
<EuiText size="m" textAlign="center">
|
||||
<p>{subtitle}</p>
|
||||
</EuiText>
|
||||
<EuiSpacer size="s" />
|
||||
<EuiSpacer size="xxl" />
|
||||
<EuiFlexGrid columns={4} gutterSize="l">
|
||||
{['search', 'observability', 'observabilityLink', 'security'].map((useCase) => {
|
||||
if (useCase === 'observabilityLink') {
|
||||
return (
|
||||
<EuiFlexItem key={`linkCard-${useCase}`}>
|
||||
<ObservabilityLinkCard
|
||||
navigateToApp={application.navigateToApp}
|
||||
isDarkTheme={isDarkTheme}
|
||||
addBasePath={http.basePath.prepend}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
);
|
||||
}
|
||||
<EuiPageTemplate.Section
|
||||
alignment="center"
|
||||
css={paddingCss}
|
||||
data-test-subj="onboarding--landing-page"
|
||||
>
|
||||
<EuiTitle size="l" className="eui-textCenter">
|
||||
<h1>{title}</h1>
|
||||
</EuiTitle>
|
||||
<EuiSpacer size="s" />
|
||||
<EuiText size="m" textAlign="center">
|
||||
<p>{subtitle}</p>
|
||||
</EuiText>
|
||||
<EuiSpacer size="s" />
|
||||
<EuiSpacer size="xxl" />
|
||||
<EuiFlexGrid columns={4} gutterSize="l">
|
||||
{['search', 'observability', 'observabilityLink', 'security'].map((useCase) => {
|
||||
if (useCase === 'observabilityLink') {
|
||||
return (
|
||||
<EuiFlexItem key={`guideCard-${useCase}`}>
|
||||
<GuideCard
|
||||
useCase={useCase as UseCase}
|
||||
guides={guidesState}
|
||||
activateGuide={activateGuide}
|
||||
<EuiFlexItem key={`linkCard-${useCase}`}>
|
||||
<ObservabilityLinkCard
|
||||
navigateToApp={application.navigateToApp}
|
||||
isDarkTheme={isDarkTheme}
|
||||
addBasePath={http.basePath.prepend}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
);
|
||||
})}
|
||||
</EuiFlexGrid>
|
||||
<EuiSpacer />
|
||||
<EuiHorizontalRule />
|
||||
<EuiSpacer />
|
||||
<div className="eui-textCenter">
|
||||
{/* data-test-subj used for FS tracking */}
|
||||
<EuiLink onClick={onSkip} data-test-subj="onboarding--skipGuideLink">
|
||||
{skipText}
|
||||
</EuiLink>
|
||||
</div>
|
||||
</EuiPanel>
|
||||
}
|
||||
return (
|
||||
<EuiFlexItem key={`guideCard-${useCase}`}>
|
||||
<GuideCard
|
||||
useCase={useCase as UseCase}
|
||||
guides={guidesState}
|
||||
activateGuide={activateGuide}
|
||||
isDarkTheme={isDarkTheme}
|
||||
addBasePath={http.basePath.prepend}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
);
|
||||
})}
|
||||
</EuiFlexGrid>
|
||||
<EuiSpacer />
|
||||
<EuiHorizontalRule />
|
||||
<EuiSpacer />
|
||||
<div className="eui-textCenter">
|
||||
{/* data-test-subj used for FS tracking */}
|
||||
<EuiLink onClick={onSkip} data-test-subj="onboarding--skipGuideLink">
|
||||
{skipText}
|
||||
</EuiLink>
|
||||
</div>
|
||||
</EuiPageTemplate.Section>
|
||||
</KibanaPageTemplate>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue