forked from overhangio/tutor-indigo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathIndigoFooter.jsx
More file actions
80 lines (76 loc) · 2.57 KB
/
Copy pathIndigoFooter.jsx
File metadata and controls
80 lines (76 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
const IndigoFooter = () => {
const intl = useIntl();
const config = getConfig();
const indigoFooterNavLinks = config.INDIGO_FOOTER_NAV_LINKS || [];
const messages = {
"footer.poweredby.text": {
id: "footer.poweredby.text",
defaultMessage: "Powered by",
description: "text for the footer",
},
"footer.tutorlogo.altText": {
id: "footer.tutorlogo.altText",
defaultMessage: "Runs on Tutor",
description: "alt text for the footer tutor logo",
},
"footer.logo.altText": {
id: "footer.logo.altText",
defaultMessage: "Powered by Open edX",
description: "alt text for the footer logo.",
},
"footer.copyright.text": {
id: "footer.copyright.text",
defaultMessage: `Copyrights ©${new Date().getFullYear()}. All Rights Reserved.`,
description: "copyright text for the footer",
},
};
return (
<div className="wrapper wrapper-footer">
<footer id="footer" className="tutor-container">
<div className="footer-top">
<div className="powered-area">
<ul className="logo-list">
<li>{intl.formatMessage(messages["footer.poweredby.text"])}</li>
<li>
<a
href="https://edly.io/tutor/"
rel="noreferrer"
target="_blank"
>
<img
src={`${config.LMS_BASE_URL}/theming/asset/images/tutor-logo.png`}
alt={intl.formatMessage(
messages["footer.tutorlogo.altText"]
)}
width="57"
/>
</a>
</li>
<li>
<a href="https://open.edx.org" rel="noreferrer" target="_blank">
<img
src={`${config.LMS_BASE_URL}/theming/asset/images/openedx-logo.png`}
alt={intl.formatMessage(messages["footer.logo.altText"])}
width="79"
/>
</a>
</li>
</ul>
</div>
<nav className="nav-colophon">
<ol>
{indigoFooterNavLinks.map((link) => (
<li key={link.url}>
<a href={`${link.url.startsWith("http") ? link.url : config.LMS_BASE_URL + link.url}`}>{link.title}</a>
</li>
))}
</ol>
</nav>
</div>
<span className="copyright-site">
{intl.formatMessage(messages["footer.copyright.text"])}
</span>
</footer>
</div>
);
};