Skip to content

Commit

Permalink
simplify layout on homepage
Browse files Browse the repository at this point in the history
Signed-off-by: kgcreative <[email protected]>
  • Loading branch information
kgcreative committed Dec 9, 2024
1 parent 143a5e5 commit 2dee875
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 36 deletions.
12 changes: 11 additions & 1 deletion src-docs/src/components/guide_components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,17 @@ body {
}
}

.guideHomePage__blockformContainer {
.guideHomePage__benefitsContainer, .guideHomePage__featuredComponents {
padding-left: $ouiSizeL;
padding-right: $ouiSizeL;
}
.guideHomePage__benefitsContainer {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: $ouiSizeL;
}

.guideHomePage__featuredComponents {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: $ouiSizeL;
Expand Down
64 changes: 29 additions & 35 deletions src-docs/src/views/home/home_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,42 +85,36 @@ export const HomeView = () => (
</OuiFlexItem>
</OuiFlexGroup>
</OuiPanel>
<OuiSpacer size="xxl" />
<OuiFlexGrid columns={3}>
<OuiFlexItem>
<OuiCard
icon={<OuiIcon size="l" type="accessibility" />}
layout="horizontal"
display="plain"
titleSize="xs"
title="Accessible to everyone"
description="Uses high contrast, color-blind safe palettes and tested with most
<OuiSpacer size="xl" />
<div className="guideHomePage__benefitsContainer">
<OuiCard
icon={<OuiIcon size="l" type="accessibility" />}
layout="horizontal"
display="plain"
titleSize="xs"
title="Accessible to everyone"
description="Uses high contrast, color-blind safe palettes and tested with most
assistive technology."
/>
</OuiFlexItem>
<OuiFlexItem>
<OuiCard
icon={<OuiIcon size="l" type="controlsHorizontal" />}
layout="horizontal"
display="plain"
titleSize="xs"
title="Flexible and composable"
description="Configurable enough to meet the needs of a wide array of contexts while maintaining brand and low-level consistency."
/>
</OuiFlexItem>
<OuiFlexItem>
<OuiCard
icon={<OuiIcon size="l" type="documentEdit" />}
layout="horizontal"
display="plain"
titleSize="xs"
title="Well documented and tested"
description="Code is friendly to the novice and expert alike."
/>
</OuiFlexItem>
</OuiFlexGrid>
<OuiSpacer size="xxl" />
<div className="guideHomePage__blockformContainer">
/>
<OuiCard
icon={<OuiIcon size="l" type="controlsHorizontal" />}
layout="horizontal"
display="plain"
titleSize="xs"
title="Flexible and composable"
description="Configurable enough to meet the needs of a wide array of contexts while maintaining brand and low-level consistency."
/>
<OuiCard
icon={<OuiIcon size="l" type="documentEdit" />}
layout="horizontal"
display="plain"
titleSize="xs"
title="Well documented and tested"
description="Code is friendly to the novice and expert alike."
/>
</div>
<OuiSpacer size="xl" />
<div className="guideHomePage__featuredComponents">
<OuiCard
hasBorder
href="#/navigation/button"
Expand Down

0 comments on commit 2dee875

Please sign in to comment.