Skip to content

Commit

Permalink
fix(about): card grid
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-ronaldson committed Nov 20, 2024
1 parent 8924586 commit 740592a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,68 +263,6 @@ export const SideNavLayout = ({ children, groupedRoutes, navOpen: navOpenProp })
const SideBar = (
<PageSidebar>
<PageSidebarBody>
{hasVersionSwitcher && (
<ToolbarItem>
<Dropdown
onSelect={() => setDropdownOpen(!isDropdownOpen)}
onOpenChange={(isOpen) => setDropdownOpen(isOpen)}
isOpen={isDropdownOpen}
toggle={(toggleRef) => (
<MenuToggle
ref={toggleRef}
onClick={() => setDropdownOpen(!isDropdownOpen)}
isExpanded={isDropdownOpen}
>
Release 6.0.0
</MenuToggle>
)}
popperProps={{ position: 'right' }}
>
<DropdownGroup key="Latest" label="Latest">
<DropdownList>{getDropdownItem(latestVersion, true)}</DropdownList>
</DropdownGroup>
{previousReleases.length > 0 && (
<DropdownGroup key="Previous releases" label="Previous releases">
<DropdownList>
{previousReleases.slice(0, 3).map((version) => getDropdownItem(version))}
</DropdownList>
</DropdownGroup>
)}
<Divider key="divider1" />
<DropdownGroup key="Previous versions" label="Previous versions">
<DropdownList>
<DropdownItem
key="PatternFly 5"
className="ws-patternfly-versions"
isExternalLink
to="https://v5-archive.patternfly.org/"
itemId="patternfly-5"
>
PatternFly 5
</DropdownItem>
<DropdownItem
key="PatternFly 4"
className="ws-patternfly-versions"
isExternalLink
to="http://v4-archive.patternfly.org/v4/"
itemId="patternfly-4"
>
PatternFly 4
</DropdownItem>
<DropdownItem
key="PatternFly 3"
className="ws-patternfly-versions"
isExternalLink
to="https://pf3.patternfly.org/"
itemId="patternfly-3"
>
PatternFly 3
</DropdownItem>
</DropdownList>
</DropdownGroup>
</Dropdown>
</ToolbarItem>
)}
<SideNav navItems={sideNavItems} groupedRoutes={groupedRoutes} />
</PageSidebarBody>
</PageSidebar>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ PatternFly's foundations create a strong base for the rest of the design system

PatternFly’s core elements are what you will work directly with when building a UI.

<Grid hasGutter>
<GridItem span={6}>
<Grid sm={12} md={4} hasGutter className="pf-v5-u-my-lg pf-v5-u-text-align-center ws-building-grid">

<Card isClickable isCompact isFullHeight>
<CardHeader
selectableActions={{
Expand All @@ -70,9 +70,7 @@ PatternFly’s core elements are what you will work directly with when building
</CardHeader>
<CardBody> Flexible, modular, building blocks that you can mix and match to create UIs. </CardBody>
</Card>
</GridItem>

<GridItem span={6}>
<Card isClickable isCompact isFullHeight>
<CardHeader
selectableActions={{
Expand All @@ -84,9 +82,7 @@ PatternFly’s core elements are what you will work directly with when building
</CardHeader>
<CardBody> Different methods for arranging components for different screen sizes and content presentations. </CardBody>
</Card>
</GridItem>

<GridItem span={6}>
<Card isClickable isCompact isFullHeight>
<CardHeader
selectableActions={{
Expand All @@ -98,9 +94,7 @@ PatternFly’s core elements are what you will work directly with when building
</CardHeader>
<CardBody> Different methods to present data visualizations. </CardBody>
</Card>
</GridItem>

<GridItem span={6}>
<Card isClickable isCompact isFullHeight>
<CardHeader
selectableActions={{
Expand All @@ -112,7 +106,6 @@ PatternFly’s core elements are what you will work directly with when building
</CardHeader>
<CardBody> Reusable solutions that utilize multiple PatternFly components for cross-project use cases. </CardBody>
</Card>
</GridItem>
</Grid>

### Guidance
Expand Down

0 comments on commit 740592a

Please sign in to comment.