Skip to content

Commit 216e8f3

Browse files
authored
chore: added banner to homepage with a link to new v5 page (#3572)
* chore: added banner to homepage with a link to new v5 page * fix(homebanner): Made adjustments to styling, added sticky element
1 parent 6a14e6f commit 216e8f3

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

packages/documentation-framework/templates/mdx.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ws-page-content-router {
22
display: flex;
33
flex-direction: column;
4-
height: 100%;
4+
flex-shrink: 0;
55
}
66

77
.ws-release-notes-toc {

packages/v4/patternfly-docs/pages/home.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,3 +221,7 @@
221221
.fadeInFour {
222222
animation-delay: 1.4s;
223223
}
224+
225+
.pf4-banner-link{
226+
white-space: nowrap;
227+
}

packages/v4/patternfly-docs/pages/home.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ const patternFlyPrinciples = 'Flyer fundamentals';
2828

2929
const HomePage = () => (
3030
<React.Fragment>
31+
<PageSection variant={PageSectionVariants.light} stickyOnBreakpoint={{ default: 'top' }} className="pf-u-font-size-lg">
32+
PatternFly 5 is live! Visit the website for new design, code samples, and documentation. <a href="https://www.patternfly.org/" class="pf4-banner-link pf-u-font-weight-bold">Go to PatternFly 5 <ArrowRightIcon /></a>
33+
</PageSection>
3134
<PageSection variant={PageSectionVariants.light} className="pf4-c-background-image ws-homepage-main-section">
3235
<Grid>
3336
<GridItem sm={12} md={8} mdOffset={2} lg={6} lgOffset={3} className="pf-u-py-2xl pf-u-text-align-center">

0 commit comments

Comments
 (0)