-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Footer to workshop user interface (#551)
- Loading branch information
Showing
7 changed files
with
106 additions
and
22 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,41 @@ | ||
import React, { ReactNode } from 'react'; | ||
import redHatLogo from '@app/bgimages/RedHat-Logo.svg'; | ||
|
||
import './footer.css'; | ||
|
||
const Footer: React.FC<{ rightElement: ReactNode }> = ({ rightElement }) => ( | ||
<section className="footer-component"> | ||
<div className="footer__container"> | ||
<div className="footer__left"> | ||
<a href="https://www.redhat.com"> | ||
<img src={redHatLogo} title="Red Hat" width={138} /> | ||
</a> | ||
</div> | ||
<div id="legal" className="footer__legal"> | ||
<div className="copyright">© 2022 Red Hat, Inc.</div> | ||
<div> | ||
<ul className="menu"> | ||
<li className="first leaf"> | ||
<a href="https://www.redhat.com/en/about/privacy-policy" target="_blank" rel="noreferrer"> | ||
Privacy statement | ||
</a> | ||
</li> | ||
<li className="leaf"> | ||
<a href="https://www.redhat.com/en/about/terms-use" target="_blank" rel="noreferrer"> | ||
Terms of use | ||
</a> | ||
</li> | ||
<li className="leaf"> | ||
<a href="https://www.redhat.com/en/about/all-policies-guidelines" target="_blank" rel="noreferrer"> | ||
All policies and guidelines | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div className="footer__right">{rightElement ? rightElement : null}</div> | ||
</div> | ||
</section> | ||
); | ||
|
||
export default Footer; |
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,40 @@ | ||
.footer-component { | ||
background-color: #1a1a1a; | ||
margin-top: auto; | ||
} | ||
.footer__container { | ||
max-width: 1140px; | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
margin: 0 auto; | ||
padding: var(--pf-global--spacer--md) 0; | ||
} | ||
.footer__legal { | ||
flex: 1 0 60%; | ||
line-height: 2; | ||
align-items: center; | ||
justify-content: center; | ||
color: #aaa; | ||
font-size: 12px; | ||
display: flex; | ||
flex-direction: row; | ||
gap: var(--pf-global--spacer--xl); | ||
} | ||
.footer__legal ul { | ||
display: flex; | ||
flex-direction: row; | ||
gap: var(--pf-global--spacer--md); | ||
} | ||
.footer__legal a { | ||
text-decoration: underline; | ||
color: #aaa; | ||
} | ||
.footer__legal a:after { | ||
content: '|'; | ||
display: inline-block; | ||
margin-left: var(--pf-global--spacer--md); | ||
} | ||
.footer__legal li:last-child a:after { | ||
display: none; | ||
} |