Skip to content

Commit

Permalink
Merge pull request #4 from CUCWD/feature.maple/ztraboo/setup-footer-c…
Browse files Browse the repository at this point in the history
…urf-copyright

Apply new CURF copyright in footer.
  • Loading branch information
ztraboo authored Feb 27, 2023
2 parents 69ff8a4 + 424af40 commit 5ae9c0c
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 8 deletions.
11 changes: 9 additions & 2 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ class SiteFooter extends React.Component {
intl,
} = this.props;
const showLanguageSelector = supportedLanguages.length > 0 && onLanguageSelected;
const copyrightName = getConfig().COPYRIGHT_NAME || 'Clemson University';
const currentYear = new Date().getFullYear();

return (
<footer
role="contentinfo"
className="footer d-flex border-top py-3 px-4"
className="footer border-top py-3 px-4"
>
<div className="container-fluid d-flex">
<div className="container-fluid d-flex flex-wrap py-3">
<a
className="d-block"
href="https://open.edx.org"
Expand All @@ -75,6 +77,11 @@ class SiteFooter extends React.Component {
/>
)}
</div>
<div className="container-fluid d-flex flex-wrap border-top py-3 px-4">
<p className="copyright d-block">
Copyright © {copyrightName} {currentYear}. All Rights Reserved.
</p>
</div>
</footer>
);
}
Expand Down
51 changes: 45 additions & 6 deletions src/components/__snapshots__/Footer.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

exports[`<Footer /> renders correctly renders with a language selector 1`] = `
<footer
className="footer d-flex border-top py-3 px-4"
className="footer border-top py-3 px-4"
role="contentinfo"
>
<div
className="container-fluid d-flex"
className="container-fluid d-flex flex-wrap py-3"
>
<a
aria-label="edX Home"
Expand Down Expand Up @@ -69,16 +69,29 @@ exports[`<Footer /> renders correctly renders with a language selector 1`] = `
</div>
</form>
</div>
<div
className="container-fluid d-flex flex-wrap border-top py-3 px-4"
>
<p
className="copyright d-block"
>
Copyright ©
Clemson University
2023
. All Rights Reserved.
</p>
</div>
</footer>
`;

exports[`<Footer /> renders correctly renders without a language selector 1`] = `
<footer
className="footer d-flex border-top py-3 px-4"
className="footer border-top py-3 px-4"
role="contentinfo"
>
<div
className="container-fluid d-flex"
className="container-fluid d-flex flex-wrap py-3"
>
<a
aria-label="edX Home"
Expand All @@ -99,16 +112,29 @@ exports[`<Footer /> renders correctly renders without a language selector 1`] =
className="flex-grow-1"
/>
</div>
<div
className="container-fluid d-flex flex-wrap border-top py-3 px-4"
>
<p
className="copyright d-block"
>
Copyright ©
Clemson University
2023
. All Rights Reserved.
</p>
</div>
</footer>
`;

exports[`<Footer /> renders correctly renders without a language selector in es 1`] = `
<footer
className="footer d-flex border-top py-3 px-4"
className="footer border-top py-3 px-4"
role="contentinfo"
>
<div
className="container-fluid d-flex"
className="container-fluid d-flex flex-wrap py-3"
>
<a
aria-label="edX Home"
Expand All @@ -129,5 +155,18 @@ exports[`<Footer /> renders correctly renders without a language selector in es
className="flex-grow-1"
/>
</div>
<div
className="container-fluid d-flex flex-wrap border-top py-3 px-4"
>
<p
className="copyright d-block"
>
Copyright ©
Clemson University
2023
. All Rights Reserved.
</p>
</div>
</footer>
`;

0 comments on commit 5ae9c0c

Please sign in to comment.